Skip to main content

eth_getFilterChanges

Polling method for a filter on Flow EVM Gateway, returns an array of logs since last poll.

Use Cases#

  • Event streaming - Get new events incrementally
  • Real-time monitoring - Track contract activity for consumer NFTs (NBA Top Shot, Disney Pinnacle), gaming dApps, and hybrid Cadence-EVM applications
  • Efficient indexing - Process only new events

Parameters#

ParameterTypeRequiredDescription
filterIdQUANTITYYesFilter ID from eth_newFilter

Request#

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

Code Examples#

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