Skip to main content
GET
/
api
/
v1
/
auth
/
treasury
/
remittance
/
escrow-balance
Treasury Aggregate Remittance Escrow Balance
curl --request GET \
  --url https://crypto.westminister.tech/api/v1/auth/treasury/remittance/escrow-balance \
  --header 'Authorization: Bearer <token>'
{
  "treasury_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "treasury_wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "treasury_wallet_address": "<string>",
  "treasury_provider_wallet_id": "<string>",
  "network": "tron",
  "total_escrow_usdt": "<string>",
  "reserved_open_remittances_usdt": "<string>",
  "reserved_open_drafts_usdt": "<string>",
  "reserved_in_flight_orders_usdt": "<string>",
  "available_treasury_settlement_usdt": "<string>",
  "refreshed_from_chain": true,
  "as_of": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.crypto.westminister.tech/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

network
enum<string>
default:tron

Network to evaluate. Defaults to tron.

Available options:
tron,
ethereum
refresh
boolean
default:false

If true, sync treasury USDT from chain before computing aggregates.

Response

Treasury remittance escrow balance.

treasury_user_id
string<uuid>
treasury_wallet_id
string<uuid>
treasury_wallet_address
string
treasury_provider_wallet_id
string

BitGo wallet id backing the treasury wallet mapping.

network
enum<string>
Available options:
tron,
ethereum
total_escrow_usdt
string

Wallet-level treasury USDT balance.

reserved_open_remittances_usdt
string

Sum of open draft and in-flight remittance commitments.

reserved_open_drafts_usdt
string

Sum of remittance drafts in draft status.

reserved_in_flight_orders_usdt
string

Sum of remittance orders in awaiting_crypto

available_treasury_settlement_usdt
string

total_escrow_usdt minus reserved_open_remittances_usdt (floored at zero).

refreshed_from_chain
boolean
as_of
string<date-time>