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
| Parameter | Type | Description |
|---|---|---|
filter | object | Filter 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:
- EthereumBeta
eth_mainnet - HyperEVM
hyperevm_mainnet - Robinhood Chain
robinhood_mainnet
Related references
eth_getTransactionReceipt: parameters, returns and CU
Return the receipt (execution result) of a transaction by its hash. See parameters, return value, CU metering and supported chains for this method.
eth_feeHistory: parameters, returns and CU
Return historical base fees, gas usage ratios and fee percentiles. See parameters, return value, CU metering and supported chains for this method.