eth_getFilterChanges
to get an array of block hashes of the latest blocks.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
none
— This method does not require any parameters.
Response
result
— the filter identifier (filterId
) as a hexadecimal string. This ID is used to query the filter changes or to uninstall the filter.
Use case
Theeth_newBlockFilter
method is particularly useful for applications that need to stay synchronized with the latest state of the blockchain, such as wallets, block explorers, or decentralized applications (DApps) that react to new blocks. It provides a more efficient way to monitor the blockchain for new blocks compared to polling the latest block number.Body
application/json