Deploying Smart Contracts

Here I will guide you to deploy smart contracts with Remix IDE

Go to https://remix.ethereum.org/arrow-up-right

Look at left side, you would see the folder structure

  • Create new file with extension .sol in folder contract

  • I will you some sample smart contract code for creating new Token in SWAN

  • Copy all code above to your file you created then Ctrl + S to save

  • After saving, IDE will compile your code then you will see

  • Next, you click in the below button to deploy your compiled code

  • Connect your Metamask, then Choose Injected Provider

  • If you reach this step, you will see your address and your SWANETH Token

  • Then you should choose like a image below, and fill 1B total supple

  • Click Deploy and you have to sign with Metamask to deploy your contract. If you deploy your contract successfully, I will see in the log

  • Note that, If you got error in deploy step. You can change your EVM server like image below. Then Deploy again

  • If you reached here, congratulations! You Done. You just created a smart contract aka txn

Last updated