Skip to main content

eth_getFilterChanges

Polling method for a filter on Moonbase Alpha, returns an array of logs since last poll.

Use Cases#

  • Event streaming - Get new events incrementally
  • Real-time monitoring - Track contract activity for EVM dApp testing, XCM integration validation, and pre-mainnet deployment verification
  • 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-moonbase-alpha.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getFilterChanges",
"params": ["0x1"],
"id": 1
}'