@fairmint/canton-node-sdk
Version:
Canton Node SDK
23 lines • 1.12 kB
TypeScript
import { LedgerJsonApiClient } from '../../clients/ledger-json-api';
/**
* Options for waiting for contract archival
*/
export interface WaitForContractArchivalOptions {
/** Maximum time to wait in milliseconds (default: 300000 = 5 minutes) */
maxWaitTimeMs?: number;
/** Interval between checks in milliseconds (default: 5000 = 5 seconds) */
checkIntervalMs?: number;
/** Whether to enable verbose logging */
verbose?: boolean;
}
/**
* Waits for a contract to be archived by periodically checking active contracts
*
* @param ledgerJsonApiClient - The Ledger JSON API client instance
* @param contractId - The ID of the contract to monitor
* @param options - Configuration options for the wait operation
* @returns Promise that resolves when the contract is archived or rejects on timeout
* @throws Error if the contract is not archived within the specified timeout
*/
export declare function waitForContractToBeArchived(ledgerJsonApiClient: LedgerJsonApiClient, contractId: string, options?: WaitForContractArchivalOptions): Promise<void>;
//# sourceMappingURL=contract-monitor.d.ts.map