Utility
Get logs
Commonly used to get all the event logs of the latest block, or for a range of blocks. Includes sender contract metadata as well as decoded logs.
GET
Credit Cost
0.01 per item
Processing
Realtime
Limits:
- For a block range of 2,000 blocks or less, the response will include all logs within the range.
- For a block range greater than 2,000 blocks:- The response will include up to 10,000 logs.
- If the number of logs exceeds 10,000, no logs will be included in the response. Instead, the response will contain a suggested range within the
info
object, including a link and message.
Path Parameters
The chain name eg: eth-mainnet
.
Query Parameters
The first block to retrieve log events with. Accepts decimals, hexadecimals, or the strings earliest
and latest
.
The last block to retrieve log events with. Accepts decimals, hexadecimals, or the strings earliest
and latest
.
The address of the log events sender contract.
The topic hash(es) to retrieve logs with.
The block hash to retrieve logs for.
Omit decoded log events.