CyberMiles ewasm testnet
Deploy and test ewasm smart contracts via an interactive web3 console

$ docker pull secondstate/devchain:devchain
Last updated
Was this helpful?
Deploy and test ewasm smart contracts via an interactive web3 console

$ docker pull secondstate/devchain:devchain
Last updated
Was this helpful?
Was this helpful?
$ docker run --rm -it secondstate/devchain:devchain attach http://ewasm:[email protected]// Create a new account
> personal.newAccount("mypass");
"0xMY_ACCOUNT_ADDRESS"
// Unlock the faucet account
> personal.unlockAccount("0x1bba632055efb57aa991a9b0e900194e2ea037ad", "3WAeT4CYSkMTAPuF");
true
// Transfer 5 CMTs from the facuet account to the newly created account
> cmt.sendTransaction({"from": "0x1bba632055efb57aa991a9b0e900194e2ea037ad", "to": "0xMY_ACCOUNT_ADDRESS", "value": web3.toWei(5, "cmt")})
// Unlock the new account
> personal.unlockAccount("0xMY_ACCOUNT_ADDRESS", "mypass");