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.
None
QUANTITY(hex string)
- A filter id.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.OPT_MAINNET)
// Access BlockVision Enhanced API requests
bv.getNewPendingTransactionFilter().then(console.log)
{
"jsonrpc": "2.0",
"id": 0,
"result": "0xa08914f1caedfcbe814d9fb33e69678d"
}
Last modified 1mo ago