Parameters
- objectobject
The log filter options
- fromBlockstringREQUIRED
A block number encoded as hexadecimal, or a block tag: earliest, latest, pending, safe, or finalized.
- toBlockstringREQUIRED
A block number encoded as hexadecimal, or a block tag: earliest, latest, pending, safe, or finalized.
- 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
Returns
- resultstring
It returns a filter id to be used when calling eth_getFilterChanges
Request
Response
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0x1409d7337fdb99a4a14cebc79c4c97c2"5}
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0x1409d7337fdb99a4a14cebc79c4c97c2"5}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free