eth_newPendingTransactionFilter - BSC

Example code for the eth_newPendingTransactionFilter JSON RPC method. Сomplete guide on how to use eth_newPendingTransactionFilter JSON RPC in GetBlock Web3 documentation.

This method creates a filter to notify when new pending transactions arrive in the mempool on the BNB Smart Chain.

Parameters

  • None

Request Example

cURL
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "eth_newPendingTransactionFilter",
    "params": [],
    "id": "getblock.io"
}'

Response Example

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

Response Parameters

Parameter
Type
Description

result

string

Filter ID for polling

Use Cases

  • Monitor mempool activity

  • Track pending transactions

  • MEV detection

  • Transaction monitoring

Error Handling

Error Code
Description

-32603

Internal error

-32601

Method not supported

SDK Integration

Last updated

Was this helpful?