Docs
Supported ChainsXDC NetworkJSON-RPC APISmart Contract Methods

eth_getFilterLogs - XDC Network RPC Method

Get all logs for a filter on XDC Network. Essential for historical event queries.

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

Use Cases

  • Historical queries - Get all matching logs for a filter
  • Full event history - Retrieve complete event data for tokenized trade finance (Letters of Credit, Bills of Lading), cross-border payments, and real-world asset tokenization

Request Parameters

Request
filterIdQUANTITY

Filter ID from eth_newFilter

Response Body

Response

Code Examples

Bash
curl -X POST https://api-xdc-mainnet.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_getFilterLogs",
    "params": ["0x1"],
    "id": 1
  }'
JavaScript
import { JsonRpcProvider } from 'ethers';

const provider = new JsonRpcProvider('https://api-xdc-mainnet.n.dwellir.com/YOUR_API_KEY');

const logs = await provider.send('eth_getFilterLogs', [filterId]);
console.log('All matching logs:', logs.length);

On this page