API Operations

Canton Node SDK

A TypeScript SDK for interacting with Canton blockchain.

Quick Start

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

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

// Create a shared runtime, then lightweight client views
const runtime = new CantonRuntime(config);
const client = new LedgerJsonApiClient(runtime);

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

Key Features

Documentation

Requirements