发布时间: 2022-02-11 09:29:00
1
打开接口列表:https://eth.wiki/json-rpc/API
记得请求的时候,需要header中包含 Content-Type: 'application/json'
curl -H 'Content-Type: application/json' -X POST https://moonriver.api.onfinality.io/rpc?apikey=8e195da1-d4e2-4ded-a8fb-a8ef8b642763 --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x166c1c",true],"id":1}'
根据block 获得所有的hash
获得event
{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x407dfc76f9a13f7fa06a0706dbc9f052c205153c4ac26f55e985c0078a78c344"],"id":1}
Back