getEscrowDetails
Batch escrow details (GET /escrows/details).
Batch escrow details (GET /escrows/details).
Import
import { TrustlessWorkClient } from "@trustless-work/escrow-js";Signature
client.rest.getEscrowDetails(
params: BatchContractIdsParams | string[],
): Promise<BatchEscrowDetailsResponse>Returns { data: EscrowDetailsItem[] } where each item is { escrow, 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.