API Operations

SubscribeToFlats

Parameters

Parameters not yet documented - please refer to the source code

Response Type

{
  // WebSocket message type - actual structure depends on the specific operation
  // This could be an update, completion, or error message
}

Method

WebSocket

Examples

No examples available

Usage

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

const config = EnvLoader.getConfig('LEDGER_JSON_API', {
  network: 'devnet',
  provider: '5n'
});

const client = new LedgerJsonApiClient(config);

// WebSocket operation - use subscribe method
const subscription = await client.subscribetoflats.subscribe(
  {
    // Add your parameters here
  },
  {
    onMessage: (message) => {
      
    },
    onError: (error) => {
      
    },
    onClose: () => {
      
    }
  }
);

// To close the subscription
subscription.close();

Generated from: src/clients/ledger-json-api/operations/v2/updates/subscribe-to-flats.ts