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";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…).
Browse by topic
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
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
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