I am trying to run a simple command w3.eth.get_raw_transaction - this somehow works on the Binance smart chain, but does not work on infura.

tx_hash = "0x8dcc5116a366df826e07097720625a275e66ca8e9a3b6cdff82be04d86ddf6ea"
raw_data = w3.eth.get_raw_transaction(tx_hash)

I am getting this message:

raise ValueError(response["error"])

ValueError: {'code': -32601, 'message': 'The method eth_getRawTransactionByHash does not exist/is not available'}

  • The command eth_getRawTransactionByHash isn't part of the official api eth.wiki/json-rpc/API.
    – Ismael
    Commented Sep 23, 2021 at 6:08

1 Answer 1


This method is not supported by the Infura API according to this thread in their forums https://community.infura.io/t/the-method-eth-getrawtransactionbyhash-does-not-exist/3821/2

Your Answer

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

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