ankr_getBlocks
ankr_getBlocks
Retrieves details of the specified range of blocks.
Request
This endpoint expects an object.
blockchain
Name of the blockchain.
decodeLogs
Decode logs (true) or not (false).
decodeTxData
Decode transaction data (true) or not (false).
descOrder
Sorting order. Descending (true) or ascending (false).
fromBlock
Number of the first block in a range. Integer or string (hex value or earliest). Max range — 30 blocks.
includeLogs
Include logs (true) or exclude them (false). Logs are stored inside transactions, so includeTxs also has to be true when includeLogs is true.
includeTxs
Include transactions (true) or exclude them (false). includeTxs has to be true if includeLogs is true.
toBlock
Number of the last block in a range. Integer or string (hex value or latest). Max range — 30 blocks.
Response
Result returned by ankr_getBlocks.
blocks