Custodian
Assets & Transactions

Assets & Transactions

Read your off-chain balances per token and your ledger history. All endpoints require authentication.

Balance type: Everything on this page is off-chain — your app's ledger balance at Xellar, not a live blockchain read. See Understanding Balances for a simple explanation.

Off-Chain Balance Fields

Each token asset has three balance buckets:

FieldDescription
pendingBalanceOff-chain. Incoming amount detected but not yet finalized into your spendable balance.
activeBalanceOff-chain. Spendable balance. Withdrawals check and deduct from this.
withholdBalanceOff-chain. Amount temporarily held while a withdrawal is in progress.

latestBalance in transaction history is also off-chain — it is a snapshot of activeBalance after each ledger entry.

List Assets

GET /api/v1/assets

Returns off-chain balances per token.

Query Parameters

ParamTypeDefault
pageint1
limitint20

Response 200

{
  "data": {
    "items": [
      {
        "tokenCode": "USDT",
        "network": "ethereum",
        "networkType": "evm",
        "chainId": 1,
        "tokenAddress": "0x...",
        "symbol": "USDT",
        "decimals": 6,
        "pendingBalance": 0,
        "activeBalance": 100.5,
        "withholdBalance": 0
      }
    ],
    "total": 5,
    "page": 1,
    "limit": 20
  }
}
FieldBalance typeDescription
pendingBalanceOff-chainIncoming, not yet spendable
activeBalanceOff-chainSpendable balance
withholdBalanceOff-chainReserved for in-flight withdrawals

Get Asset by Token Code

GET /api/v1/assets/:tokenCode{ "data": { /* single asset */ } }

Returns off-chain balance for one token. Response fields match List Assets.

CodeMeaning
404Asset/token not found

List Transaction History

GET /api/v1/transaction-histories

Returns your off-chain ledger — credits and debits that changed your balance over time.

Query Parameters

ParamTypeDescription
pageintDefault 1
limitintDefault 20
startDatestringRFC3339 or YYYY-MM-DD
endDatestringRFC3339 or YYYY-MM-DD
transactionTypestringdeposit, withdraw, withdraw_fee
methodstringcredit or debit
tokenCodestringFilter by token

Response 200

{
  "data": {
    "items": [
      {
        "id": "txn_abc123",
        "tokenCode": "USDT",
        "network": "ethereum",
        "symbol": "USDT",
        "method": "credit",
        "transactionType": "deposit",
        "amount": 100,
        "latestBalance": 100.5,
        "referenceType": "invoice",
        "referenceId": "inv_abc123",
        "createdAt": "2026-01-01T00:00:00Z"
      }
    ],
    "total": 20,
    "page": 1,
    "limit": 20
  }
}
FieldBalance typeDescription
amountOff-chainLedger credit/debit amount
latestBalanceOff-chainactiveBalance after this entry
CodeMeaning
400Invalid date range, transactionType, or method
404Token not found