eth_getLogs
ArbitrumC2Returns logs matching an address/topics filter across a block range. The backbone of indexing token transfers and contract events; wide historic ranges resolve on archive nodes.
Endpoint
POST https://api.1st-node.com/v1/arbitrum/rpcParameters
| Name | Type | Description |
|---|---|---|
| filter | Object | fromBlock, toBlock, address and topics to match. |
Returns
Array — matching log objects with data, topics and block references.
Request
curl https://api.1st-node.com/v1/arbitrum/rpc \
-H "Authorization: Bearer $ONE_KEY" \
-H "content-type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getLogs",
"params": [{ "fromBlock": "0x12d4000", "toBlock": "latest", "topics": ["0xddf252ad…"] }]
}'{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getLogs",
"params": [{ "fromBlock": "0x12d4000", "toBlock": "latest", "topics": ["0xddf252ad…"] }]
}Response
{
"jsonrpc": "2.0",
"id": 1,
"result": [{ "address": "0xdac17f…", "topics": ["0xddf252ad…"], "data": "0x…" }]
}Preguntas frecuentes
Can I query a wide historic range?
Yes — archive nodes serve historic logs; very large ranges may be paginated by block window.
How do I index ERC-20 transfers?
Filter on the Transfer topic 0xddf252ad… and the token address.
Recarga, obtén tu clave y publica.
Autoservicio. Paga en cripto o con tarjeta. Medido por créditos: las primitivas pesadas cuestan más, las simples son baratas.
Obtener clave API