← Robinhood Chain overview

Robinhood Chain · debug

debug_getRawTransaction

Returns an array of EIP-2718 binary-encoded transactions.

Parameters

  • Transaction hash required
    Schema
    {
      "type": "string",
      "title": "32 byte hex value",
      "pattern": "^0x[0-9a-f]{64}$"
    }

cURL

Endpoint: https://rh-mainnet.eu1.azxa.io/<api-key> — replace <api-key> with your API key from the Azxa app .

Terminal
curl -X POST https://rh-mainnet.eu1.azxa.io/<api-key> \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"debug_getRawTransaction","params":["0x3a2fd1a5ea9ffee477f449be53a49398533d2c006a5815023920d1c397298df3"]}'

Example request

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "debug_getRawTransaction",
  "params": [
    "0x3a2fd1a5ea9ffee477f449be53a49398533d2c006a5815023920d1c397298df3"
  ]
}

Result

EIP-2718 binary-encoded transaction

Example response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xf8678084342770c182520894658bdf435d810c91414ec09147daa6db624063798203e880820a95…df178dd96935b607ff9b"
}
Schema
{
  "type": "string",
  "title": "hex encoded bytes",
  "pattern": "^0x[0-9a-f]*$"
}

Test fixture

Fixture: get-invalid-hash

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "debug_getRawTransaction",
  "params": [
    "1000000000000000000000000000000000000000000000000000000000000001"
  ]
}
Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32602,
    "message": "invalid argument 0: json: cannot unmarshal hex string without 0x prefix into Go value of type common.Hash"
  }
}