Why am I getting null trying to query ANY transaction id? Any ideas to troubleshoot?

Running in light mode. I can query last block number. I can query balances of addresses without issue. eth.getTransaction returns null no matter what id. We have another node with practically the same settings in config and it works fine. Server is running NTP so server time is synced. Does it take along time to get more peers? Our other node has 12 peers.

Geth console...

instance: Geth/v1.8.6-stable-12683fec/linux-amd64/go1.10
modules: admin:1.0 debug:1.0 eth:1.0 net:1.0 personal:1.0 rpc:1.0 
txpool:1.0 web3:1.0

> net.peerCount
> eth.getTransaction('INSERT ID HERE')
> net.listening
> eth.blockNumber
  • Could you test if it also returns null on very old transactions? I have this issue on test net but the problem seemed to go away when I probe old transactions. – Thorkil Værge Jan 26 at 12:31
  • A comment on Reddit suggests that light nodes cannot call getTransaction. reddit.com/r/ethereum/comments/8gfjfq/… – Thorkil Værge Jan 26 at 12:33

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.