Programs

List program balances

List a program's wallet balances, one row per asset. Pass asset_id to return only that asset. Balances are computed, so this list does not accept created_after or created_before.

get/v1/programs/{program_id}/balances

Request

  • Base URL: https://api.scrip.dev
  • URL: https://api.scrip.dev/v1/programs/{program_id}/balances
  • Auth: HTTP bearer

Path parameters

program_idstring uuid required

The program's id.

Query parameters

asset_idstring uuid

Return only the balance of this asset.

limitinteger

Return at most this many records, from 1 to 200, default 50.

cursorstring

The next_cursor from the previous response, valid only with the same endpoint and filters.

Response

Program wallet balances, one per asset

Example response

{
  "data": [
    {
      "asset_id": "a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02",
      "available": "1500.00",
      "deferred": "0.00",
      "held": "200.00"
    }
  ],
  "pagination": {
    "has_more": true,
    "next_cursor": "YWJjMTIz"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.