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 aboveSee REST Reads.