List what a vault holds

GET/vaults/{vault_id}/balances

Return what one vault holds, one balance per (chain, asset), as a list, {object, data, has_more, url}, newest holding first: ordered on created_at, most recent first, then id.

  • The filters are named.

    network_id and asset match exactly, asset without regard to case; together they are ANDed, and each page lists under the filters its own request sends, so a later page sends them again beside starting_after or ending_before. Any other query parameter answers 400 parameter_unknown naming it, and a value outside its schema, a bad limit or a starting_after or ending_before naming no object of this list answers 422 parameter_invalid naming it.

  • A vault outside this environment answers 404 resource_missing naming vault_id, identically to an identifier that exists nowhere.

  • A resetting sandbox.

    While a sandbox's reset runs it answers 409 environment_resetting: nothing is served for a sandbox until its reset finishes.

Parameters

Path

  • vault_idstring <uuid>required

    The vault whose holdings are addressed. A value that is not a UUID answers 422 parameter_invalid naming vault_id.

Query

  • limitinteger <int32>optionaldefault 20

    The page size. A value that is not an integer from 1 to the maximum answers 422 parameter_invalid naming limit; it is never clamped.

  • starting_afterstringoptional

    A cursor: the id of an object of this list, usually the last one of the page just read. The page answered holds the objects that come right after it in the list's order. The object need not match this request's filters; its place in the order is what counts.

    Show full description

    An id that names no object of this list in this environment answers 422 parameter_invalid naming starting_after. It cannot be sent with ending_before.

  • ending_beforestringoptional

    A cursor: the id of an object of this list, usually the first one of the page just read. The page answered holds the objects that come right before it, still in the list's order, and has_more says whether there are more before them.

    Show full description

    An id that names no object of this list in this environment answers 422 parameter_invalid naming ending_before, as does sending it together with starting_after.

  • network_idinteger <int32>optional

    Only holdings on this chain, by the chain's own numeric identifier.

  • assetstringoptional

    Only holdings of the asset with this ticker, matched without regard to case.

Headers

  • X-Stridge-Environmentstring <uuid>optional

    Which environment the request acts inside, on an operation a session and an API key both call. Learn more

    Show full description

    It is required under a person's session, exactly as EnvironmentHeader describes: a session request that omits it answers 400 with environment required, and one naming an environment the caller holds no membership of answers 404.

    An API key names its own environment, so a request made with one omits this header. A key request that sends it answers 400 with environment header not accepted, whatever it names, rather than having the header ignored: a header that is silently ignored hides the integration bug that sent it.

Responses

The page of what the vault holds.

  • objectstringrequiredenum list

    The object's type, always list.

    • idstring <uuid>required

      The balance's own identifier.

    • objectstringrequired

      The object's type, always vault_balance.

    • environment_idstring <uuid>required

      The environment the vault holding this asset belongs to.

    • livemodebooleanrequired

      true when environment_id names a live environment and false in a sandbox. It is carried on the object itself, so a payload read on its own, a logged response or a webhook body, still says which side of the boundary it came from.

    • vault_idstring <uuid>required

      The vault that holds it.

    • addressstringrequired

      The vault's address on that chain, which is where the holding actually sits.

    • network_idinteger <int32>required

      The chain the asset sits on, as the chain's own numeric identifier.

    • network_symbolstringrequired

      The chain's own slug, not the asset's ticker.

    • assetstringrequired

      The asset's ticker.

    • contract_addressstringrequired

      The asset's contract on that chain, or the empty string where the asset is the chain's own coin.

    • decimalsinteger <int32>required

      The asset's precision, which is what scales balance.raw to balance.amount.amount_decimal. v1 calls the same fact raw_value_decimals.

    • What a vault holds of one asset, in the three forms a client needs at once: the chain's integer, the scaled amount a person reads, and the valuation. v1 sent the first of these twice — once as raw_value and again inside a display_values object — and the two were always the same figure.

    • created_atstring <date-time>required

      When the holding was first recorded. RFC3339 UTC, Z suffixed.

    • updated_atstring <date-time>required

      When it last changed. RFC3339 UTC, Z suffixed.

  • has_morebooleanrequired

    Whether the list holds more objects past this page in the direction it was read: after its last object, or before its first for a page read with ending_before.

  • urlstringrequired

    The path the list is read at.

Errors

The error.code values this operation can return. Each one links to its entry in the error catalogue, which explains the cause and the fix.

Request
curl "https://api.stridge.com/v2/vaults/string/balances" \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY"

Set your secret key as STRIDGE_SECRET_KEY (sent as Authorization: Bearer).

Response200
"object": "list",
"id": "9a2c31be-77d0-4e18-b5c4-6f7a8b9c0d1e",
"object": "vault_balance",
"environment_id": "3f2a6d7e-6b1c-4f2a-9a11-0b53f8d6b2c1",
"livemode": false,
"vault_id": "7c1e0a94-31d6-4a52-9f83-2b4c5d6e7f80",
"address": "0x1111111111111111111111111111111111111111",
"network_id": 60,
"network_symbol": "ethereum",
"asset": "ETH",
"contract_address": "",
"decimals": 18,
"raw": "1500000000000000000",
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
},
"usd": "3000.00"
},
"created_at": "2026-02-14T12:00:00Z",
"updated_at": "2026-03-09T07:41:26Z"
}
],
"has_more": false,
"url": "/v2/vaults/6f1c2b9e-1a7d-4c3e-8b52-9d0e4f7a2c11/balances"
}