I have only few lines in the code:

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

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

  • 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 '21 at 20:40
  • @Nulik I got the same result. It looks like the node is 1000 blocks behind the mainnet. Jul 29 '21 at 14:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.