Filecoin.MinerGetBaseInfo
Filecoin.MinerGetBaseInfo返回指定矿工在指定条件下的基础信息。
参数
- address
- chainEpoch
- tipSetKey
返回值
Filecoin.MinerGetBaseInfo调用返回MiningBaseInfo对象。
示例代码
请求:
curl -X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc":"2.0",
"method":"Filecoin.MinerGetBaseInfo",
"params":[
"f01234",
10101,
[
{
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
},
{
"/": "bafy2bzacebp3shtrn43k7g3unredz7fxn4gj533d3o43tqn2p2ipxxhrvchve"
}
]
],
"id":7878
}' \
http://127.0.0.1:1234/rpc/v0
响应:
{
"id": 7878,
"jsonrpc": "2.0",
"result": {
"MinerPower": "0",
"NetworkPower": "0",
"Sectors": null,
"WorkerKey": "f01234",
"SectorSize": 34359738368,
"PrevBeaconEntry": {
"Round": 42,
"Data": "Ynl0ZSBhcnJheQ=="
},
"BeaconEntries": null,
"EligibleForMining": true
}
}