debug_getRawTransaction - Robinhood

debug_getRawTransaction. Returns the RLP-encoded raw transaction data.

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

Use cases

  • Re-broadcast a transaction to another node or network byte-for-byte
  • Verify a transaction hash independently by re-hashing the raw bytes
  • Feed raw transaction bytes into custom decoding or analytics tooling
Constraints

Constraints

  • Returns null if the transaction cannot be found
  • Requires an archive node for older 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":"debug_getRawTransaction",
    "params":["0x73b5269af660acf6f1074c5f9f312d415c359f2e5f5f67e95b369d0fbd3bd6b8"],
    "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 fetch.

Response

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

Response params

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