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

getEscrowMilestones

Milestones for one escrow (GET /escrows/:contractId/milestones).

Milestones for one escrow (GET /escrows/:contractId/milestones).

Import

import { TrustlessWorkClient } from "@trustless-work/escrow-js";

Signature

client.rest.getEscrowMilestones(contractId: string): Promise<GetEscrowMilestonesResponse>

Returns EscrowMilestones → { contractId, type, milestones }.

Example

import { TrustlessWorkClient, development } from "@trustless-work/escrow-js";

const client = new TrustlessWorkClient({
  baseURL: development,
  apiKey: process.env.API_KEY,
});

// see signature above

See REST Reads.