Docs

eth_getLogs

Retrieves logs from the Ethereum blockchain based on the specified parameters.

Example

import { getRpcClient, eth_getLogs } from "thirdweb/rpc";
const rpcRequest = getRpcClient({ client, chain });
const logs = await eth_getLogs(rpcRequest, {
address: "0x...",
fromBlock: 123456n,
toBlock: 123456n,
});

Parameters

Returns

A promise that resolves to the retrieved logs.