klay_newFilter RPC Method
Please be aware that the block range limit for this RPC method is 5 blocks for users on free Discover plans and 10,000 blocks for those on paid plans. Consider dividing your queries into smaller segments to enhance response times and manage errors more effectively. For further details on the block range limit and strategies for mitigating it, please consult the FAQ
Parameters
object
array
The transaction response object which contains the following filter information:
fromBlock
string
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
toBlock
string
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
address
string
The contract address or a list of addresses from which logs should originate
topics
array
An array of DATA topics and also, the topics are order-dependent. Visit here to learn more about topics
Returns
result
string
It returns a filter id
Request
1curl https://docs-demo.kaia-kairos.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{5"method": "klay_newFilter",6"id": 1,7"jsonrpc": "2.0",8"params": [9{10"fromBlock": "earliest",11"toBlock": "latest",12"address": "0x87ac99835e67168d4f9a40580f8f5c33550ba88b",13"topics": [14"0xd596fdad182d29130ce218f4c1590c4b5ede105bee36690727baa6592bd2bfc8"15]16}17]18}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free