Deploy contracts using Remix

This article shows how to deploy smart contract into smartBCH testnet using Remix IDE.

Step 0, add smartBCH testnet into MetaMask. You can find smartBCH testnet configuration on chainlist:

Step 1, open Remix IDE in your browser:

Step 2, chose an environment. We can use MetaMask by selecting "Injected Web3" or connect to node directly by selecting "Web3 Provider". Select "Injected Web3" to connect to MetaMask:

Step 3, create and compile your smart contract. We use Remix's Storage demo as example:

Compile your smart contract:

Step 4, deploy compiled smart contract by clicking "Deploy" button:

Click "Confirm" button on MetaMask popup window:

Last updated