> For the complete documentation index, see [llms.txt](https://docs-unified.crypto-chief.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-unified.crypto-chief.com/api-reference/transactions.md). Agents can also search and read this documentation through its [MCP server](https://docs-unified.crypto-chief.com/~gitbook/mcp).

# Transactions

## Transactions

### Get a transaction

`GET /v1/transactions/{network}/{hash}`

One transaction with its fee, its transfers and its finality. With `include=events`, the decoded events of the transaction; with `include=raw`, the node's own representation.

#### Parameters

| Parameter  | In    | Type   | Required | Description                                                                                                   |
| ---------- | ----- | ------ | -------- | ------------------------------------------------------------------------------------------------------------- |
| `network`  | path  | string | Yes      | Network code or CAIP-2 alias                                                                                  |
| `hash`     | path  | string | Yes      | Transaction hash in the network's format; on TON, the hash or the `tx_ref`                                    |
| `include`  | query | string | No       | Comma-separated: `events`, `raw`, `fiat` (prices of the transfers at block time; NFT transfers by their sale) |
| `currency` | query | string | No       | Fiat currency for `include=fiat`. Default `USD`                                                               |

#### Request

```bash
curl -s "https://api-unified.crypto-chief.com/v1/transactions/ETH_MAINNET/0x8b4c9e12f5a603d7c891b234e567f890123456789abcdef0123456789abcdef0" \
  -H "X-API-Key: $CC_API_KEY"
```

#### Response

```json
{
  "network": "ETH_MAINNET",
  "hash": "0x8b4c9e12f5a603d7c891b234e567f890123456789abcdef0123456789abcdef0",
  "tx_ref": null,
  "status": "success",
  "category": null,
  "stage": "final",
  "confirmations": "72",
  "finality": { "basis": "finalized_tag", "economic": true },
  "block": {
    "height": "23950041",
    "hash": "0x4a5b6c7d8e9f00112233445566778899aabbccddeeff00112233445566778899",
    "parent_hash": "0x394a5b6c7d8e9f00112233445566778899aabbccddeeff001122334455667788",
    "timestamp": "2026-11-29T09:45:48.000Z"
  },
  "index": 58,
  "signers": ["0x1f33a8b5c6d7e8f90123456789abcdef012393c9"],
  "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "fee": { "asset": "native", "raw": "690000000000000", "decimals": 18, "value": "0.00069" },
  "resources": null,
  "memo": null,
  "source_tag": null,
  "destination_tag": null,
  "transfers": [
    {
      "id": "5a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b",
      "network": "ETH_MAINNET",
      "type": "transfer.token",
      "block": {
        "height": "23950041",
        "hash": "0x4a5b6c7d8e9f00112233445566778899aabbccddeeff00112233445566778899",
        "parent_hash": "0x394a5b6c7d8e9f00112233445566778899aabbccddeeff001122334455667788",
        "timestamp": "2026-11-29T09:45:48.000Z"
      },
      "transaction": {
        "hash": "0x8b4c9e12f5a603d7c891b234e567f890123456789abcdef0123456789abcdef0",
        "index": 58,
        "success": true,
        "fee": { "asset": "native", "raw": "690000000000000", "decimals": 18, "value": "0.00069" }
      },
      "stage": "final",
      "confirmations": "72",
      "finality": { "basis": "finalized_tag", "economic": true },
      "direction": "out",
      "from": "0x1f33a8b5c6d7e8f90123456789abcdef012393c9",
      "to": "0x99887766554433221100ffeeddccbbaa99887766",
      "asset": {
        "network": "ETH_MAINNET", "id": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "kind": "token", "standard": "erc20",
        "contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "token_id": null, "symbol": "USDC", "decimals": 6, "name": "USD Coin",
        "logo_url": null, "listed": true, "spam": { "status": "unknown", "reasons": [] }, "flags": ["pausable", "blacklist"]
      },
      "amount": { "raw": "25000000", "decimals": 6, "scale": null, "value": "25" },
      "source": { "kind": "log", "path": "log/0/erc20", "success": true, "memo": null, "source_tag": null, "destination_tag": null },
      "utxo": null
    }
  ],
  "internal_coverage": "per_tx_aggregate",
  "error": null
}
```

A transaction the network confirms it does not know is `404 NOT_FOUND`. A data source that does not answer is `503`, never `404`.

#### The transaction object

| Field                                   | Type                | Description                                                                                                                                                                                                                                 |
| --------------------------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `network`                               | string              | Network code                                                                                                                                                                                                                                |
| `hash`                                  | string              | Transaction hash                                                                                                                                                                                                                            |
| `tx_ref`                                | string \| null      | TON: `<account>\|<lt>\|<hash>`, which names one account transaction; `null` elsewhere                                                                                                                                                       |
| `status`                                | string              | `pending`, `success`, `failed`, `dropped`, `replaced`                                                                                                                                                                                       |
| `category`                              | string \| null      | Relative to the queried address in [address lists](https://docs-unified.crypto-chief.com/api-reference/address-history.md#transactions-of-an-address): `send`, `receive`, `self`, `swap`, `approve`, `contract_call`, `deploy`; `null` here |
| `stage`, `confirmations`, `finality`    |                     | `stage` is `null` while pending ([Confirmations and Finality](https://docs-unified.crypto-chief.com/getting-started/confirmations-and-finality.md))                                                                                         |
| `block`, `index`                        |                     | The block and the position in it; `null` while pending                                                                                                                                                                                      |
| `signers`                               | string\[]           | Signers; the first pays the fee. On Solana, every signer                                                                                                                                                                                    |
| `to`                                    | string \| null      | Target of the top-level call or payment                                                                                                                                                                                                     |
| `fee`                                   | object \| null      | Fee paid, in the native coin                                                                                                                                                                                                                |
| `resources`                             | object \| null      | TRON: `energy_used`, `bandwidth_used`                                                                                                                                                                                                       |
| `memo`, `source_tag`, `destination_tag` |                     | Transaction-level memo (TON comment, Solana memo) and XRP Ledger tags                                                                                                                                                                       |
| `transfers`                             | Transfer\[] \| null | Transfers made by the transaction, including native value sent by contracts as far as `internal_coverage` says                                                                                                                              |
| `internal_coverage`                     | string              | `none` — no contract-made native transfers in `transfers`; `per_tx_aggregate` — they are included, aggregated for this transaction; `full` — each is included                                                                               |
| `events`                                | Event\[]            | With `include=events`: decoded logs and other events, in the [event](https://docs-unified.crypto-chief.com/api-reference/events.md#the-event-object) shape                                                                                  |
| `error`                                 | object \| null      | `{code, message}` — why a failed transaction failed                                                                                                                                                                                         |
| `raw`                                   | any                 | With `include=raw`: the node's response as is                                                                                                                                                                                               |

#### By family

TRON — `resources` shows the energy and bandwidth burned:

```json
{
  "network": "TRON_MAINNET",
  "hash": "1f3a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a",
  "tx_ref": null,
  "status": "success",
  "category": null,
  "stage": "confirmed",
  "confirmations": "55",
  "finality": { "basis": "solidified", "economic": true },
  "block": {
    "height": "77120280",
    "hash": "000000000498b868a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4",
    "parent_hash": "000000000498b867f0e1d2c3b4a5968778695a4b3c2d1e0f9a8b7c6d5e4f3a2b",
    "timestamp": "2026-11-29T09:58:00.000Z"
  },
  "index": 14,
  "signers": ["4174472e7d35395a6b5f427e1b3c4d5e6f7a8b9c0d"],
  "to": "41a614f803b6fd780986a42c78ec9c7f77e6ded13c",
  "fee": { "asset": "native", "raw": "13650000", "decimals": 6, "value": "13.65" },
  "resources": { "energy_used": "64285", "bandwidth_used": "345" },
  "memo": null,
  "source_tag": null,
  "destination_tag": null,
  "transfers": [],
  "internal_coverage": "full",
  "error": null
}
```

TON — look a transaction up by hash or by `tx_ref`; the response carries both:

```bash
curl -s "https://api-unified.crypto-chief.com/v1/transactions/TON_MAINNET/0x7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d" \
  -H "X-API-Key: $CC_API_KEY"
```

```json
{
  "network": "TON_MAINNET",
  "hash": "0x7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d",
  "tx_ref": "0:83dfd552e63729b472fcbcc8c45ebcc6691702558b68ec7527e1ba403a0f31a8|52118000000003|0x7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d",
  "status": "success",
  "category": null,
  "stage": "final",
  "confirmations": "13",
  "finality": { "basis": "masterchain_seqno", "economic": true },
  "block": {
    "height": "43120488",
    "hash": "0x6d5e4f3a2b1c0d9e8f7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b7c6d5e",
    "parent_hash": "0x5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d",
    "timestamp": "2026-11-29T09:59:02.000Z"
  },
  "index": 3,
  "signers": [],
  "to": "0:83dfd552e63729b472fcbcc8c45ebcc6691702558b68ec7527e1ba403a0f31a8",
  "fee": { "asset": "native", "raw": "2800000", "decimals": 9, "value": "0.0028" },
  "resources": null,
  "memo": "order-5521",
  "source_tag": null,
  "destination_tag": null,
  "transfers": [],
  "internal_coverage": "full",
  "error": null
}
```

`transfers` is shortened to `[]` in both examples. On XRP Ledger, `destination_tag` and `source_tag` are filled, and the transfers carry the delivered amount.

### Transaction status

`GET /v1/transactions/{network}/{hash}/status`

A light answer for polling a payment: where the transaction is, how many confirmations it has and how many the network requires.

| Parameter | In   | Type   | Required | Description                                        |
| --------- | ---- | ------ | -------- | -------------------------------------------------- |
| `network` | path | string | Yes      | Network code or CAIP-2 alias                       |
| `hash`    | path | string | Yes      | Transaction hash; on TON, the hash or the `tx_ref` |

```bash
curl -s "https://api-unified.crypto-chief.com/v1/transactions/TON_MAINNET/0x7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d/status" \
  -H "X-API-Key: $CC_API_KEY"
```

```json
{
  "network": "TON_MAINNET",
  "hash": "0x7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d",
  "tx_ref": "0:83dfd552e63729b472fcbcc8c45ebcc6691702558b68ec7527e1ba403a0f31a8|52118000000003|0x7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d",
  "status": "success",
  "stage": "final",
  "confirmations": "1",
  "finality": { "basis": "masterchain_seqno", "economic": true },
  "required": { "confirmed": 1, "final": 1 },
  "block": {
    "height": "43120500",
    "hash": "0x9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b",
    "parent_hash": "0x8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b7c",
    "timestamp": "2026-11-29T09:59:10.000Z"
  },
  "replaced_by": null,
  "checked_at": "2026-11-29T09:59:15.000Z"
}
```

| Field           | Description                                                                     |
| --------------- | ------------------------------------------------------------------------------- |
| `tx_ref`        | TON: `<account>\|<lt>\|<hash>` once the transaction is found; `null` elsewhere  |
| `status`        | `not_found`, `pending`, `success`, `failed`, `dropped`, `replaced`              |
| `stage`         | `found`, `confirmed`, `final`, `reorged`; `null` while `not_found` or `pending` |
| `confirmations` | Confirmations of its block; `"0"` before inclusion                              |
| `required`      | `confirmed` and `final` depths of the network; `final` is `null` on TRON        |
| `block`         | The block once included                                                         |
| `replaced_by`   | Hash of the replacing transaction, when `status` is `replaced`                  |
| `checked_at`    | When the status was read                                                        |

The status moves `not_found → pending → success | failed`; the block moves `found → confirmed → final`, or to `reorged`. `dropped` and `replaced` are reported only when observed — a mempool eviction, a replacement by fee (RBF) or a speed-up — never guessed from a timeout.

* `200` with `status: "not_found"` means the network was asked and does not know the transaction yet. A source that did not answer is `503`, not `not_found`.
* `not_found` is never cached for more than a few seconds; a just-broadcast transaction appears on the next polls.

A Bitcoin transaction replaced by fee:

```json
{
  "network": "BTC_MAINNET",
  "hash": "6f1c2d3e4a5b69788796a5b4c3d2e1f00f1e2d3c4b5a69788796a5b4c3d2e1f0",
  "tx_ref": null,
  "status": "replaced",
  "stage": null,
  "confirmations": "0",
  "finality": { "basis": "depth", "economic": false },
  "required": { "confirmed": 2, "final": 6 },
  "block": null,
  "replaced_by": "a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f8091",
  "checked_at": "2026-11-29T10:02:11.000Z"
}
```

See [Payment Status Polling](https://docs-unified.crypto-chief.com/guides/payment-status.md).

### Find a transaction by hash

`GET /v1/transactions?hash={hash}`

Looks the hash up on every network whose hash format matches it, when you do not know the network.

| Parameter  | In    | Type   | Required | Description                                       |
| ---------- | ----- | ------ | -------- | ------------------------------------------------- |
| `hash`     | query | string | Yes      | Transaction hash                                  |
| `networks` | query | string | No       | Limit the search: codes, `mainnets` or `testnets` |

```bash
curl -s "https://api-unified.crypto-chief.com/v1/transactions?hash=0x8b4c9e12f5a603d7c891b234e567f890123456789abcdef0123456789abcdef0&networks=mainnets" \
  -H "X-API-Key: $CC_API_KEY"
```

```json
{
  "items": [
    {
      "network": "ETH_MAINNET",
      "transaction": {
        "network": "ETH_MAINNET",
        "hash": "0x8b4c9e12f5a603d7c891b234e567f890123456789abcdef0123456789abcdef0",
        "tx_ref": null,
        "status": "success",
        "category": null,
        "stage": "final",
        "confirmations": "72",
        "finality": { "basis": "finalized_tag", "economic": true },
        "block": {
          "height": "23950041",
          "hash": "0x4a5b6c7d8e9f00112233445566778899aabbccddeeff00112233445566778899",
          "parent_hash": "0x394a5b6c7d8e9f00112233445566778899aabbccddeeff001122334455667788",
          "timestamp": "2026-11-29T09:45:48.000Z"
        },
        "index": 58,
        "signers": ["0x1f33a8b5c6d7e8f90123456789abcdef012393c9"],
        "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "fee": { "asset": "native", "raw": "690000000000000", "decimals": 18, "value": "0.00069" },
        "resources": null,
        "memo": null,
        "source_tag": null,
        "destination_tag": null,
        "transfers": null,
        "internal_coverage": "none",
        "error": null
      }
    }
  ],
  "networks": [
    { "network": "ETH_MAINNET", "status": "ok", "source": "index", "consistency": "block", "as_of_block": { "height": "23950112", "hash": "0x5c1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a" } }
  ]
}
```

`items` can hold more than one network: the same EVM hash can exist on several chains. `networks[]` lists every network that was searched; a network with `status: "error"` was not searched and may still hold the transaction.

### Broadcast a transaction

`POST /v1/transactions/{network}`

Sends a transaction you signed to the network. The API never signs.

| Parameter | In   | Type   | Required | Description                  |
| --------- | ---- | ------ | -------- | ---------------------------- |
| `network` | path | string | Yes      | Network code or CAIP-2 alias |
| `raw`     | body | string | Yes      | The signed transaction       |

| Family     | `raw`                                    |
| ---------- | ---------------------------------------- |
| EVM        | Hex of the signed RLP transaction, `0x…` |
| TRON       | Hex of the signed transaction            |
| UTXO       | Hex of the signed transaction            |
| XRP Ledger | Hex of the signed transaction blob       |
| Solana     | Base64 of the signed transaction         |
| TON        | Base64 of the external message BoC       |

```bash
curl -s -X POST "https://api-unified.crypto-chief.com/v1/transactions/ETH_MAINNET" \
  -H "X-API-Key: $CC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"raw":"0x02f8b20181a8843b9aca00850ba43b7400830186a094a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4880b844a9059cbb…"}'
```

```json
{
  "network": "ETH_MAINNET",
  "hash": "0x8b4c9e12f5a603d7c891b234e567f890123456789abcdef0123456789abcdef0",
  "status": "pending"
}
```

* Sending the same `raw` again returns the same answer; it is safe to retry after a timeout.
* A transaction that cannot be decoded, or that the network rejects, is `400 INVALID_TRANSACTION` with the network's reason in `details.reason`:

```json
{
  "error": "INVALID_TRANSACTION",
  "message": "Transaction rejected by network.",
  "request_id": "req_01JDX9K8P2M4N6Q8R0T2V4W6Y8",
  "details": { "reason": "replacement transaction underpriced" }
}
```

`pending` means the network accepted the transaction, not that it is included. Follow it with [`/status`](#transaction-status).

On TON, `hash` is the hash of the external message you sent: a transaction does not exist before the network processes the message. `/status` and `GET /v1/transactions/TON_MAINNET/{hash}` accept it and answer with the transaction's own hash and `tx_ref`.

### Simulate a transaction

`POST /v1/transactions/{network}/simulate`

Runs a transaction against the current state without sending it: will it succeed, what will it cost, what will it move.

The body is one of:

| Body                                        | Networks                                | Description                                                                                            |
| ------------------------------------------- | --------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| `{"raw": "…"}`                              | Where `capabilities.simulate` is `true` | A transaction in the same format as for broadcast                                                      |
| `{"call": {"from", "to", "data", "value"}}` | EVM, TRON                               | An unsigned call: `from`, `to` (required), `data` (hex calldata), `value` (base units, decimal string) |

```bash
curl -s -X POST "https://api-unified.crypto-chief.com/v1/transactions/ETH_MAINNET/simulate" \
  -H "X-API-Key: $CC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "call": {
      "from": "0x1f33a8b5c6d7e8f90123456789abcdef012393c9",
      "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
      "data": "0xa9059cbb00000000000000000000000099887766554433221100ffeeddccbbaa998877660000000000000000000000000000000000000000000000000000000001312d00",
      "value": "0"
    }
  }'
```

```json
{
  "network": "ETH_MAINNET",
  "success": true,
  "error": null,
  "fee": { "raw": "623835000000000", "decimals": 18, "scale": null, "value": "0.000623835" },
  "resources": { "gas_used": "46210" },
  "transfers": [
    {
      "id": "",
      "network": "ETH_MAINNET",
      "type": "transfer.token",
      "block": null,
      "transaction": { "hash": "", "index": null, "success": null, "fee": null },
      "stage": null,
      "confirmations": "0",
      "finality": { "basis": "finalized_tag", "economic": true },
      "direction": "out",
      "from": "0x1f33a8b5c6d7e8f90123456789abcdef012393c9",
      "to": "0x99887766554433221100ffeeddccbbaa99887766",
      "asset": {
        "network": "ETH_MAINNET", "id": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "kind": "token", "standard": "erc20",
        "contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "token_id": null, "symbol": "USDC", "decimals": 6, "name": "USD Coin",
        "logo_url": null, "listed": true, "spam": { "status": "unknown", "reasons": [] }, "flags": ["pausable", "blacklist"]
      },
      "amount": { "raw": "20000000", "decimals": 6, "scale": null, "value": "20" },
      "source": { "kind": "log", "path": "log/0/erc20", "success": true, "memo": null, "source_tag": null, "destination_tag": null },
      "utxo": null
    }
  ],
  "events": [
    {
      "network": "ETH_MAINNET",
      "type": "contract.event",
      "transaction": null,
      "payload": {
        "kind": "event",
        "contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "topic0": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
        "signature": null,
        "decoded": null,
        "decode_error": null,
        "raw_log": {
          "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
          "topics": [
            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
            "0x0000000000000000000000001f33a8b5c6d7e8f90123456789abcdef012393c9",
            "0x00000000000000000000000099887766554433221100ffeeddccbbaa99887766"
          ],
          "data": "0x0000000000000000000000000000000000000000000000000000000001312d00",
          "tx_hash": "",
          "log_index": 0,
          "block_height": "",
          "block_hash": ""
        }
      }
    }
  ]
}
```

| Field       | Description                                                                                                                                                                                                                                                                                                                                     |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `success`   | The transaction would succeed                                                                                                                                                                                                                                                                                                                   |
| `error`     | `{code, message}` — the revert reason or program error — when it would fail                                                                                                                                                                                                                                                                     |
| `fee`       | Estimated fee in the native coin                                                                                                                                                                                                                                                                                                                |
| `resources` | Resources it would use: `gas_used` (EVM), `energy` and `bandwidth` (TRON), `compute_units` (Solana)                                                                                                                                                                                                                                             |
| `transfers` | EVM and TRON: the signer's movements it would make — the native value and token and NFT `Transfer` logs to or from the signer (`call.from` or the signer of `raw`) — with `block: null` and `stage: null`; `direction` is relative to the signer. A call has no transaction yet, so `id` and `transaction.hash` are empty. Other networks: `[]` |
| `events`    | EVM and TRON: the logs it would emit, as `contract.event` with `network`, `type`, `transaction` and `payload` (no block, stage or id yet)                                                                                                                                                                                                       |

A simulation is not a promise: the state can change before your transaction is included.
