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>"
}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>"
}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.
transactionHash — the hash of the transaction to retrieve.result — the raw transaction data as a hexadecimal string.eth_getRawTransactionByHash method is essential for:
Was this page helpful?