2019-12-04 15:39:41 +00:00
# Join DevNet
2019-12-01 08:21:20 +00:00
2019-12-04 15:39:41 +00:00
## Setup
2019-12-01 08:21:20 +00:00
2019-12-04 15:39:41 +00:00
If you have run Lotus before and want to remove all previous data: `rm -rf ~/.lotus ~/.lotusstorage`
2019-12-01 08:21:20 +00:00
## Genesis & Bootstrap
2019-12-04 17:53:36 +00:00
The current Lotus build will automatically join the **Lotus DevNet** using the genesis and bootstrap files in the `build/` .
2019-12-01 08:21:20 +00:00
## Start Daemon
```sh
$ lotus daemon
```
In another window check that you are connected to the network:
```sh
$ lotus net peers | wc -l
2 # number of peers
```
2019-12-04 15:39:41 +00:00
Wait for the **chain** to finish syncing:
2019-12-01 08:21:20 +00:00
```sh
$ lotus sync wait
```
2019-12-04 15:39:41 +00:00
You can view latest **chain block height** along with other network metrics at the [chain block height explorer ](https://lotus-metrics.kittyhawk.wtf/chain ).
2019-12-01 08:21:20 +00:00
## Basics
Create a new address:
```sh
$ lotus wallet new bls
t3...
```
2019-12-04 17:53:36 +00:00
- Visit the [faucet ](https://lotus-faucet.kittyhawk.wtf/funds.html )
2019-12-04 15:39:41 +00:00
- Paste the address you created
- Press Send.
2019-12-01 08:21:20 +00:00
Check the wallet balance (balance is listed in attoFIL, where 1 attoFIL = 10^-18 FIL):
```sh
$ lotus wallet balance [optional address (t3...)]
```
2019-12-04 15:39:41 +00:00
If you see an error like `actor not found` after executing this command, it means that either:
* Your **Lotus Node** isn't fully synced
* There are no transactions to this address yet on chain.
If the latter, using the **faucet** should fix this.
2019-12-01 08:21:20 +00:00
## Make a deal
2019-12-04 15:39:41 +00:00
It is possible for a **Lotus Node** Client to make a deal with a **Lotus Storage Miner** on the same **Lotus Node** .
2019-12-01 08:21:20 +00:00
```sh
# List all miners in the system. Choose one to make a deal with.
$ lotus state list-miners
# List asks proposed by a miner
$ lotus client query-ask < miner >
# Propose a deal with a miner. Price is in attoFIL/byte/block. Duration is # of blocks.
$ lotus client deal < Data CID > < miner > < price > < duration >
```
2019-12-04 15:39:41 +00:00
Here is an example of what could happen
> `$ lotus client deal bafkre...qvtjsi t0111 36000 12` proposes a deal to store **Data CID** `bafkre...qvtjsi` with miner `t0111` at price `36000` for a duration of `12` blocks. If successful, the `client deal` command will return a **Deal CID**.
2019-12-01 08:21:20 +00:00
## Monitoring Dashboard
2019-12-04 15:39:41 +00:00
To see the latest network activity, including **chain block height** , **blocktime** , **total network power** , largest **block producer miner** , check out the [monitoring dashboard ](https://lotus-metrics.kittyhawk.wtf ).