klay_newFilter
Creates a filter object, based on filter options, to notify when the state changes (logs).
The execution of this API can be limited by two node configurations to manage resources of Klaytn node safely.
Parameters
Object
- The filter options:
fromBlock
QUANTITY | TAG
(optional, default: "latest"
) Integer or hexadecimal block number, or the string "earliest"
, "latest"
or "pending"
toBlock
QUANTITY | TAG
(optional, default: "latest"
) Integer or hexadecimal block number, or the string "earliest"
, "latest"
or "pending"
address
20-byte DATA | Array
(optional) Contract address or a list of addresses from which logs should originate.
topics
Array of DATA
(optional) Array of 32-byte DATA topics. Topics are order-dependent. Each topic can also be an array of DATA with "or" options.
Return Value
QUANTITY
A filter id.
Example
Last updated