CyberMiles ewasm testnet
Deploy and test ewasm smart contracts via an interactive web3 console
The CyberMiles Public Blockchain runs an Ewasm testnet based on its blockchain software and Second State's SSVM. The easiest way to access the testnet is via Docker.
https://asciinema.org/a/321762?speed=8
Start by pulling the Second State DevChain Docker image.
1
$ docker pull secondstate/devchain:devchain
Copied!
You can now start the interactive console via Docker. Please note that the password is subject to change. Do not abuse it!
1
$ docker run --rm -it secondstate/devchain:devchain attach http://ewasm:[email protected]
Copied!
We recommend you to create your own account and then give yourself a little CMTs from our faucet account (0x1bba632055efb57aa991a9b0e900194e2ea037ad).
1
// Create a new account
2
> personal.newAccount("mypass");
3
"0xMY_ACCOUNT_ADDRESS"
4
5
// Unlock the faucet account
6
> personal.unlockAccount("0x1bba632055efb57aa991a9b0e900194e2ea037ad", "3WAeT4CYSkMTAPuF");
7
true
8
9
// Transfer 5 CMTs from the facuet account to the newly created account
10
> cmt.sendTransaction({"from": "0x1bba632055efb57aa991a9b0e900194e2ea037ad", "to": "0xMY_ACCOUNT_ADDRESS", "value": web3.toWei(5, "cmt")})
11
12
// Unlock the new account
13
> personal.unlockAccount("0xMY_ACCOUNT_ADDRESS", "mypass");
Copied!
Now you can follow the tutorial to deploy and test your ewasm smart contracts.
https://asciinema.org/a/321767?speed=8
Last modified 1yr ago
Copy link