interface Wallet {
    build_trx(address, amount, fee_rate, policy_path?, utxos?, frozen_utxos?): Promise<Trx>;
    finalize_trx(psbts, broadcast): Promise<FinalizeTrxResponse>;
    get_balance(): BalancePayload;
    get_fee(txid): Promise<{
        fee: number;
    }>;
    get_last_unused_address(): string;
    get_new_address(): string;
    get_policy(): Map<string, any>;
    get_policy_path_from_signer(signer): null | PolicyPathSelector;
    get_policy_paths_from_signers(signers): null | string | PolicyPathsResult;
    get_trx(txid): Promise<UndecoratedTrxDetails>;
    get_trxs(): Promise<UndecoratedBasicTrxDetails[]>;
    get_unused_addresses(num): Address[];
    get_used_addresses(): Address[];
    get_utxos(): Utxo[];
    has_timelock(): boolean;
    network(): string;
    search_used_signers(signers): BaseOwnedSigner[];
    sync(): Promise<void>;
}

Methods

  • Parameters

    • address: string
    • amount: string
    • fee_rate: string
    • Optional policy_path: PolicyPath
    • Optional utxos: string[]
    • Optional frozen_utxos: string[]

    Returns Promise<Trx>

  • Parameters

    • txid: string

    Returns Promise<{
        fee: number;
    }>

Generated using TypeDoc