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

getEscrow

GraphQL escrow(contractId) — detail with financial, deposits, events.

GraphQL escrow(contractId) — detail with financial, deposits, events.

Import

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

Signature

client.graphql.getEscrow(variables: GraphqlGetEscrowVariables): Promise<GraphqlEscrow>

Returns GraphqlEscrow including financial, optional deposits and events.

Variables: contractId (required), eventsLimit?, eventsCursor?, eventsOrder?. Document: GRAPHQL_GET_ESCROW.

Example

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

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

// see signature above

See GraphQL.