Azxa
← Zora overview

Zora · 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}$"
    }

Result

EIP-2718 binary-encoded transaction

Schema
{
  "type": "string",
  "title": "hex encoded bytes",
  "pattern": "^0x[0-9a-f]*$"
}

Example request

Endpoint: https://your-zora-node.azxa.io

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "debug_getRawTransaction",
  "params": [
    "0x3a2fd1a5ea9ffee477f449be53a49398533d2c006a5815023920d1c397298df3"
  ]
}
Example response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xf8678084342770c182520894658bdf435d810c91414ec09147daa6db624063798203e880820a95…df178dd96935b607ff9b"
}

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"
  }
}

cURL

curl -X POST https://your-zora-node.azxa.io \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"debug_getRawTransaction","params":["0x3a2fd1a5ea9ffee477f449be53a49398533d2c006a5815023920d1c397298df3"]}'
1

Select Chain

2

Desired Period

3

Contact Information

cross

Select Preferred Chain

BNB Smart Chain
Polygon
Tron
Arbitrum
Optimism
IoTeX
Gnosis
Fantom
Moonbeam
Polkadot
Avalanche
Bitcoin
Ethereum
Aptos
Other
cube

Other Chain

Continue
logo
cross
background