- Remix Ethereum
- On deploy tab select the "Injected Web3" which integrates with Ropsten network
- The Smart Contract account it displayed on the "Deploy" tab.
Deployed Contract
- ERC20.sol: ipfs://QmejdqNJpxrRweqo9rLZEKBkU14TP64aDeQ1PmyNWyrQgn
- https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.0.0/contracts/token/ERC20/ERC20.sol: ipfs://QmXGhsAPeemtVQ8ip5CsParvX3sgpMm4Lq8EccS3YaTtwA
- metadata.json: ipfs://QmZyBwDhNeKzFPFxTVAEi4Z49L6oNcrwp3gGF9nYJH8HdL
Sample Running Address: 0xC44bf84C7d877A286b179Af92C400aA16CaEC251
Gas Estimator (1GAS = 1GWEI): https://br.beincrypto.com/converter/gas-to-usd?amount=1
Remix is an online ide to create a solidity smart contract. It also has the feature to compile run, deploy and simulate smart contracts.
- Open Remix IDE.
- Select environment Solidity
- Go to File Explorer Tab and create a file Lottery.sol
- Get the Contract Code
- Go to Solidity Compiler Tab and Select
- Compiler Version to 0.8.10
- Language as Solidity
- EVM as Compiler Default
- Now click Compile ERC20.sol
- You can enable auto-compile by check the checkbox Auto Compile
- Go to Deploy And Run Transaction Tab and Deploy the contract in local EVM
- Your contract functionality will be available in Deploy And Run Tracsaction tab, under the Deployed Contract section
Testnets provide developers a place to kick the smart contract and test before the real assets being involved. These Testnets behave very much like the main-net and does not require actual money(ether). Here we are going to try Rinkeby Testnet.
- Make sure you run the Lottery contract using previous section instructions
- Open Metamask, put the password and make sure, you are connected to the Rinkeby network.
- Go to Deployed And Run Transaction tab and select
- Environment is Injected Web3
- As account, your Metamask wallet address should be selected
- Make sure you have enough ether in your wallet to deploy the contract
- Now click Deploy. This will deploy your contract to the Rinkeby network.
- In the Remix IDE, check Log Section and grab the Transaction Hash and store it.
- Go to Ether Scan and search for the Transaction Hash. You will get the Deployed Contract Address. Also, this Contract Address will be required further.