> For the complete documentation index, see [llms.txt](https://sodex.com/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sodex.com/documentation/for-developers/api-reference/json-rpc/eth-getrawtransactionbyhash.md).

# eth\_getRawTransactionByHash

POST `https://mainnet.valuechain.xyz`

Returns the RLP-encoded signed transaction for a hash.

## Parameters

| Name   | Type | Required | Description               |
| ------ | ---- | -------- | ------------------------- |
| `hash` | hash | Yes      | 32-byte transaction hash. |

## Result

**Raw transaction** (data or null): Hex-encoded signed transaction, or `null` if unknown.

## Example

### Response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x02f86d83045f9f825d58830f4240832dc6c0825208947779ef1c26a0437f9fbd06e21f238da8b8336cf28080c080a0cbd645f2126c669dfbd43a598481623efe24263ed37cea19795b3c7984ee2159a03b9de0d48c97b3454e6a7e848677dc948b2876b778d356034fe5b8ee946f7fbd"
}
```

## Code examples

### cURL

```bash
curl --request POST \
  --url https://mainnet.valuechain.xyz \
  --header 'Content-Type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "eth_getRawTransactionByHash", "params": ["0xb269e14e09977c2969efcabd2eabbef7aeb8196780a53fce6dc5b7605169b10d"]}'
```

### JavaScript

```javascript
const options = {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({"jsonrpc": "2.0", "id": 1, "method": "eth_getRawTransactionByHash", "params": ["0xb269e14e09977c2969efcabd2eabbef7aeb8196780a53fce6dc5b7605169b10d"]})
};

fetch('https://mainnet.valuechain.xyz', options)
  .then((res) => res.json())
  .then((res) => console.log(res))
  .catch((err) => console.error(err));
```

### Python

```python
import requests

url = "https://mainnet.valuechain.xyz"
payload = {
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getRawTransactionByHash",
  "params": [
    "0xb269e14e09977c2969efcabd2eabbef7aeb8196780a53fce6dc5b7605169b10d"
  ]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
```
