Build Node Tutorial
(1) Run Node
Mainnet source code and binary program
GitHub: https://github.com/Krishnaproject2022/krishna
-
1. Initialization
./geth init genesis* -
2. Start the node program (it can run in the background after it can be synchronized normally after startup).
./geth --syncmode "full" --verbosity 1 -
3. Enter the interactive interface to perform related operations.
./geth attach -
4. Query block height
eth.blockNumber -
5. Query other node information
admin.peers -
4. Enable RPC
admin.startRPC("0.0.0.0",8545)