eth_getLogs - Etherlink RPC Method
Query event logs on Etherlink. Essential for indexing historical blockchain data on Etherlink mainnet infrastructure and RPC surface.
Returns an array of all logs matching a given filter object on Etherlink.
When to Use This Method
Read one Pyth event using its contract address, both captured topics, and exact block 4,162,675. This is not a Transfer event.
Block-range limits
The verified request queries one historical block. These probes do not establish the maximum supported range.
Best Practices
Keep the recorded block height and address together when reproducing a historical example. Preserve RPC errors instead of replacing them with empty results.
Response Body
ResponseCode Examples
curl -X POST "https://api-etherlink-mainnet.n.dwellir.com/YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"jsonrpc":"2.0","id":5,"method":"eth_getLogs","params":[{"fromBlock":"0x3f8473","toBlock":"0x3f8473","address":"0x2880ab155794e7179c9ee2e38200202908c17b43","topics":["0xd06a6b7f4918494b3719217d1802786c1f5112a6c1d88fe2cfec00b4584f6aec","0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43"]}]}'eth_call
Execute smart contract calls without creating transactions on Etherlink. Essential for reading contract state for historical blockchain data.
debug_traceBlockByNumber
Trace all transactions in a block by number on Etherlink. Analyze gas consumption, debug state transitions, and inspect historical block execution.