Hi guys,
I am trying to handle pending transactions by using web3.eth.getPendingTransactions()
But it seems not works (?)
How can I get pending transactions with Moralis web3?
var pendingMMOrders = null;
try {
pendingMMOrders = await web3.eth.getPendingTransactions();
} catch (err) {
console.log("getPendingTransactions: Error: ", err);
}
I got this error:
getPendingTransactions: Error: Error: The method āeth_pendingTransactionsā does not exist / is not available.
{
āmethodā: āeth_pendingTransactionsā,
āparamsā: [],
ājsonrpcā: ā2.0ā,
āidā: 2390269410,
āoriginā: āhttp://localhost:3000ā,
ātabIdā: 200
}
at Object._fireError (index.js:50)
at sendTxCallback (index.js:540)
at cb (util.js:689)
at callbackifyOnRejected (util.js:666)
at Item.pushā¦/node_modules/process/browser.js.Item.run (browser.js:153)
at drainQueue (browser.js:123)