Skip to content

Latest commit

 

History

History
64 lines (54 loc) · 2.11 KB

ETH.md

File metadata and controls

64 lines (54 loc) · 2.11 KB

以太坊布署、开发文档

ETH以太坊钱包运维手册

区块浏览器1:https://etherscan.io/

区块浏览器1:https://eth.btc.com/

简书文档-以太坊文档整理:https://www.jianshu.com/p/3445ff08229a

ETC以太经典钱包运维

区块浏览器1: http://gastracker.io/

区块浏览器2:http://etherhub.io/

(1)安装

ETH
ETC

(2)启动

./geth --syncmode fast --rpc --rpcaddr "内网IP" --rpcport "RPC端口" --rpcapi "db,eth,net,web3,personal,admin" --cache=2048 --maxpeers 10000 2>>geth.log &

其他参数
--datadir=/data/eth/ethereum \
--syncmode light \
--port "30308" \
--rpcport "2308"\
--rpcapi "db,eth,net,web3,personal,admin" 

(3)登陆

./geth attach 'http://ip:rpc端口'

(4)日常命令

节点情况:eth.syncing
查询节点:net.peerCount
最新区块: eth.blockNumber
获取新地址:personal.newAccount()
解锁地址:personal.unlockAccount("地址")
查询余额:eth.getBalance("地址")
节点信息:admin.peers

(5)转账

转账说明:

eth.sendTransaction({from:"出款地址",to:"收款地址",value:web3.toWei(金额,"ether")})

转账示例:
eth.sendTransaction({from:"0x947e4ae8dd16902a8b76c212963a4617869adaa0",
                      to:"0xcdf03959b663d54471323c400c47d1ca94c93051",
                      value:web3.toWei(0.1,"ether")})