-
Notifications
You must be signed in to change notification settings - Fork 2
Mining
martinbtm edited this page Sep 6, 2021
·
1 revision
First of all, initialize the node:
$ cd ./cmd/bytomd
$ ./bytomd init --chain_id mainnet
There are three options for the flag --chain_id
:
-
mainnet
: connect to the mainnet. -
testnet
: connect to the testnet wisdom. -
solonet
: standalone mode.
After that, you'll see config.toml
generated, then launch the node.
$ ./bytomd node --mining
Default JSON-RPC endpoints:
Client | URL |
---|---|
Go | http://localhost:9888 |
A complete request example via curl
:
Start up node mining.
Object
:
-
Boolean
- is_mining, whether the node is mining.
// Request
curl -X POST set-mining -d '{"is_mining": true}'
// Result
You can see the mining result in dashboard.
Access the dashboard:
$ open http://localhost:9888/