> ## 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.

# eth_getRawTransactionByHash

Returns the raw, signed and RLP-encoded bytes of a transaction, given its hash.

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

***

## Reference: [Here](https://ethereum.github.io/execution-apis/)

## **Parameters**

`DATA`, 32 Bytes - Hash of a transaction.

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
params: [
  "0x1edcfafe2394941ab6a70191a5ee7674c23c2d511d897ed7361c9455745621db"
]
```

## **Returns**

`DATA` - The raw transaction bytes, or `null` when no transaction was found.

```json 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":"eth_getRawTransactionByHash","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":"eth_getRawTransactionByHash","params":["0xeefa1bf3d810b49062959ea7d4fc43687a0b28ba133124724f798865c0b4e01c"],"id":1}'
```


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