EthereumMethods
subscribePendingTransactions
The subscribePendingTransactions method allows developers to subscribe to real-time updates about pending transactions on the Ethereum blockchain. Applications will receive notifications whenever a...
subscribePendingTransactions
Overview
The 'subscribePendingTransactions' method allows developers to subscribe to real-time updates about pending transactions on the Ethereum blockchain. Applications will receive notifications whenever a pending transaction appears on the blockchain.
Request
{
"method": "subscribePendingTransactions",
"params": ["pendingTransactions", "callback_function"]
}Request Parameters
- string — A keyword identifying the type of event to subscribe to, pendingTransactions in this case.
- function — (optional) A callback function that will be called every time a new event of the specified type is received. This function takes two parameters: error and result. The error parameter contains any error that occurred while subscribing to the event, and the result parameter contains the data for the event that was received.
Response
{
"transactionHash": "hash_identifying_the_pending_transaction"
}eth_subscribe
The eth_subscribe('newHeads') method allows developers to receive real-time notifications regarding new block headers on the Ethereum blockchain. This method sends notifications whenever a new bloc...
eth_syncing
The 'eth_syncing' returns an object with data about the sync status or false.