Skip to content

Reference

ledger.getVersion

GET /v2/version — participant Ledger JSON API version metadata.

Calls GET /v2/version. GetVersion uses paramsSchema: z.void() — call await canton.ledger.getVersion() with no arguments.

Receiver: await canton.ledger.getVersion()

Setup

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

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

Minimal example

const v = await canton.ledger.getVersion();

Parameters

No parameters — ().

Returns — GetLedgerApiVersionResponse

Structured version fields (version, major, minor, additional metadata subsets Canton publishes).

Auth and party

Bearer token identical REST LedgerJsonApiClient surfaces typically exposing participant introspection widely permitted authenticated callers.

Source

operations/v2/version/get.ts