curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_newPendingTransactionFilter",
"id": 1
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_newPendingTransactionFilter",
"id": 1
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
none
result
— a string representing the filter ID. This ID should be used in subsequent calls to eth_getFilterChanges to retrieve new pending transactions.eth_newPendingTransactionFilter
method is useful for applications that need to monitor the mempool for new transactions. Common use cases include:
eth_getFilterChanges
periodically to get updates. Filters timeout if they’re not used for a period of time, so applications should be prepared to recreate them if necessary.The ID of the created pending transaction filter
The response is of type object
.
Was this page helpful?