Parameters
- objectobject
The transaction response object which contains the following filter information:
- fromBlockstring
The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators. safe and finalized are only supported on Ethereum, Gnosis, Arbitrum, Arbitrum Nova, and Avalanche C-chain
- toBlockstring
The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators. safe and finalized are only supported on Ethereum, Gnosis, Arbitrum, Arbitrum Nova, and Avalanche C-chain
- addressstring
The contract address or a list of addresses from which logs should originate
- topicsstring
An array of DATA topics and also, the topics are order-dependent. Visit here to learn more about topics. A maximum of four topic positions is allowed; requests with more return error -32602
Returns
- resultstring
It returns a filter id to be used when calling eth_getFilterChanges
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0x990a0ab959f87cc519ae825a7e6e7a46"5}
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0x990a0ab959f87cc519ae825a7e6e7a46"5}