@fairmint/canton-node-sdk
Version:
Canton Node SDK
21 lines • 825 B
TypeScript
import { LedgerJsonApiClient } from '../../clients/ledger-json-api';
export interface AmuletForTransfer {
contractId: string;
templateId: string;
effectiveAmount: string;
owner: string;
}
export interface GetAmuletsForTransferParams {
/** Ledger JSON API client for querying active contracts */
jsonApiClient: LedgerJsonApiClient;
/** Party IDs to read as (first one is used as sender) */
readAs?: string[];
}
/**
* Gets unlocked amulets owned by the sender party that can be used for transfers
*
* @param params - Parameters for getting amulets
* @returns Promise resolving to array of amulets suitable for transfer
*/
export declare function getAmuletsForTransfer(params: GetAmuletsForTransferParams): Promise<AmuletForTransfer[]>;
//# sourceMappingURL=get-amulets-for-transfer.d.ts.map