UNPKG

@fairmint/canton-node-sdk

Version:
26 lines 1.15 kB
import { type LedgerJsonApiClient } from '../../clients/ledger-json-api'; import { type ValidatorApiClient } from '../../clients/validator-api'; export interface CreatePartyOptions { /** Ledger JSON API client instance */ ledgerClient: LedgerJsonApiClient; /** Validator API client instance */ validatorClient: ValidatorApiClient; /** Party name to use for creation. This becomes the prefix on the party ID. */ partyName: string; /** Amount to fund the party with. Must be > 0 in order to create a preapproval contract. */ amount: string; } export interface PartyCreationResult { /** Party ID from the Validator API */ partyId: string; /** Preapproval contract ID for transfers */ preapprovalContractId?: string; } /** * Creates a party, optionally funds the wallet and if funded it then creates a preapproval contract for the party. * * @param options - Configuration options for party creation * @returns Promise resolving to the party creation result */ export declare function createParty(options: CreatePartyOptions): Promise<PartyCreationResult>; //# sourceMappingURL=createParty.d.ts.map