Using Etherium Remix
Go to https://remix.ethereum.org/
Writing your smart contract
Copy and paste the code below to HelloHyperasChain.sol file
Compiling
Note: Choose a compiler version equal or newer the version used in contract. In this example, the contract using version 0.8.0. So in compile section, we using 0.8.0 too.
Deploying
If you want to deploy the contract to a live network like Hyperas Chain Testnet or Mainnet, configure your metamask by adding the required Hyperas Chain networks. After adding Hyperas Chain networks into metamask, choose environment by using Inject Provider
After that, we will deploy our contract.
Click the button Deploy, after that a popup confirm transaction will be shown. And just Confirm transaction deployment
Waiting a few seconds, the contract will be deployed to Hyperas Chain. When the deployment success, we have a address of HelloHyperasChain.sol in image below.
Referral document
This tutorial shows you how to use basic remix-ethereum. If you want more information please go to: https://remix-ide.readthedocs.io/en/latest/
Last updated