0

I have only few lines in the code:

async function test() {
   await web3.eth.getTransactionCount('{ WALLET }').then(console.log);
}
test();

The return values are random: 0, 22 (this is the real value), 8, 3.. How is it possible? I tried ankr, quicknode, always the same. Network: BSC

2
  • so what happens if you do this via curl to the RPC server using eth_getTransactionCount as method name and the address as params ?
    – Nulik
    Jul 28, 2021 at 20:40
  • @Nulik I got the same result. It looks like the node is 1000 blocks behind the mainnet. Jul 29, 2021 at 14:22

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.