Marketplace has launched, further enabling blockchain developers! Learn more


eth_getFilterChanges RPC method

The eth_getFilterChanges EVM method is only supported on the Avalanche C-Chain.


  1. Quantity - The filter id that is returned from eth_newFilter, eth_newBlockFilter or eth_newPendingTransactionFilter, .


  1. Array - Array of one of the following, depending on the filter type, or empty if no changes since last poll:
    • eth_newBlockFilter

      blockHash - The 32 byte hash of a block that meets your filter requirements.

    • eth_newPendingTransactionFilter

      transactionHash - The 32 byte hash of a transaction that meets your filter requirements.

    • eth_newFilter

      removed - Boolean true if log was removed, due to a chain reorganization. false if its a valid log.

      logIndex - Integer of log index position in the block encoded as a hexadecimal. null if pending.

      transactionIndex - Integer of transactions index position log was created from. null if pending.

      transactionHash - Hash of the transactions this log was created from. null if pending.

      blockHash - Hash of the block where this log was in. null when its pending. null if pending.

      blockNumber - The block number where this log was, encoded as a hexadecimal. null if pending.

      address - The address from which this log originated.

      data - Contains one or more 32 Bytes non-indexed arguments of the log.

      topics - Array of 0 to 4 32 Bytes of indexed log arguments.

Code Examples:

To use the eth_getFilterChanges EVM method on the Avalanche C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.

const ethers = require("ethers");

const filter = {
  fromBlock: "0x1",
  toBlock: "0x2",
  address: "0x8888f1f195afa192cfee860698584c030f4c9db1",
  topics: [

(async () => {
  const provider = new ethers.providers.JsonRpcProvider("");
  const filterId = await provider.send("eth_newFilter", [filter]);
  const logs = await provider.send("eth_getFilterChanges", [filterId]);
Ready to get started? Create a free account