推薦平台 Geth:
建置環境
geth --mine --minerthread 2 --autodag –fast
geth init genesis.json
geth --networkid 16888 --port 30303 --nodiscover --maxpeers 25 --nat "any" --rpc --rpccorsdomain "*" --rpcapi "eth,net,web3,debug" --mine --minerthreads 1 --autodag
設定檔案
{
"difficulty": "0x0"
,"extraData": "0x16888"
,"gasLimit": "0x999999999"
,"mixhash": "ADDRESS"
,"nonce": "0x0"
,"timestamp": "0x0"
}
[
"enode://ADDRESS@IP:PORT"
]
各種環境設定
geth init genesis.json
geth account new
brew tap ethereum/Ethereum
brew install Ethereum
geth init genesis.json
geth account new
geth init genesis.json
geth account new
Enode
geth attach
admin.addPeer("enode://ADDRESS@IP:PORT")
["enode://ADDRESS@ IP:PORT"]
Account
geth account new
geth account list