Skip to main content
POST
/
be84184cd12967be5a65d06651c60085
eth_getRawTransactionByHash
curl --request POST \
  --url https://plasma-mainnet.core.chainstack.com/be84184cd12967be5a65d06651c60085 \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getRawTransactionByHash",
  "params": [
    "0x0000000000000000000000000000000000000000000000000000000000000000"
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {}
}
Plasma API method that returns the raw transaction data by transaction hash.

Parameters

  • data — the hash of the transaction

Response

  • data — the raw transaction data, or null when no transaction was found

eth_getRawTransactionByHash code examples

const { JsonRpcProvider } = require("ethers");

const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");

async function call() {
  const result = await provider.send("eth_getRawTransactionByHash", [
    "0xTRANSACTION_HASH"
  ]);
  console.log(result);
}

call();

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_getRawTransactionByHash
params
string[]

Hash of the transaction.

Response

200 - application/json

Returns the raw transaction data by transaction hash.

jsonrpc
string
id
integer
result
object | null