这是我的创世纪区块配置文件,我给两个账户分配了余额
{
"config": {
"chainId":1024 ,
"homesteadBlock": 0,
"eip150Block": 0,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"ethash": {}
},
"nonce": "0x0",
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0x47b760",
"difficulty": "0x00002",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
"alloc": {
"000d836201318ec6899a67540690382780743280": {
"balance": "0xad78ebc5ac6200000"
},
"093f59f1d91017d30d8c2caa78feb5beb0d2cfaf": {
"balance": "0xad78ebc5ac6200000"
}
},
"number": "0x0",
"gasUsed": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
init过后,我用geth启动了一个私链,命令如下:
geth --rpc --rpcport "7545" --rpcaddr "0.0.0.0" --rpccorsdomain="*" --rpcapi eth,web3,admin,personal,net --datadir data --port "30303" --nodiscover --networkid 1024 console 2>>geth.log
我尝试
eth.accounts
结果返回为空 然后我直接查账户余额
eth.getBalance("000d836201318ec6899a67540690382780743280")
发现有余额。然后查了下keystore目录发现为空。
我的理解是我没有对应账号的keystore,所以eth.accounts返回为空,但是这个私链是我启动的,我在创世纪区块给这个账号分配了以太币,那么说明我应该是掌握这个账号的,不然分配就没有意义了,请问这个账号应该如何使用?