Get Escrows Financial
Balances, deposits, releases and fees for up to 50 escrows via GET /escrows/financial.
Headers
Content-Type
application/json
x-api-key
<token>
Open API
Pass up to 50 contract addresses and get, for each known escrow, the PROJECTED financial view: fee, total amount, summed deposit trail, released/pending value, next tranche and a projected balance. Derived from the read-model only (never a chain call), so figures are eventually consistent — the authoritative balance lives on-chain. Unknown ids are silently absent.
On-chain contract addresses (repeat the param: contractIds=C…&contractIds=C…, 1–50). Inaccessible or unknown ids are silently absent from the response.
["CAAQCAIBAEAQCAIBAEAQCAIBAEAQCAIBAEAQCAIBAEAQCAIBAEAQC526"]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).
GET /escrows/financial?contractIds=CAAQCAIBAEAQCAIBAEAQCAIBAEAQCAIBAEAQCAIBAEAQCAIBAEAQC526 HTTP/1.1
Host: beta.api.trustlesswork.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"data": [
{
"contractId": "text",
"type": "text",
"assetInfo": {
"name": "USDC",
"address": "GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5",
"contractId": "CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA",
"decimals": 7,
"resolved": true
},
"platformFee": "5",
"amount": "250.5",
"totalDeposited": "text",
"totalReleased": "text",
"pendingRelease": "text",
"nextRelease": {
"milestoneIndex": 0,
"amount": "250.5"
},
"balance": "text"
}
]
}GET /escrows/financial
Returns the financial view of up to 50 escrows in a single request.
Query parameters
contractIds
string[] (1–50)
Contract addresses (C…). Repeat the parameter once per id.
What this Endpoint returns?
For each escrow:
balance
Projected current balance held by the escrow
totalDeposited
Everything ever deposited
totalReleased
Everything already released
pendingRelease
Approved but not yet released
nextRelease
The next release due, when determinable
fee
Platform fee configured for the escrow
asset
Resolved asset: name, address, contractId, decimals
All amounts are decimal strings, not floats — parse them with a decimal library rather than Number() if you intend to do arithmetic on them.
Unknown ids are silently absent from the response.
Use Example:
balance comes from the read-model, which is eventually consistent. Right after funding an escrow it may still show the previous value — poll rather than treating it as an error.
Last updated