Get Escrow
Read an escrow state directly from the contract (authoritative).
Reads the escrow's state directly from the contract by invoking get_escrow on-chain — including milestone approvals, dispute and released flags. This is the authoritative read — use it for settlement-grade checks. For lists, dashboards and history, the read-model endpoints are faster and richer.
Use the endpoint that matches your escrow's contract flavor — the two are not interchangeable.
Single Release (v2)
Invokes get_escrow directly on the child contract.
Deployed single-release-v2 escrow contract (C...).
CDHAZ2RTE2MDHYQQ7NATF5IVKIFVGLX6FHJ66OPK6MUXBSTRRXFXJ6QBEscrow state read successfully.
single-releaseTotal escrow amount in decimals.
Funded balance, 0 until first fund.
Platform fee as percent (e.g. 5 = 5%).
True after release_funds succeeds.
Request body or query params fail schema validation (wrong type, missing required field, unknown property).
Missing, malformed, expired, revoked or invalid API key.
API key is valid but does not have the role required for this operation.
Payload is well-formed but a business rule rejects it (e.g. amount out of range, role not allowed for this user).
Unexpected server-side failure. Use the traceId to look up the incident in server logs or contact support.
GET /escrow/single-release/v2/{contractId} HTTP/1.1
Host: beta.api.trustlesswork.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"type": "single-release",
"contractId": "text",
"contractBaseId": "text",
"engagementId": "text",
"title": "text",
"description": "text",
"amount": 1,
"balance": 1,
"platformFee": 1,
"receiverMemo": 1,
"trustline": {
"address": "text",
"contractId": "text",
"symbol": "USDC"
},
"roles": {
"approvers": [
"text"
],
"serviceProviders": [
"text"
],
"platform": "text",
"releaseSigners": [
"text"
],
"disputeResolvers": [
"text"
],
"receiver": "text",
"admin": "text",
"observers": [
"text"
]
},
"milestones": [
{
"description": "text",
"status": "text",
"evidence": "text",
"approvals": {
"target": 2,
"approvalCount": 1,
"approvedBy": [
"text"
]
}
}
],
"dispute": {
"isDisputed": true,
"reason": "text",
"resolved": true
},
"released": true
}Multi Release (v2)
Invokes get_escrow directly on the child contract.
Deployed multi-release-v2 escrow contract (C...).
CDHAZ2RTE2MDHYQQ7NATF5IVKIFVGLX6FHJ66OPK6MUXBSTRRXFXJ6QBEscrow state read successfully.
multi-releaseFunded balance, 0 until first fund.
Platform fee as percent.
Request body or query params fail schema validation (wrong type, missing required field, unknown property).
Missing, malformed, expired, revoked or invalid API key.
API key is valid but does not have the role required for this operation.
Payload is well-formed but a business rule rejects it (e.g. amount out of range, role not allowed for this user).
Unexpected server-side failure. Use the traceId to look up the incident in server logs or contact support.
GET /escrow/multi-release/v2/{contractId} HTTP/1.1
Host: beta.api.trustlesswork.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"type": "multi-release",
"contractId": "text",
"contractBaseId": "text",
"engagementId": "text",
"title": "text",
"description": "text",
"balance": 1,
"platformFee": 1,
"receiverMemo": 1,
"trustline": {
"address": "text",
"contractId": "text",
"symbol": "USDC"
},
"roles": {
"approvers": [
"text"
],
"serviceProviders": [
"text"
],
"platform": "text",
"releaseSigners": [
"text"
],
"disputeResolvers": [
"text"
],
"admin": "text",
"observers": [
"text"
]
},
"milestones": [
{
"description": "text",
"status": "text",
"evidence": "text",
"approvals": {
"target": 1,
"approvalCount": 1,
"approvedBy": [
"text"
]
},
"amount": 1,
"dispute": {
"isDisputed": true,
"reason": "text",
"resolved": true
},
"released": true,
"receiver": "text"
}
]
}Field notes
Read-only: nothing to sign, nothing to submit.
Calling the endpoint of the wrong flavor for a contract fails — check the escrow's
typein the read-model if you are unsure.If the contract's storage has expired, the read fails with
STELLAR_STATE_ARCHIVED— see Extend TTL (single-release / multi-release) for the restore flow.
Last updated