eth_getFilterChanges

Returns associated logs or block hashes for the given filter id since the last poll. Filter ids must be created using eth_newFilter or eth_newBlockFilter.

Parameters

Name
Type
Description

FilterId

HexString<FilterId>

Filter id created using eth_newFilter or eth_newBlockFilter.

Return Type

Log[] | HexString<Hash>[] - Array of log objects found or for filters created using eth_newBlockFilter an array of hashes.

Log

type Log = {
  address: Address; // Address from which this log was generated.

  blockHash: HexString<Hash> | null; // Block hash from which this log was generated or null if transaction is pending.
  blockNumber: HexString<Number> | null; // Block number from which this log was generated or null if transaction is pending.

  transactionHash: HexString<Hash>; // Transaction hash from which this log was generated.
  transactionIndex: HexString<Number> | null; // Transaction index from which this log was generated or null if transaction is pending.

  data: HexString; // Data of non-indexed arguments for the log.
  logIndex: HexString<Number> | null; // Log index in the block or null if transaction is pending.
  removed: boolean; // True if the log was removed, due to a chain reorganization. False if it's a valid log.
  topics: HexString<Topic>[]; // Array of 0 - 4 topics.
};

Example

Last updated

Was this helpful?