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

getEscrow

Get a single escrow detail (GET /escrows/:contractId).

Get a single escrow detail (GET /escrows/:contractId).

Import

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

Signature

client.rest.getEscrow(contractId: string): Promise<GetEscrowResponse>

Returns GetEscrowResponse = EscrowDetail → { escrow, events, deposits }.

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.