eth_getLogs

Returns an array of all logs matching the specified filter.

Request

This endpoint expects an object.
filterobjectRequired
Filter object used to match logs.

Response

Logs matching the filter.
removedboolean
True when the log was removed due to a chain reorganization.
addressstringformat: "^0x[a-fA-F0-9]{40}$"

20-byte EVM address.

datastringformat: "^0x([a-fA-F0-9]{2})*$"

Hex-encoded byte data.

topicslist of strings
logIndexstring or nullOptionalformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

transactionIndexstring or nullOptionalformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

transactionHashstring or nullOptionalformat: "^0x[a-fA-F0-9]{64}$"

32-byte transaction hash.

blockHashstring or nullOptionalformat: "^0x[a-fA-F0-9]{64}$"

32-byte block hash.

blockNumberstring or nullOptionalformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.