Parameters
The transaction response object which contains the following filter information:
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
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
The contract address or a list of addresses from which logs should originate
An array of DATA topics and also, the topics are order-dependent. Visit here to learn more about topics
Returns
It returns a filter id to be used when calling eth_getFilterChanges
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0x7e77cbc1cc9cf2faa4eeb1e9f0ab16ce"5}
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0x7e77cbc1cc9cf2faa4eeb1e9f0ab16ce"5}