Every standard holding one party owns, one entry per contract, read at the ledger end. Reach for useHoldings when the subject is the connected party; this reads any party the caller's ledgerApi may see, such as a vault's.
ledgerApi
when the ledger answers without an offset to read at.
const holdings = await readHoldings(ledgerApi, partyId)sumHoldings(holdings) // [{ balance: '10.5', instrumentId, locked: '0' }] Copy
const holdings = await readHoldings(ledgerApi, partyId)sumHoldings(holdings) // [{ balance: '10.5', instrumentId, locked: '0' }]
Every standard holding one party owns, one entry per contract, read at the ledger end. Reach for useHoldings when the subject is the connected party; this reads any party the caller's
ledgerApimay see, such as a vault's.