5

I'm having this strange problem and it may be related to the way my node is configured. I'm making calls to both infura and my own nodes like so:

{'id': 123, 'jsonrpc': '2.0', 'method': 'eth_getTransactionReceipt', 'params': ['0x1234...']}

For this one specific txid, when I make this call to my own node it returns a null:

{"jsonrpc":"2.0","result":null,"id":123}

Yet when I make this same exact call to infura it returns me the valid and correct response. Also, note that I can look this txid up on etherscan and see that it was mined in successfully days ago. I'm certain that my node is working because I'm making all sorts of other calls to it, eth_call, eth_getBalance, etc. I seem to only have this problem with eth_getTransactionReceipt. Also, note that I can plug in other random txids and make this call to my node and it will return me valid data. This only happens for this one specific txid and a few others. There must be some pattern to which txids work and which do not...

So there seems to be something wrong with my node or my node's configuration. Any ideas what the problem maybe?

I'm launching my parity node like so

parity --jsonrpc-apis web3,eth,pubsub,net,parity,parity_pubsub,traces,rpc,secretstore,shh,shh_pubsub --jsonrpc-interface=<ipaddress> --jsonrpc-hosts=all

My node is synced and when I call eth_blockNumber i'm getting the latest block

Edit:

I'm also seeing this issue when I use python ethereum via this call:

url = 'https://mainnet.infura.io/......'  // This always works for every txhash
url = 'http://urlToMyParityNode:8545'   // This always works for some txhashes and always doesn't work for some txhashes
w3 = Web3(HTTPProvider(url))
tx_receipt = w3.eth.getTransactionReceipt("0xTxId")

But when I use either infura or auto, it works just fine. There must be something wrong with my node configuration, or I cannot use a light node. I wonder if auto only detects full nodes and does not consider light nodes.

tx_receipt = w3.eth.getTransactionReceipt("0xTxId")
5
  • Nodes occasionally fall out of sync, and the tx receipt won't be available until it catches up to the block the tx was mined in. Are you sure your node is fully synced when you are missing a receipt? Sep 5, 2018 at 4:09
  • Yes, I am actually running 3 nodes and all have that same behavior. I will try restarting them despite them being up to date.
    – LampShade
    Sep 5, 2018 at 4:20
  • Restarting didn't do the try, they still appear synced.
    – LampShade
    Sep 5, 2018 at 4:30
  • Would you mind posting the tx id you mean?
    – n1cK
    Sep 10, 2018 at 21:57
  • 1
    I'd prefer not to for privacy reasons, but I will gladly contact you to send it directly. Check your email.
    – LampShade
    Sep 12, 2018 at 1:54

1 Answer 1

0

If your own node running with fast mode, then historical txn will missing in your node. But infura's api has full data

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.