Appearance
eth_getFilterChanges
served · same as reth
Returns what is new for a filter since the last poll.
When to use
Call it again and again (for example every few seconds) with the ID from eth_newFilter, eth_newBlockFilter or eth_newPendingTransactionFilter.
Example
bash
curl -s -X POST -H 'Content-Type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "eth_getFilterChanges", "params": ["0x1"]}' \
http://127.0.0.1:8547json
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getFilterChanges",
"params": [
"0x1"
]
}Response
Live mainnet, 2026-10-14. Checked against reth 2.7: equal.
json
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32000,
"message": "filter not found"
}
}Parameters
| Name | Type | Required | Meaning |
|---|---|---|---|
filterId | hex string | yes | The ID of the filter. |
Returns
For a log filter, a list of new logs. For a block filter, a list of new block hashes. For a pending transaction filter, a list of transaction hashes. An empty list when nothing is new. See Log.
Notes and limits
- A
pendingbound of a log filter counts as a bound that is not given, as in reth. SofromBlockpendingstarts at the first block after the last poll.toBlockpendingis the head. - The first poll includes the head block at the time that you created the filter.
- A log filter with an explicit
fromBlockandtoBlockuses that range on every poll. - Each poll resets the 5-minute expiry of the filter.
Errors
| Code | Message | When |
|---|---|---|
| -32000 | filter not found | The ID is unknown or the filter expired. |
| -32602 | block range extends beyond current head block: requested N, head M | A log filter has a toBlock above the head. |
| -32602 | query exceeds max block range 100000 | toBlock minus fromBlock is more than 100 000 in a log filter. |
Compared with reth
The live example above gives the same answer on Cinder and on reth 2.7.
Related methods
eth_newFilter, eth_getFilterLogs, eth_uninstallFilter.
Schema (OpenRPC)
The official specification: eth_getFilterChanges in ethereum/execution-apis.
Parameter Filter identifier: string
json
{
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "hex encoded unsigned integer",
"type": "string"
}Result: new block or transaction hashes or new logs
json
{
"oneOf": [
{
"items": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "32 byte hex value",
"type": "string"
},
"title": "new block or transaction hashes",
"type": "array"
},
{
"items": {
"additionalProperties": false,
"properties": {
"address": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"title": "address",
"type": "string"
},
"blockHash": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "block hash",
"type": "string"
},
"blockNumber": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "block number",
"type": "string"
},
"blockTimestamp": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "block timestamp",
"type": "string"
},
"data": {
"pattern": "^0x[0-9a-f]*$",
"title": "data",
"type": "string"
},
"logIndex": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "log index",
"type": "string"
},
"removed": {
"title": "removed",
"type": "boolean"
},
"topics": {
"items": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "32 hex encoded bytes",
"type": "string"
},
"title": "topics",
"type": "array"
},
"transactionHash": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "transaction hash",
"type": "string"
},
"transactionIndex": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "transaction index",
"type": "string"
}
},
"required": [
"transactionHash"
],
"title": "log",
"type": "object"
},
"title": "new logs",
"type": "array"
}
],
"title": "Filter results"
}