The method eth_getRawTransactionByHash does not exist

Hi there,

I am using infura and sending this simple request:

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

However, I am getting this error:

raise ValueError(response[“error”])
ValueError: {‘code’: -32601, ‘message’: ‘The method eth_getRawTransactionByHash does not exist/is not available’}

I used the same command on BSC smart chain and it works OK. Is it my code or different providers?

Hi @T_digger888, and welcome to the Infura community! Unfortunately, getRawTransactionByHash is not one of our supported methods - you can find all the Ethereum methods we support in our docs here.