# CyberMiles ewasm testnet

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](https://4126318435-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ljq8VpUhFWpzGRMLvdp%2F-M5LTYPExeWZSteJbVG-%2F-M5LJhvx6QI9be5a5S9K%2Fcm_ewasm_testnet_connect.gif?alt=media\&token=43ef4612-2a6b-4338-8b6d-574e0fbe836e)

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 [follow the tutorial](https://docs.secondstate.io/devchain/getting-started/run-an-ewasm-smart-contract) to deploy and test your ewasm smart contracts.

{% content-ref url="run-an-ewasm-smart-contract" %}
[run-an-ewasm-smart-contract](https://docs.secondstate.io/devchain/getting-started/run-an-ewasm-smart-contract)
{% endcontent-ref %}

![https://asciinema.org/a/321767?speed=8](https://4126318435-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ljq8VpUhFWpzGRMLvdp%2F-M5LPudTI9aprbtHIMwz%2F-M5LKLUHQy5cR5Nz0qhj%2Fcm_ewasm_testnet_deploy.gif?alt=media\&token=3a7eebd8-07e2-4333-b17d-07e28ecc4470)
