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.