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.
Credit Cost
Processing
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.
Authorizations
Bearer authentication header of the form: Bearer <token>
, where <token>
is your GoldRush API Key.
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.
Response
The timestamp when the response was generated. Useful to show data staleness to users.
The requested chain ID eg: 1
.
The requested chain name eg: eth-mainnet
.
List of response items.