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