ankr_getLogs
ankr_getLogs
Retrieves historical data for the specified range of blocks.
Request
This endpoint expects an object.
address
Contract address or a list of addresses from which logs should originate.
blockchain
Name of the blockchain or list of blockchain names. Single: eth. Multiple: [eth, bsc, fantom, avalanche, polygon, arbitrum, syscoin, optimism, eth_goerli, polygon_mumbai, avalanche_fuji]. All chains: empty value.
decodeLogs
Decode logs (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).
fromTimestamp
Beginning of a time period. UNIX timestamp.
pageSize
Number of entries per page. Max value — 10000, default value — 1000.
pageToken
Current page token for pagination.
toBlock
Number of the last block in a range. Integer or string (hex value or latest).
toTimestamp
End of a time period. UNIX timestamp.
topics
An array of DATA topics.
Response
Result returned by ankr_getLogs.
logs
nextPageToken
Next page token for pagination.