Ankr Docs
Search…
getBlockByHeight
1
// Requestcurl -s -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"getBlockByHeight","params":[1,1], "id":1234}' http://.ankr.com​// Result{ "jsonrpc": "2.0", "id": "1234", "result": { "header": { "hash": "5081aa5784dd23712fce61534a8a1eb14e672487c75ac9f6799a73e9d8d1569f", "height": 1, "preHash": "8221e980cc9707b4fcf05ac79e70b8ac75f00550bb7da9292e6d6432a716ea88", "merkleHash": "57afb759f438f56165bcbe233a33cf2f6788a37bbc2ff022b9758e1beef6e9c4", "createTime": 1568209450, "agentHash": null, "agentId": "NULSd6Hge7xHDnvsSpnzbR2gWHd31zJ1How11", "packingAddress": "NULSd6Hge7xHDnvsSpnzbR2gWHd31zJ1How11", "agentAlias": null, "txCount": 1, "roundIndex": 1566, "totalFee": 0, "reward": 0, "size": 287, "packingIndexOfRound": 5, "scriptSign": "210203c1f03fd991bda28aa0e18db03728437b1b82c1ca4482f4d1fb1fb5ed33ecd3473045022100e1fdb07c82464980848167a0c214020f7f63c357e01e5714afa810e436e83d46022067f37084ec9da67bd0cb0983e849417b3d9c26b51b5285031448f901b40308aa", "txHashList": [ "57afb759f438f56165bcbe233a33cf2f6788a37bbc2ff022b9758e1beef6e9c4" ], "roundStartTime": 1568209400, "agentVersion": 1, "seedPacked": true }, "txList": [ { "hash": "57afb759f438f56165bcbe233a33cf2f6788a37bbc2ff022b9758e1beef6e9c4", "type": 1, "height": 1, "size": 12, "fee": { "chainId": 1, "assetId": 1, "symbol": "NULS", "value": 0 }, "createTime": 1568209450, "remark": null, "txDataHex": null, "txData": null, "txDataList": null, "coinFroms": [], "coinTos": [], "value": 0, "status": 1 } ], "blockHexInfo": { "height": 1, "blockHex": "8221e980cc9707b4fcf05ac79e70b8ac75f00550bb7da9292e6d6432a716ea8857afb759f438f56165bcbe233a33cf2f6788a37bbc2ff022b9758e1beef6e9c42afa785d01000000010000005c1e0600000500f8f9785d0500010001003c64002056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b42100000000000000000000000000000000000000000000000000000000000000009d6046c7a66bf89a210203c1f03fd991bda28aa0e18db03728437b1b82c1ca4482f4d1fb1fb5ed33ecd3473045022100e1fdb07c82464980848167a0c214020f7f63c357e01e5714afa810e436e83d46022067f37084ec9da67bd0cb0983e849417b3d9c26b51b5285031448f901b40308aa01002afa785d000002000000", "contractHashList": [] } }}
Copied!
Last modified 6d ago
Copy link