./geth init --datadir data genesis.json
./geth --datadir data --networkid 15
./geth --datadir data --networkid 15 console
./geth --datadir data --networkid 15 console 2> out.log
./geth --datadir data --networkid 15 --unlock "0x76f32f9a78B53754758369980F692Dc0cee28868" console 2> out.log
./geth --datadir data --networkid 15 --unlock "0x76f32f9a78B53754758369980F692Dc0cee28868" --password ./pwd.txt console 2> out.log
./clef init
#生成的种子在 C:\Users\jackluo\AppData\Roaming\Signer\masterseed.json
./clef --keystore ./masterseed.json
./clef --chainid 15 --keystore ./masterseed.json
./clef --chainid 15 --keystore ./data/keystore
./clef --chainid 15 --keystore ./data/keystore newaccount
./geth --datadir data --networkid 15 --http.port 8545 --unlock "0xFF7490A35c8802132D922dd4D8f0D04af16F6B1A" --password ./pwd.txt console 2> out.log
./geth --datadir data --networkid 15 --rpcport 8547 --ws --ws.port=8546 --http.port=8545 --rpccorsdomain "*" --port 1718 --nodiscover --nat "any" --rpcapi "eth,net,web3,personal" console 2> out.log
./geth --http --http.addr 0.0.0.0 --nodiscover --datadir data --networkid 15 --port 30303 --http.api "personal,eth,net,web3,admin,ethash,miner" --http.port 8545 --http.corsdomain "*" --ipcdisable --miner.gaslimit 2000000000 --allow-insecure-unlock --unlock "0xFF7490A35c8802132D922dd4D8f0D04af16F6B1A" --password ./pwd.txt console 2>out.log
./geth --http --http.addr 0.0.0.0 --nodiscover --datadir develop --networkid 15 --port 30303 --http.api "personal,eth,net,web3,admin,ethash,miner" --http.port 8545 --http.corsdomain "*" --ipcdisable --miner.gaslimit 2000000000 --dev console 2>dev.log
### 测试节点
./clef --chainid 15 --keystore ./develop/keystore newaccount
## 转帐
eth.sendTransaction({from:eth.accounts[0],to:"0x3d5c7e84e50340d95B643B13C1e0E008E8d1D39E",value:web3.toWei(5,'ether')})
## 查看余额
eth.getBalance(eth.accounts[1])
#设置矿工地址
miner.setEtherbase(eth.accounts[0])
#启动挖矿
miner.start()
#停止挖矿
miner.stop()
eth.getBalance(eth.accounts[0])
eth.sendTransaction({from:eth.accounts[0],to:"0xc5CcA09f6185138D3f45E4272C4d08e5Dfb63B4b",value:web3.toWei(5,'ether')})
miner.start()
miner.stop()
eth.getBalance(eth.accounts[0])
eth.getBalance(eth.accounts[1])
#查看账户
eth.accounts
#查看账户余额
eth.getBalance(eth.accounts[0])
#查看当前区块号
eth.blockNumber
#查看当前区块
eth.getBlock(eth.blockNumber)
#查看当前区块的交易
eth.getBlock(eth.blockNumber).transactions
#Wei 换换算成以太币 1 ether = 10^18 wei
web3.fromWei(eth.getBalance(eth.accounts[0]),'ether')
#以太币转换成 Wei
web3.toWei(1,'ether')
#转帐
eth.sendTransaction({from:eth.accounts[0],to:eth.accounts[1],value:web3.toWei(1,'ether')})
#查看当前区块的交易数量
eth.getBlockTransactionCount(eth.blockNumber)
#查看当前区块的区块大小
eth.getBlock(eth.blockNumber).size
#查看当前区块的区块大小
#查看交易详情 txhash
eth.getTransaction(txhash)
#查看交易回执
eth.getTransactionReceipt(txhash)
#查看当前gas价格
eth.gasPrice
#查看当前网络ID
eth.netVersion
#查看当前网络ID
net.version
#查看当前网络ID
admin.nodeInfo.protocols.eth.network
#查看当前网络ID
admin.nodeInfo.protocols.eth.config.chainId
admin.nodeInfo
admin.peers
admin.peers
admin.peers
admin.peers
admin.peers
admin.peers