Ethereum API
eth_getLogs
Overview
Ethereum API
- POSTeth_chainId
- POSTeth_call
- POSTeth_estimateGas
- POSTeth_gasPrice
- POSTeth_newFilter
- POSTeth_newBlockFilter
- POSTeth_uninstallFilter
- POSTeth_newPendingTransactionFilter
- POSTeth_getLogs
- POSTeth_getFilterLogs
- POSTeth_getFilterChanges
- POSTeth_getBalance
- POSTweb3_clientVersion
- POSTeth_getBlockByNumber
- POSTeth_getBlockByHash
- POSTeth_getBlockTransactionCountByNumber
- POSTeth_getBlockReceipts
- POSTeth_getBlockTransactionCountByHash
- POSTeth_getCode
- POSTeth_getStorageAt
- POSTeth_getTransactionCount
- POSTeth_sendRawTransaction
- POSTeth_accounts
- POSTeth_feeHistory
ZKSync API
- POSTzks_estimateFee
- POSTzks_estimateGasL1ToL2
- POSTzks_getBridgehubContract
- POSTzks_getMainContract
- POSTzks_getTestnetPaymaster
- POSTzks_getL1BatchBlockRange
- POSTzks_getL1BatchDetails
- POSTzks_L1BatchNumber
- POSTzks_L1ChainId
- POSTzks_getConfirmedTokens
- POSTzks_getAllAccountBalances
- POSTzks_getTransactionDetails
- POSTzks_getBlockDetails
- POSTzks_getBridgeContracts
- POSTzks_getBaseTokenL1Address
- POSTzks_getL2ToL1MsgProof
- POSTzks_getL2ToL1LogProof
- POSTzks_getRawBlockTransactions
- POSTzks_getBytecodeByHash
- POSTzks_getL1GasPrice
- POSTzks_getFeeParams
- POSTzks_getProtocolVersion
- POSTzks_getProof
- POSTzks_sendRawTransactionWithDetailedOutput
Debug API
PubSub API
Ethereum API
eth_getLogs
Returns logs matching the filter criteria
POST
/
eth_getLogs
curl --request POST \
--url https://api.mainnet.abs.xyz/eth_getLogs \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getLogs",
"params": [
{
"fromBlock": "0x1",
"toBlock": "0x2",
"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd",
"topics": [
"0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"
]
}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd",
"topics": [
"0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
"blockNumber": "0x1",
"logIndex": "0x0"
}
]
}
Body
application/json
JSON-RPC version
The method to call
Filter options
Request identifier
Response
200 - application/json
Returns the matching logs
Example:
"2.0"
Example:
1
Array of log objects
Example:
"0x8320fe7702b96808f7bbc0d4a888ed1468216cfd"
Example:
[
"0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"
]
Example:
"0x0000000000000000000000000000000000000000000000000000000000000001"
Example:
"0x1"
Example:
"0x0"
Was this page helpful?
curl --request POST \
--url https://api.mainnet.abs.xyz/eth_getLogs \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getLogs",
"params": [
{
"fromBlock": "0x1",
"toBlock": "0x2",
"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd",
"topics": [
"0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"
]
}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd",
"topics": [
"0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
"blockNumber": "0x1",
"logIndex": "0x0"
}
]
}