> 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-gettransactionreceipt.md).

# eth\_getTransactionReceipt

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

Returns the receipt of a transaction by hash.

`status` `0x1` is successful execution in that block. Product settlement can still be pending. See [Transaction Finality](/documentation/for-developers/developers/valuechain-evm/transaction-finality.md).

## Parameters

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

## Result

**Receipt** (object or null): Receipt with `status`, `gasUsed`, `logs`, and `effectiveGasPrice`, or `null` if not yet included.

## Example

### Response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "transactionHash": "0xb269e14e09977c2969efcabd2eabbef7aeb8196780a53fce6dc5b7605169b10d",
    "blockHash": "0x565381ec3a896e084662587ed4eba8f3b6745ffeff7b1d7b672b4b1bb724f3b5",
    "blockNumber": "0xd81e9f",
    "from": "0x7779ef1c26a0437f9fbd06e21f238da8b8336cf2",
    "to": "0x7779ef1c26a0437f9fbd06e21f238da8b8336cf2",
    "status": "0x1",
    "gasUsed": "0x5208",
    "effectiveGasPrice": "0x1e8480",
    "type": "0x2",
    "logs": []
  }
}
```

## 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_getTransactionReceipt", "params": ["0xb269e14e09977c2969efcabd2eabbef7aeb8196780a53fce6dc5b7605169b10d"]}'
```

### JavaScript

```javascript
const options = {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({"jsonrpc": "2.0", "id": 1, "method": "eth_getTransactionReceipt", "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_getTransactionReceipt",
  "params": [
    "0xb269e14e09977c2969efcabd2eabbef7aeb8196780a53fce6dc5b7605169b10d"
  ]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
```
