eth_getLogsWithCursor
eth_getLogsWithCursor — paginated log queries using a cursor for incremental retrieval of large datasets.
Last updated
eth_getLogsWithCursor — paginated log queries using a cursor for incremental retrieval of large datasets.
Last updated
curl -sS https://mainnet.megaeth.com/rpc \
-X POST -H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getLogsWithCursor",
"params": [{
"fromBlock": "0x100",
"toBlock": "0x200",
"address": "0x1234567890abcdef1234567890abcdef12345678",
"topics": ["0xddf252ad..."]
}]
}'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"logs": [
{
"address": "0x1234567890abcdef1234567890abcdef12345678",
"blockNumber": "0x101",
"logIndex": "0x0",
"topics": ["0xddf252ad..."],
"data": "0x...",
"transactionHash": "0x...",
"transactionIndex": "0x0",
"blockHash": "0x...",
"removed": false
}
],
"cursor": "0x0000010100000000"
}
}curl -sS https://mainnet.megaeth.com/rpc \
-X POST -H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "eth_getLogsWithCursor",
"params": [{
"fromBlock": "0x100",
"toBlock": "0x200",
"address": "0x1234567890abcdef1234567890abcdef12345678",
"topics": ["0xddf252ad..."],
"cursor": "0x0000010100000000"
}]
}'{
"jsonrpc": "2.0",
"id": 2,
"result": {
"logs": [
{
"address": "0x1234567890abcdef1234567890abcdef12345678",
"blockNumber": "0x102",
"logIndex": "0x3",
"topics": ["0xddf252ad..."],
"data": "0x...",
"transactionHash": "0x...",
"transactionIndex": "0x2",
"blockHash": "0x...",
"removed": false
}
]
}
}