For the complete documentation index, see llms.txt. This page is also available as Markdown.

Types

Plain shapes for the most important `@trustless-work/escrow-js` types — entities, payloads, responses, and the read model.

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

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

Three buckets

  1. Entities — on-chain shapes (roles, milestones, escrow).

  2. Payloads — what you send to operate REST (deploy, fund, release, …).

  3. Reads & responses — what Core returns after build, submit, or GET.

Browse by topic

Page
What you’ll find

Entities

Roles, milestones, SingleReleaseEscrow / MultiReleaseEscrow, trustline

Payloads

Deploy, update, fund, release, dispute, manage milestones

Reads & responses

EscrowSummary, snapshots, list params, build/send responses

Errors

ApiProblemDetails and escrow error codes

Core values

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

DeploySingleReleaseEscrowPayload / DeployMultiReleaseEscrowPayload → Payloads

Fund / release / dispute

Matching *Payload → Payloads

Show a list in the UI

EscrowSummary → Reads & responses

Show one escrow

EscrowDetail → Reads & responses

Sign & submit

BuildTransactionResponse → wallet → SendTransactionResponse

Handle failures

Errors