Skip to content

Reference

ledger.listPackages

GET /v2/packages — enumerate package identifiers hosted by the participant.

Lists hashed package_id entries advertised via GET /v2/packages.

Receiver: await canton.ledger.listPackages()

Setup

import { Canton } from '@fairmint/canton-node-sdk';

const canton = new Canton({
  network: 'devnet',
  provider: '5n',
  partyId: 'OWN_PARTY_ID',
});

Minimal example

const pkgs = await canton.ledger.listPackages();

Parameters

No parameters — invoke ().

Returns — ListPackagesResponse

Array/packageIds style listing depending on Canton version typings—consult SDK schemas/api for authoritative arrays.

Errors and pitfalls

Empty participant archives yield zero-length responses—not necessarily failures.

Auth and party

Standard bearer authorization envelope.

See also

Source

operations/v2/packages/get.ts