GetBlockByLatestNum
POST: http://172.104.51.182:16667/wallet/getblockbylatestnum
Returns a list of block objects.
BODY PARAMS
{
num
int32
}
Note:
num
:
The number of blocks to query
Example:
Input:
{
"value":5
}
response:
{
"block": [ { "blockID": "000000000045b74ff58fb56edcd7afa82dfd931fab5c34512a416de5464b87ee", "block_header": { "raw_data": { "number": 4568911, "txTrieRoot": "0000000000000000000000000000000000000000000000000000000000000000", "witness_address": "41c702d758f7e2e9af19a47d70e5f77d1084a11f55", "parentHash": "000000000045b74edf7739c5caa9fd637f3d63557709c9b366182964099c4c87", "version": 21, "timestamp": 1639441284000 }, "witness_signature": "3c2da68d83219160055fab943d51d84193ae9b13f43ee44a4aab4e3ed1900af2319f8a42a3092eaa2619b742a50827678f719101e3560c13378df02552c10f2d01" } }, { "blockID": "000000000045b750e49f332f9b7e2cd77cc0b7a914f72ce70b3c37e591236c6d", "block_header": { "raw_data": { "number": 4568912, "txTrieRoot": "0000000000000000000000000000000000000000000000000000000000000000", "witness_address": "413c85c63e43ac484f2c567dbffa64be4707ccd4b9", "parentHash": "000000000045b74ff58fb56edcd7afa82dfd931fab5c34512a416de5464b87ee", "version": 21, "timestamp": 1639441287000 }, "witness_signature": "0227d697337773d726cbbe770334db19d0a54d163ab3f43168a167e9518ae1252a9e218aa8386d22579a1227acca7541dd46b0692789b9a58c5ab638666d7e8001" } }, { "blockID": "000000000045b7510fc95afddadadab0313d08eaed1d86ed7618d968e1dd89fe", "block_header": { "raw_data": { "number": 4568913, "txTrieRoot": "0000000000000000000000000000000000000000000000000000000000000000", "witness_address": "41b5515b731946b1976db5d9aff8ee456ed251e90d", "parentHash": "000000000045b750e49f332f9b7e2cd77cc0b7a914f72ce70b3c37e591236c6d", "version": 21, "timestamp": 1639441290000 }, "witness_signature": "46a35f637a5833ffe72a26e047b13eaa7e747c20c4c8c4719c2d81f27685f66353d605b5248411560dddde759d878429c27e31ddf6d2673f929463ae8b7e423101" } }, { "blockID": "000000000045b7522af79c3f1c4e0aa51b208872874d35bfce5be986671a3b93", "block_header": { "raw_data": { "number": 4568914, "txTrieRoot": "0000000000000000000000000000000000000000000000000000000000000000", "witness_address": "41af6ade845d535deefc4986a9f0dc9a5d9029c384", "parentHash": "000000000045b7510fc95afddadadab0313d08eaed1d86ed7618d968e1dd89fe", "version": 21, "timestamp": 1639441293000 }, "witness_signature": "b32a5adfae4ad42420b23fe51b803598fd9452a3107fccfb8da0eaa74176a54875b72d19c61046ee630da0d91ceba80cbeac739b6f11706ceb5c6640d68e3b8c01" } }, { "blockID": "000000000045b7537c3e30946878efb14552036198032eb9980cf4c8aa3ef188", "block_header": { "raw_data": { "number": 4568915, "txTrieRoot": "0000000000000000000000000000000000000000000000000000000000000000", "witness_address": "415698f57bcdb9674b564b5423b3bd1ed877a8bf41", "parentHash": "000000000045b7522af79c3f1c4e0aa51b208872874d35bfce5be986671a3b93", "version": 21, "timestamp": 1639441299000 }, "witness_signature": "dbe2769aeddce7dffc70102605379a0487c35765008462ba10ff004b1886973609c6505b9187867b3e3eb00cc446454bbe8b2bcb51013dd462ff8751c3fe3d8e00" } } ]
}
Last updated