lotus API 查看区块高度

lotus API 查看区块高度

1,lotus API 查看区块高度

curl -X POST  -H "Content-Type: application/json" --data '{ "jsonrpc": "2.0", "method": "Filecoin.ChainHead", "params": [], "id": 3 }' 'http://127.0.0.1:1234/rpc/v0' | jq .result.Height
 curl -X POST  -H "Content-Type: application/json" --data '{ "jsonrpc": "2.0", "method": "Filecoin.ChainHead", "params": [], "id": 3 }' 'http://127.0.0.1:1234/rpc/v0' | jq .result.Height
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1860  100  1785  100    75   256k  11018 --:--:-- --:--:-- --:--:--  290k
12366

参考:

  1. API

猜你喜欢

转载自blog.csdn.net/u010953692/article/details/106718937