Filecoin RPC 接口之根据消息 CID 获取消息详情 ,调用的 RPC 方法名是 Filecoin.ChainGetMessage
Curl 发起的请求为
curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $(cat ~/.lotusstorage/token)" \ --data '{ "jsonrpc": "2.0", "method": "Filecoin.ChainGetMessage", "params": [{"/":"bafy2bzacecydfb4q44zrhw4qrnjbwd3qf7xhx4gm2mjgflv6efzqu3uyoelxo"}], "id": 3 }' \ 'http://127.0.0.1:1234/rpc/v0'
返回的信息如下
{ "jsonrpc":"2.0", "result":{ "Version":0, "To":"t16kzc62lfv3huoyzhxwgl5gglruh4ak4kmw3izhy", "From":"t3so3ci37b2ijijzszumef2s6hleabmmkuggje3fns5w643s7atp62xtybjoefaqyupxmanjoljgqkhgru6uaq", "Nonce":2, "Value":"1000000000000000000", "GasPrice":"1", "GasLimit":977989, "Method":0, "Params":"" }, "id":3 }
目前尚无回复