eth_getRawTransactionByHash - Robinhood

eth_getRawTransactionByHash. Returns the raw (RLP-encoded) transaction data for a given transaction hash.

eth_getRawTransactionByHash - robinhood [Value: 20CU]
Returns the RLP-encoded bytes of a mined transaction identified by its hash
Use cases

Use cases

  • Re-broadcast a transaction to another node byte-for-byte
  • Verify a transaction's hash independently
  • Feed raw transaction bytes into custom decoders or archival tooling
Constraints

Constraints

  • Returns null if the transaction cannot be found
  • Requires an archive node for older transactions
  • Only covers mined transactions
Get started
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://lb.drpc.live/robinhood/{API-KEY} \
-X POST \
-H "Content-Type: application/json" \
-d '{"method":"eth_getRawTransactionByHash",
    "params":["0xa52be92809541220ee0aaaede6047d9a6c5d0cd96a517c854d944ee70a0ebb44"],
    "id":1,
    "jsonrpc":"2.0"}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xf86c0185012a05f200825208940599d52c37544c07605f470e5e20c1b266de858889021dfc23e5c290008025a084ce48a415a40d664f87a6a05e8ec8e2fd2f07a68b06d3f20d999d7e8c7b12dfa0464c6e93bfa8e779ecd48284cf47d2d797dc611bbc6dbd7ab8f57ccba039acec"
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
transactionHashstring
The hash of the transaction to retrieve.

Response

200
The RLP-encoded transaction, as a hexadecimal string, or null if not found

Response params

object
idinteger
jsonrpcstring
resultstring
The RLP-encoded transaction as a hexadecimal string, or null if not found.