Skip to main content

eth_newPendingTransactionFilter

Creates a filter in the node, to notify when new pending transactions arrive on Avalanche C-Chain.

Parameters#

This method accepts no parameters.

{
"jsonrpc": "2.0",
"method": "eth_newPendingTransactionFilter",
"params": [],
"id": 73
}

Returns#

QUANTITY - A filter id.

Implementation Example#

curl -X POST https://api-avalanche-mainnet-archive.n.dwellir.com/YOUR_API_KEY/ext/bc/C/rpc \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_newPendingTransactionFilter",
"params": [],
"id": 73
}'

Response Example#

{
"id": 73,
"jsonrpc": "2.0",
"result": "0x1"
}

Note: Use the returned filter ID with eth_getFilterChanges to poll for pending transactions. Note that pending transaction filters may have limited utility on Avalanche due to fast block times.


Need help? Contact our support team or check the Avalanche documentation.