← Zora overview
Zora · eth
eth_getFilterLogs
Returns an array of all logs matching the filter with the given ID (created using `eth_newFilter`).
Parameters
Filter identifierrequiredSchema{ "type": "string", "title": "hex encoded unsigned integer", "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$" }
Result
Log objects
Schema
{
"title": "Filter results",
"oneOf": [
{
"type": "array",
"title": "new block or transaction hashes",
"items": {
"type": "string",
"title": "32 byte hex value",
"pattern": "^0x[0-9a-f]{64}$"
}
},
{
"type": "array",
"title": "new logs",
"items": {
"type": "object",
"title": "log",
"properties": {
"address": {
"type": "string",
"title": "address",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"blockHash": {
"type": "string",
"title": "block hash",
"pattern": "^0x[0-9a-f]{64}$"
},
"blockNumber": {
"type": "string",
"title": "block number",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"blockTimestamp": {
"type": "string",
"title": "block timestamp",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"data": {
"type": "string",
"title": "data",
"pattern": "^0x[0-9a-f]*$"
},
"logIndex": {
"type": "string",
"title": "log index",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"removed": {
"type": "boolean",
"title": "removed"
},
"topics": {
"type": "array",
"title": "topics",
"items": {
"type": "string",
"title": "32 hex encoded bytes",
"pattern": "^0x[0-9a-f]{64}$"
}
},
"transactionHash": {
"type": "string",
"title": "transaction hash",
"pattern": "^0x[0-9a-f]{64}$"
},
"transactionIndex": {
"type": "string",
"title": "transaction index",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
}
},
"required": [
"transactionHash"
]
}
}
]
}Example request
Endpoint: https://your-zora-node.azxa.io
JSON-RPC
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getFilterLogs",
"params": [
"0x01"
]
}Example response
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"address": "0x42699a7612a82f1d9c36148af9c77354759b210b",
"blockHash": "0xfc139f5e2edee9e9c888d8df9a2d2226133a9bd87c88ccbd9c930d3d4c9f9ef5",
"blockNumber": "0x233",
"blockTimestamp": "0x11",
"data": "0x0000000000000000000000000000000000000000000000000000000000000004",
"logIndex": "0x0",
"removed": false,
"topics": [
"0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"
],
"transactionHash": "0x66e7a140c8fa27fe98fde923defea7562c3ca2d6bb89798aabec65782c08f63d",
"transactionIndex": "0x0"
},
{
"address": "0x42699a7612a82f1d9c36148af9c77354759b210b",
"blockHash": "0x98b0ec0f9fea0018a644959accbe69cd046a8582e89402e1ab0ada91cad644ed",
"blockNumber": "0x238",
"blockTimestamp": "0x22",
"data": "0x0000000000000000000000000000000000000000000000000000000000000007",
"logIndex": "0x0",
"removed": false,
"topics": [
"0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"
],
"transactionHash": "0xdb17aa1c2ce609132f599155d384c0bc5334c988a6c368056d7e167e23eee058",
"transactionIndex": "0x0"
}
]
}cURL
curl -X POST https://your-zora-node.azxa.io \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getFilterLogs","params":["0x01"]}'