Iāve found this topic had been asked before ( forum(dot)moralis(dot)io/t/getpendingtransactions-error/1577 ), but no valid answer:
I specifically need āgetPendingTransactions a.k.a. eth_pendingTransactionsā endpoint for BSC.
however, the solution described in that answer, is subscribe(āpendingTransactionsā) . But as you see in the links of their doc pages,the first one provides promise of full object/info, while the latter one only provide transaction hashes.
I want to know if Moralis has the first endpoint working somehow, as I couldnt get it working with the code:
setInterval( async function(){ web3.eth.getPendingTransactions().then(console.log); }, 1000);
as it always returns empty array.