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

# Get transaction

> Get the details of a transaction by its hash.

`GET /transaction/:tx_hash`

The hash is `rx` followed by 64 hex characters.

```python theme={null}
r = requests.get(rpc_url + "/transaction/rx5cfae028bc91b7b69e7797cad2f2e13881a254efdad600009bf3be3d8f9a9893")
tx = r.json()

STATUS = ["pending", "success", "failed"]
status = STATUS[tx["status"]] if tx.get("status") is not None else "not found"
print(status)
```

## Status values

| Value | Meaning |
| - | - |
| `0` | pending |
| `1` | success |
| `2` | failed |

## Response

```json theme={null}
{
  "hash": "rx0726f08285801c8bae31390693371de5170e105e680ae552306f58a1e6a35a0f",
  "version": 1,
  "status": 1,
  "blocknumber": 6203,
  "position": 0,
  "timestamp": 1791896859,
  "power_used": 1200,
  "fee": "120000000000000",
  "event": "00",
  "chainid": 1,
  "action": 0,
  "sender": {
    "address": "rx86955906db9d5238ad51f0a96551f05b414df9e8",
    "public_key": "rxfd6a70b3723e93648f8f4c36c44a0cd11a36a7af9fdb214c3883681ab8e245ee"
  },
  "to": "rx9d0172598f220893e861f3a95a7bc446a749afe6",
  "nonce": 19,
  "amount": "1000000000000000000",
  "power": 1200,
  "power_limit": 1200,
  "price_per_power": "100000000000",
  "packet": "00",
  "tip": "40000000000000",
  "signature": "rxf12377c85978e13f677d61522adb7f6c31b16311b7e48e31fe257a4e0570df3bcce36603c88c5043e7954750d5afd55695444bdd25660a724d40020231e8b80d"
}
```

## Fields

| Field | Type | Description |
| - | - | - |
| `hash` | string | Transaction hash |
| `version` | uint8 | Transaction format version |
| `status` | uint8 | See status values above |
| `blocknumber` | uint64 | Block that contains the transaction |
| `position` | uint16 | Position of the transaction inside the block |
| `timestamp` | uint64 | Block timestamp |
| `power_used` | uint64 | Power actually used |
| `fee` | uint256 | Fee charged |
| `event` | string | Transfer actions have no event, so this is `00` on hex. Other actions may return bytes hex |
| `chainid` | uint32 | Chain identifier |
| `action` | uint8 | The action performed |
| `sender` | object | Sender `address` and `public_key` |
| `to` | string | Recipient address |
| `nonce` | uint64 | Sender nonce |
| `amount` | uint256 | Amount sent |
| `power` | uint64 | Power for the transaction |
| `power_limit` | uint64 | Maximum power allowed by the sender |
| `price_per_power` | uint256 | Price per unit of power |
| `packet` | string | A plain transfer has no packet, so this is `00` on hex. Other actions may return bytes hex |
| `tip` | uint256 | Tip |
| `signature` | string | Transaction signature |

## Errors

```json theme={null}
{
  "error": "transaction not found"
}
```


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