Links

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.

Parameter

None

Returns

QUANTITY(hex string) -A filter id.

Example

Request

curl
TypeScript
curl https://blockvision.org/v1/<your api key> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_newPendingTransactionFilter",
"params": [],
"id": 0
}'
import { BlockVisionProvider, BvNetwork } from 'blockvision.js'
// Optional parameters, but default to eth-mainnet and default api-key.
const bv = new BlockVisionProvider(BvNetwork.ARB_MAINNET)
// Access BlockVision Enhanced API requests
bv.getNewPendingTransactionFilter().then(console.log)

Response

{
"jsonrpc": "2.0",
"id": 0,
"result": "0xa08914f1caedfcbe814d9fb33e69678d"
}