avalanche node & pending transactions

Hi, Iā€™m trying to receive pending transaction with the avalanche node. It works but this is not pending transactions, I receive transactions but 3 seconds later and already submitted. Does it means moralis avalanche node is not a validator node? or maybe latency? Thanks for your help.

1 Like

If you try multiple times to run the script you get the same delay?

yes always same delay. I receive the transaction always 2 or 3 sec after they have been submited and validated.

Can you also print current block number?
Is that number up to date?

1 Like

yes I got the current block but late pending transaction. Maybe the problem comes from how I subscribe to the pending transaction. Iā€™m using eth.subscribe(ā€˜newPendingTransactionsā€™ā€¦ and it says : ā€œSubscription ā€œnewPendingTransactionsā€ doesnā€™t exist. Subscribing anyway.ā€

1 Like