Second State
  • What is Second State
  • BUIDL developer tool
    • Why BUIDL
    • Getting started
      • Develop for Ethereum Classic
      • Develop for CyberMiles
      • Develop for Ethereum
      • MetaMask notes
    • Data-driven DApps
      • Create and index contracts
    • Rule-based smart contract
    • Sharing your DApp
    • Working with BaaS
    • DEMO: A voting dapp
      • DevChain
      • Ethereum Classic
      • CyberMiles
  • Oasis Ethereum ParaTime
    • Getting started
    • Tutorial: publish a decentralized social media post
    • Tutorial: mint and trade your own ERC-20 tokens
    • Tutorial: mint and transfer your own ERC-721(NFT) tokens
    • Ethereum flavored WebAssembly (Ewasm)
  • DevChain
    • Getting started
      • Run an ewasm smart contract
      • CyberMiles ewasm testnet
    • Build
    • Run
    • BaaS
  • Data services for contracts
    • Getting started
    • Start a search engine (Docker)
      • Notes on SSL with Docker
    • Start a search engine (Ubuntu)
    • Demos
  • White Papers
    • Enterprise middleware for blockchain smart contracts
    • Google for smart contracts
    • FairPlay: a new type of DApp
Powered by GitBook
On this page

Was this helpful?

  1. DevChain
  2. Getting started

CyberMiles ewasm testnet

Deploy and test ewasm smart contracts via an interactive web3 console

PreviousRun an ewasm smart contractNextBuild

Last updated 5 years ago

Was this helpful?

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.

Start by pulling the Second State DevChain Docker image.

$ docker pull secondstate/devchain:devchain

You can now start the interactive console via Docker. Please note that the password is subject to change. Do not abuse it!

$ docker run --rm -it secondstate/devchain:devchain attach http://ewasm:3WAeT4CYSkMTAPuF@23.98.151.156

We recommend you to create your own account and then give yourself a little CMTs from our faucet account (0x1bba632055efb57aa991a9b0e900194e2ea037ad).

// 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");

Now you can to deploy and test your ewasm smart contracts.

follow the tutorial
Run an ewasm smart contract
https://asciinema.org/a/321762?speed=8
https://asciinema.org/a/321767?speed=8