Canton dAppBooster
    Preparing search index...
    • 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.

      Parameters

      Returns Promise<readonly Holding[]>

      when the ledger answers without an offset to read at.

      const holdings = await readHoldings(ledgerApi, partyId)
      sumHoldings(holdings) // [{ balance: '10.5', instrumentId, locked: '0' }]