Skip to main content

eth_getFilterLogs

Returns an array of all logs matching filter with given ID on Zetachain.

Use Cases#

  • Historical queries - Get all matching logs for a filter
  • Full event history - Retrieve complete event data for omnichain DeFi, native Bitcoin smart contracts, cross-chain asset management, and unified liquidity aggregation

Parameters#

ParameterTypeRequiredDescription
filterIdQUANTITYYesFilter ID from eth_newFilter

Request#

{
"jsonrpc": "2.0",
"method": "eth_getFilterLogs",
"params": ["0x1"],
"id": 1
}

Code Examples#

curl -X POST https://api-zetachain-mainnet-archive.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getFilterLogs",
"params": ["0x1"],
"id": 1
}'