Current offer: every account has 1 reset chance(s) to top its balance back up to 30,000,000 CU in one click. New accounts start with 30,000,000 CU. Learn more →
JSON-RPCMethods

eth_getLogs: parameters, returns and CU

Query event logs within a block range that match a filter. See parameters, return value, CU metering and supported chains for this method.

Summary

Query event logs within a block range that match a filter.

Compute Units (CU) and Pricing

CU per call

30 CU

Price per 1M calls (USD)

$3

Parameters

ParameterTypeDescription
filterobjectFilter object: fromBlock and toBlock (block number or tag, default latest), address (one address or an array of addresses), topics (an array where each item is null, a 32-byte topic, or an array of topics), or blockHash to target a single block.

Returns

  • Type: ARRAY
  • Description: Array of log objects in block order; an empty array when nothing matches.

Notes

blockHash is mutually exclusive with fromBlock/toBlock; topics match by position, and null means any value at that position.

Request Example

curl -X POST "https://dev-api.blockvectra.network/v1/robinhood_mainnet" \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: <api_key>' \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_getLogs",
    "params": [
      {
        "address": "<address>",
        "fromBlock": "<fromBlock>",
        "toBlock": "latest"
      }
    ],
    "id": 1
  }'

Supported Chains

Supported chains:

  • EthereumBetaeth_mainnet
  • HyperEVMhyperevm_mainnet
  • Robinhood Chainrobinhood_mainnet