Deploy contracts using Remix
This article shows how to deploy smart contract using Remix IDE.
Please note in the following example we assume you are using a local single-node testnet. Instead, if you want to use a remote node to provide JSON-RPC, just replace "localhost" with the node's IP address.
Step 1, open Remix IDE in your browser:
remix
Step 2, chose an environment. We can use MetaMask by selecting "Injected Web3" or connect to node directly by selecting "Web3 Provider". Take MetaMask for example, we neet to config it's network first:
remix-metamask-network
Then, select "Injected Web3" to connect to MetaMask:
remix-metamask-connect.png
Step 3, create and compile your smart contract. We use Remix's Storage demo as example:
remix-contract
Compile your smart contract:
image-20210414163154021
Step 4, deploy compiled smart contract by clicking "Deploy" button:
image-20210414163757696
Click "OK" button on MetaMask popup window:
remix-metamask-deploy2
Last modified 6mo ago
Copy link