API Operations

Canton Node SDK

A TypeScript SDK for interacting with Canton blockchain.

Quick Start

import { LedgerJsonApiClient, EnvLoader } from '@fairmint/canton-node-sdk';

// Optionally load configuration from environment variables
const config = EnvLoader.getConfig('LEDGER_JSON_API', {
  network: 'devnet',
  provider: '5n',
});

// Create a client
const client = new LedgerJsonApiClient(config);

// Use the client
const version = await client.getVersion();
console.log(`Connected to Canton ${version.version}`);

Key Features

Documentation

Requirements