UNPKG

@fairmint/canton-node-sdk

Version:
38 lines 1.64 kB
/** * @description Create a new transfer offer to send tokens to another party * @example * ```typescript * const offer = await client.createTransferOffer({ * receiver_party_id: 'party123', * amount: '100', * description: 'Payment for services', * expires_at: Date.now() + 3600000, // 1 hour from now * tracking_id: 'unique-tracking-id' * }); * console.log(`Offer created: ${offer.offer_contract_id}`); * ``` */ export declare const CreateTransferOffer: { new (client: import("../../../../../../core").BaseClient): { execute(params: { receiver_party_id: string; amount: string; description: string; expires_at: number; tracking_id: string; }): Promise<{ offer_contract_id: string; }>; client: import("../../../../../../core").BaseClient; validateParams<T>(params: T, schema: import("zod").ZodType<T>): T; makeGetRequest<T>(url: string, config?: import("../../../../../../core").RequestConfig): Promise<T>; makePostRequest<T>(url: string, data: unknown, config?: import("../../../../../../core").RequestConfig): Promise<T>; makeDeleteRequest<T>(url: string, config?: import("../../../../../../core").RequestConfig): Promise<T>; makePatchRequest<T>(url: string, data: unknown, config?: import("../../../../../../core").RequestConfig): Promise<T>; getManagedParties(): string[]; getPartyId(): string | undefined; getApiUrl(): string; buildPartyList(additionalParties?: string[]): string[]; }; }; //# sourceMappingURL=create.d.ts.map