> For the complete documentation index, see [llms.txt](https://docs.trustlesswork.com/trustless-work/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trustlesswork.com/trustless-work/v2-en/escrow-react-sdk/types.md).

# Types

## Types

All types below ship with `@trustless-work/escrow`. Import them from the package root or from `@trustless-work/escrow/types`.

```ts
import type {
  DeploySingleReleaseEscrowPayload,
  EscrowSummary,
  Roles,
} from "@trustless-work/escrow";
```

{% hint style="info" %}
**Three buckets**

1. **Entities** — on-chain shapes (roles, milestones, escrow).
2. **Payloads** — what you send to operate hooks / REST (deploy, fund, release, …).
3. **Reads & responses** — what Core returns after build, submit, or GET.
   {% endhint %}

{% hint style="warning" %}
**Amounts**

* **Operate payloads** use human **numbers** (`amount: 1000`).
* **Read-model** fields use **decimal strings** (`balance: "1000"`, `amount: "250"`).

There is no UUID `id` / `escrowId`. Always identify an escrow with `contractId` (`C…`).
{% endhint %}

## Browse by topic

* [Entities](/trustless-work/v2-en/escrow-react-sdk/types/entities.md) — `Roles`, milestones, `SingleReleaseEscrow` / `MultiReleaseEscrow`, trustline
* [Payloads](/trustless-work/v2-en/escrow-react-sdk/types/payloads.md) — Deploy, update, fund, release, dispute, manage milestones
* [Reads & responses](/trustless-work/v2-en/escrow-react-sdk/types/reads-and-responses.md) — `EscrowSummary`, snapshots, list params, build/send responses
* [Errors](broken://pages/3zk622XDvAGpfKDcKEMz) — `ApiProblemDetails` and escrow error codes

## Core values

```ts
type EscrowType = "single-release" | "multi-release";

type EscrowStatus = "active" | "released" | "disputed";

type EscrowNetwork = string; // network id from Core

type baseURL = string; // Core API base URL
```

| Value                              | Meaning                                                   |
| ---------------------------------- | --------------------------------------------------------- |
| `single-release`                   | One payout for the whole escrow after milestones are done |
| `multi-release`                    | Each milestone can be released on its own                 |
| `active` / `released` / `disputed` | Derived status on list/detail rows                        |

## Quick map

| You want to…             | Start with                                                                                                                                    |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Deploy an escrow         | [Payloads](/trustless-work/v2-en/escrow-react-sdk/types/payloads.md) — `DeploySingleReleaseEscrowPayload` / `DeployMultiReleaseEscrowPayload` |
| Fund / release / dispute | [Payloads](/trustless-work/v2-en/escrow-react-sdk/types/payloads.md)                                                                          |
| Show a list in the UI    | [Reads & responses](/trustless-work/v2-en/escrow-react-sdk/types/reads-and-responses.md) — `EscrowSummary`                                    |
| Show one escrow          | [Reads & responses](/trustless-work/v2-en/escrow-react-sdk/types/reads-and-responses.md) — `EscrowDetail`                                     |
| Sign & submit            | `BuildTransactionResponse` → wallet → `SendTransactionResponse`                                                                               |
| Handle failures          | [Errors](broken://pages/3zk622XDvAGpfKDcKEMz)                                                                                                 |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.trustlesswork.com/trustless-work/v2-en/escrow-react-sdk/types.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
