> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validationcloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# debug_getRawTransaction

Returns the EIP-2718 binary-encoded transaction.

This method will use `80` [Compute Units](https://docs.validationcloud.io/nodeapi/about/billing.md).

***

## **Parameters**

`tx_hash` - String Required  - The transaction hash.

## **Returns**

`result` - String or null. The EIP-2718 binary-encoded transaction as hex, or `null` if the transaction is not found.

```json wrap theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// Result
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x02f8b08301863d8203e380843ba6ff0082d946941742b836bd6acb3f996e17f4b5b3bd172d97a93b80b844095ea7b3000000000000000000000000787344f1ac..."
}
```

```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl https://mainnet.elysium.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"debug_getRawTransaction","params":["0x1edcfafe2394941ab6a70191a5ee7674c23c2d511d897ed7361c9455745621db"],"id":1}'
```

```bash title="testnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl https://testnet.elysium.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"debug_getRawTransaction","params":["0xeefa1bf3d810b49062959ea7d4fc43687a0b28ba133124724f798865c0b4e01c"],"id":1}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.