Skip to main content

eth_getLogs

Ethereum API

Returns an array of all logs matching filter with given id.

Params

(1)

1. Filter (required)

fromBlock
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
toBlock
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
address
topics

Result

(Log objects)
(one of)
array[string]

Params

Filter

Topics

Request

await window.ethereum.request({
"method": "eth_getLogs",
"params": [
null
]
});