Filecoin.StateSectorGetInfo
Filecoin.StateSectorGetInfo 返回指定矿工扇区的链上信息。 如果未找到指定的扇区则返回null。
注意:返回的info.Expiration在某些情况下可能不准确,使用 StateSectorExpiration获取更精确的过期epoch。
参数
- address: string,
- sector: SectorNumber,
- tipSetKey?: TipSetKey
返回值
Filecoin.StateSectorGetInfo调用返回SectorOnChainInfo对象。
示例代码
请求:
curl -X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc":"2.0",
"method":"Filecoin.StateSectorGetInfo",
"params":[
"f01234",
9,
[
{
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
},
{
"/": "bafy2bzacebp3shtrn43k7g3unredz7fxn4gj533d3o43tqn2p2ipxxhrvchve"
}
]
],
"id":7878
}' \
http://127.0.0.1:1234/rpc/v0
响应:
{
"id": 7878,
"jsonrpc": "2.0",
"result": {
"SectorNumber": 9,
"SealProof": 8,
"SealedCID": {
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
},
"DealIDs": null,
"Activation": 10101,
"Expiration": 10101,
"DealWeight": "0",
"VerifiedDealWeight": "0",
"InitialPledge": "0",
"ExpectedDayReward": "0",
"ExpectedStoragePledge": "0"
}
}