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.
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?
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.”