eth_getLogs - XDC Network RPC Method
Query event logs on XDC Network. Essential for indexing tokenized trade finance (Letters of Credit, Bills of Lading), cross-border payments, and real-world asset tokenization on the enterprise-grade blockchain for trade finance with 2-second finality and ISO 20022 compliance.
Returns an array of all logs matching a given filter object on XDC Network.
Why XDC Network? Build on the enterprise-grade blockchain for trade finance with 2-second finality and ISO 20022 compliance with ISO 20022 messaging, ITFA membership, Contour Network acquisition, 801M+ transactions, and partnerships with Circle and Deutsche Telekom.
Use Cases
The eth_getLogs method is essential for:
- Event indexing - Track contract events for tokenized trade finance (Letters of Credit, Bills of Lading), cross-border payments, and real-world asset tokenization
- Token transfers - Monitor ERC20/ERC721 transfers
- DeFi analytics - Track swaps, liquidity events, and more
- Notification systems - Alert on specific on-chain events
Code Examples
Error Handling
| Error Code | Message | Description |
|---|---|---|
| -32005 | Query returned more than 10000 results | Reduce block range |
| -32602 | Invalid params | Invalid filter parameters |
Related Methods
eth_newFilter- Create a filter for logseth_getFilterChanges- Poll filter for new logs
eth_call
Execute smart contract calls without creating transactions on XDC Network. Essential for reading contract state for tokenized trade finance (Letters of Credit, Bills of Lading), cross-border payments, and real-world asset tokenization.
eth_newFilter
Create an event log filter on XDC Network. Essential for event monitoring, contract activity tracking, and DeFi event streaming for tokenized trade finance (Letters of Credit, Bills of Lading), cross-border payments, and real-world asset tokenization.