← BNB Smart Chain overview
BNB Smart Chain · eth
eth_newPendingTransactionFilter
Creates a filter in the node, allowing for later polling. Registers client interest in new transactions, and returns an identifier.
Result
Filter identifier
Schema
{
"type": "string",
"title": "hex encoded unsigned integer",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
}Example request
Endpoint: https://your-bsc-node.azxa.io
JSON-RPC
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_newPendingTransactionFilter",
"params": []
}Example response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x01"
}cURL
curl -X POST https://your-bsc-node.azxa.io \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_newPendingTransactionFilter","params":[]}'