POST
https://optimism-mainnet.core.chainstack.com
/
efb0a5eccd2caa5135eb54eba6f7f300
curl --request POST \
  --url https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_getRawTransactionByHash",
  "id": 1,
  "params": [
    "0xd0a7bd7d80ba09a5a627b00fe6d05cde7d45939de9b16cb96d9029da1757b59b"
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}

Optimism API method eth_getRawTransactionByHash retrieves the raw transaction data as a hexadecimal string for a given transaction hash. This method is useful for obtaining the complete transaction data, including its signature.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • transactionHash — the hash of the transaction to retrieve.

Response

  • result — the raw transaction data as a hexadecimal string.

Use case

The eth_getRawTransactionByHash method is essential for:

  • Services that need to verify or inspect the complete transaction data and signature.
  • Wallets and exchanges that require the raw transaction for auditing or processing purposes.
  • Developers and tools that analyze transactions at a low level for security, performance, or other research purposes.

Body

application/json

Response

200 - application/json

Raw transaction data for the given hash

The response is of type object.