# Contract deployment - Remix IDE

{% hint style="warning" %}
For contract deployment, you can use Remix IDE. However, encrypted contract interactions from Remix IDE are not possible on Swisstronik due to blockchain encryption. If you still want to interact with a deployed contract, ensure your provider is connected to an unencrypted endpoint: `https://json-rpc.testnet.swisstronik.com/unencrypted`

**We highly recommend using** [**Hardhat for contract deployment & interaction.**](https://docs.swisstronik.com/swisstronik-docs/development/guides/contract-deployment-hardhat)

**Only Solidity versions up to 0.8.20 are supported.**
{% endhint %}

1. Go to [Remix IDE](https://remix.ethereum.org/)&#x20;
2. Click on the *contracts* folder.

<figure><img src="https://3739409932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvh80ue5X9nMskPC6XjLd%2Fuploads%2FwH6atz0ZCQ5xpgHqiRtt%2Fimage.png?alt=media&#x26;token=87f6edb1-b7c9-46a5-8b15-5edcc6d5f445" alt=""><figcaption></figcaption></figure>

3. Select any of the three default contracts, then compile the contract by clicking on the S*olidity compiler* icon

<figure><img src="https://3739409932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvh80ue5X9nMskPC6XjLd%2Fuploads%2FYzPRNTmET8G9PnyojWqd%2Fimage.png?alt=media&#x26;token=ba4c3156-8351-45fb-bef4-3ffce16c13c9" alt=""><figcaption></figcaption></figure>

4. Click in C*ompile your contract*

<figure><img src="https://3739409932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvh80ue5X9nMskPC6XjLd%2Fuploads%2Feicb2mDlGHmIJfTl5h1s%2Fimage.png?alt=media&#x26;token=e063b965-0582-49b6-98af-74e1049fa98c" alt=""><figcaption></figcaption></figure>

5. Click on the *Deploy & run transactions icon*

<figure><img src="https://3739409932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvh80ue5X9nMskPC6XjLd%2Fuploads%2FqVQzai4J8S3kwafS67y5%2Fimage.png?alt=media&#x26;token=82f616f9-d479-40f0-b771-e8e7015abf01" alt=""><figcaption></figcaption></figure>

6. Connect the *Remix environment* to *Swisstronik* by clicking on *Injected Provider - Metamask*

<figure><img src="https://3739409932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvh80ue5X9nMskPC6XjLd%2Fuploads%2FWwrjrkUH3H0CksolOkX4%2Fimage.png?alt=media&#x26;token=19ed9960-4018-4b4e-bb27-e1c3edbfd225" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Make sure the following:

1. You are in the Swisstronik Testnet network (You can [connect to Swisstronik here](https://docs.swisstronik.com/swisstronik-docs/development/connect-wallets/testnet-metamask-evm-manual))
2. Your account in Metamask is connected to Remix IDE
3. You have SWTR balance (You can [get tokens here](https://docs.swisstronik.com/swisstronik-docs/development/get-test-coins))
   {% endhint %}

![](https://3739409932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvh80ue5X9nMskPC6XjLd%2Fuploads%2FBpmMzSr4YTGXC7zO03Ep%2Fimage.png?alt=media\&token=3c633a65-6cc9-4bc1-b424-4b247327ff05)

7. Click on *Deploy, and then* click on *Confirm* the transaction in Metamask

<figure><img src="https://3739409932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvh80ue5X9nMskPC6XjLd%2Fuploads%2Fw9GpvzLzXPeFpafuNyyI%2Fimage.png?alt=media&#x26;token=816a0793-4931-4d74-acb0-029b21f5db8e" alt=""><figcaption></figcaption></figure>

![](https://3739409932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvh80ue5X9nMskPC6XjLd%2Fuploads%2Fbms6YKs6cdJdfixen8Q7%2Fimage.png?alt=media\&token=6b057bbd-919f-4ed5-af80-cab9b4a24f17)

8. Verify the successful execution of your transaction by visiting the [block explorer.](https://explorer-evm.testnet.swisstronik.com/)

Well done! You've deployed a smart contract on Swisstronik and are ready to start interacting with it. Happy exploring! 🎉
