For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Escrow Balances

Read token balances of up to 20 escrows directly from the chain.

Reads the current token balance of one or more escrow contracts directly from the chain. Authoritative — for a bulk financial view with deposits, releases and fees included, prefer GET /escrows/financial.

Each factory only answers for its own escrows — use the endpoint that matches the contract flavor of the addresses you pass.

Single Release (v2)

Read token balances of one or more deployed escrow contracts

get

Invokes get_multiple_escrow_balances on the single-release-v2 factory. Each address must be a deployed single-release-v2 escrow (C...). Maximum 20 addresses per call.

Authorizations
x-api-keystringRequired
Query parameters
addressesstring[]Required

Up to 20 deployed single-release-v2 escrow addresses to query.

Example: ["CDHAZ2RTE2MDHYQQ7NATF5IVKIFVGLX6FHJ66OPK6MUXBSTRRXFXJ6QB"]
Responses
200

Balances read successfully.

application/json
addressstringRequired

Escrow contract address whose balance was queried.

Example: CDHAZ2RTE2MDHYQQ7NATF5IVKIFVGLX6FHJ66OPK6MUXBSTRRXFXJ6QB
balancenumberRequired

Token balance held by the escrow, in human-readable decimals (already scaled by the trustline decimals).

Example: 1000.5
decimalsnumberRequired

Trustline decimals (e.g. 7 for Stellar USDC). Useful for clients that need to format the value with a fixed precision.

Example: 7
get/escrow/single-release/v2/escrow-balances
GET /escrow/single-release/v2/escrow-balances?addresses=CDHAZ2RTE2MDHYQQ7NATF5IVKIFVGLX6FHJ66OPK6MUXBSTRRXFXJ6QB HTTP/1.1
Host: beta.api.trustlesswork.com
x-api-key: YOUR_API_KEY
Accept: */*
[
  {
    "address": "CDHAZ2RTE2MDHYQQ7NATF5IVKIFVGLX6FHJ66OPK6MUXBSTRRXFXJ6QB",
    "balance": 1000.5,
    "decimals": 7
  }
]

Multi Release (v2)

Read token balances of one or more deployed escrow contracts

get

Invokes get_multiple_escrow_balances on the multi-release-v2 factory. Each address must be a deployed multi-release-v2 escrow. Maximum 20 addresses per call.

Authorizations
x-api-keystringRequired
Query parameters
addressesstring[]Required

Up to 20 deployed multi-release-v2 escrow addresses to query.

Example: ["CDHAZ2RTE2MDHYQQ7NATF5IVKIFVGLX6FHJ66OPK6MUXBSTRRXFXJ6QB"]
Responses
200

Balances read successfully.

application/json
addressstringRequired

Escrow contract address whose balance was queried.

Example: CDHAZ2RTE2MDHYQQ7NATF5IVKIFVGLX6FHJ66OPK6MUXBSTRRXFXJ6QB
balancenumberRequired

Token balance held by the escrow, in human-readable decimals (already scaled by the trustline decimals).

Example: 1000.5
decimalsnumberRequired

Trustline decimals (e.g. 7 for Stellar USDC). Useful for clients that need to format the value with a fixed precision.

Example: 7
get/escrow/multi-release/v2/escrow-balances
GET /escrow/multi-release/v2/escrow-balances?addresses=CDHAZ2RTE2MDHYQQ7NATF5IVKIFVGLX6FHJ66OPK6MUXBSTRRXFXJ6QB HTTP/1.1
Host: beta.api.trustlesswork.com
x-api-key: YOUR_API_KEY
Accept: */*
[
  {
    "address": "CDHAZ2RTE2MDHYQQ7NATF5IVKIFVGLX6FHJ66OPK6MUXBSTRRXFXJ6QB",
    "balance": 1000.5,
    "decimals": 7
  }
]

Field notes

  • Up to 20 contract addresses per request.

  • Every address in one call must be a deployed escrow of that endpoint's flavor — don't mix single- and multi-release addresses in the same request.

  • Read-only: nothing to sign, nothing to submit.

Last updated