For the complete documentation index, see llms.txt. This page is also available as Markdown.

eth_getLogs - Tempo

Example code for the eth_getLogs JSON-RPC method. Complete guide on how to use eth_getLogs JSON-RPC in GetBlock Web3 documentation.

Returns logs matching a given filter. Filters specify block range, address, and indexed topics — efficient retrieval of contract events like TIP-20 transfers.

Parameters

Parameter
Type
Required
Description

filterObject

object

Yes

Filter with optional fromBlock, toBlock, address (single or array), topics (array of topic filters)

Request Example

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "eth_getLogs",
    "params": [
        {
            "fromBlock": "0x9c3b",
            "toBlock": "latest",
            "address": "0x4242424242424242424242424242424242424242",
            "topics": [
                "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
            ]
        }
    ],
    "id": "getblock.io"
}'

Response Example

Response Parameters

Field
Type
Description

result

array

Array of log objects matching the filter

result[].address

string

Contract address that emitted the log

result[].topics

array of string

Indexed event topics; topic 0 is typically the event signature hash

result[].data

string

Non-indexed event data (ABI-encoded)

Use Cases

  • Indexing TIP-20 stablecoin transfers on Tempo

  • Tracking Tempo stablecoin DEX swap events

  • Building payment activity feeds for wallets and merchant dashboards

  • Backfilling historical payment activity

Error Handling

Status Code
Error Message
Cause

403

Forbidden

Missing or invalid <ACCESS-TOKEN>

-32602

Invalid params

Request parameters are missing or malformed

429

Too Many Requests

Rate limit exceeded for your plan

-32005

Limit exceeded

Block range or returned result set exceeds the provider's limit; narrow your filter

SDK Integration

Last updated

Was this helpful?