updateEscrow
Build an unsigned update transaction (full replace of platform-controlled fields).
Build an unsigned update transaction (full replace of platform-controlled fields).
Import
import { TrustlessWorkClient } from "@trustless-work/escrow-js";Signature
client.rest.updateEscrow(
payload: UpdateSingleReleaseEscrowPayload | UpdateMultiReleaseEscrowPayload,
type: EscrowType,
): Promise<BuildTransactionResponse>Returns BuildTransactionResponse: { unsignedXdr, txHash }.
Requires contractId, admin, and full escrow properties. See Payloads.
Example
import { TrustlessWorkClient, development } from "@trustless-work/escrow-js";
const client = new TrustlessWorkClient({
baseURL: development,
apiKey: process.env.API_KEY,
});
// see signature aboveSee Operate and sendTransaction.