Filecoin RPC 接口之根据地址获取 nonce ,调用的 RPC 方法名是 Filecoin.MpoolGetNonce
Curl 发起的请求为
curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $(cat ~/.lotusstorage/token)" \ --data '{ "jsonrpc": "2.0", "method": "Filecoin.MpoolGetNonce", "params": ["t16kzc62lfv3huoyzhxwgl5gglruh4ak4kmw3izhy"], "id": 3 }' \ 'http://127.0.0.1:1234/rpc/v0'
返回的信息如下
{ "jsonrpc":"2.0", "result":0, "id":3 }
目前尚无回复