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
curl
to the RPC server usingeth_getTransactionCount
as method name and the address asparams
?