在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/區(qū)塊鏈  iOS/ Geth 客戶端與Mist 錢包 同在 Ropsten網(wǎng)絡(luò)下,同一賬號(hào)為啥余額不

Geth 客戶端與Mist 錢包 同在 Ropsten網(wǎng)絡(luò)下,同一賬號(hào)為啥余額不一樣呢?

Mist 錢包 Ropsten Testnet網(wǎng)絡(luò)下
賬號(hào): 0xB17000eB180dABEF81Eb110D175e096AF39C1203 有余額

【瀏覽器查看是有余額的】
https://ropsten.etherscan.io/...

Geth 客戶端:

啟動(dòng)腳本:

geth --rpc --rpcapi "db,eth,net,web3,personal,admin,miner" --testnet console


> eth.getBalance('0xb17000eb180dabef81eb110d175e096af39c1203');
0
> eth.blockNumber;
480608

geth 下輸出的余額怎么是0? 當(dāng)前同步區(qū)塊高度是480608,好像沒有同步完全。

geth下testnet 應(yīng)該等同于 Ropsten吧?看它幫助是這么寫的,要不然地址也不能對(duì)吧?

其實(shí),我們想實(shí)現(xiàn)這樣的功能: 在服務(wù)端批量對(duì)以太坊地址轉(zhuǎn)賬ERC20的代幣。
思路:先geth啟動(dòng),提供基于主網(wǎng)RPC,通過基于express包裝web3.js封裝對(duì)以太坊的操作。
這個(gè)思路對(duì)嗎?在私有鏈上是測試通過了!主網(wǎng)geth 是不是要同步所有數(shù)據(jù)區(qū)塊呢?

geth -h

ETHEREUM OPTIONS:
--config value TOML configuration file
--datadir "/Users/junhuazhou/Library/Ethereum" Data directory for the databases and keystore
--keystore Directory for the keystore (default = inside the datadir)
--nousb Disables monitoring for and managing USB hardware wallets
--networkid value Network identifier (integer, 1=Frontier, 2=Morden (disused), 3=Ropsten, 4=Rinkeby) (default: 1)
--testnet Ropsten network: pre-configured proof-of-work test network
--rinkeby Rinkeby network: pre-configured proof-of-authority test network
--syncmode "fast" Blockchain sync mode ("fast", "full", or "light")
--gcmode value Blockchain garbage collection mode ("full", "archive") (default: "full")
--ethstats value Reporting URL of a ethstats service (nodename:secret@host:port)
--identity value Custom node name
--lightserv value Maximum percentage of time allowed for serving LES requests (0-90) (default: 0)
--lightpeers value Maximum number of LES client peers (default: 100)
--lightkdf Reduce key-derivation RAM & CPU usage at some expense of KDF strength

回答
編輯回答
陪我終

我也遇到這個(gè)問題了,你怎么解決的

2017年5月29日 00:17