⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
avax
Avalanche (AVAX)

Method: POST eth_newPendingTransactionFilter

dropdown

# eth_newPendingTransactionFilter example for Avalanche (AVAX)

POST eth_newPendingTransactionFilter

Creates a filter in the node, to notify when new pending transactions arrive. To check if the state has changed, call eth_getFilterChanges.

Parameters

-

Request

curl --location --request POST 'https://avax.getblock.io/mainnet/ext/bc/C/rpc' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "eth_newPendingTransactionFilter",
"params": [],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x9abf345f96faf2ba54ab8b99f11f4510"
}