@tangany/waas
Version:
node.js SDK for Tangany Wallet as a Service API
37 lines (36 loc) • 1.55 kB
TypeScript
import { BlockchainWallet } from "./blockchain-wallet";
import { IRecipient } from "./interfaces/common";
import { IAsyncTezosOperationOutput, ITezosOperationEstimation, ITezosWalletBalance } from "./interfaces/tezos";
import { Request } from "./request";
import { Waas } from "./waas";
import { Wallet } from "./wallet";
import { TezosContractWallet } from "./xtz-contract-wallet";
export declare class TezosWallet extends BlockchainWallet {
private readonly baseUrl;
constructor(waas: Waas, walletInstance: Wallet);
/**
* Returns wallet metrics for the Tezos blockchain (e.g. balance, address)
*/
get(): Promise<ITezosWalletBalance>;
/**
* Executes a Tezos transaction operation asynchronously.
* @param recipients - Recipient configuration
*/
sendAsync(recipients: IRecipient[] | IRecipient): Promise<Request<IAsyncTezosOperationOutput>>;
/**
* Returns the fee estimation for a given transaction operation
* @param recipients - Recipient configuration
*/
estimateFee(recipients: IRecipient[] | IRecipient): Promise<ITezosOperationEstimation>;
/**
* Performs a Tezos delegation operation asynchronously
* @param delegate - the delegate to be set
*/
delegateAsync(delegate: string): Promise<Request<IAsyncTezosOperationOutput>>;
/**
* Returns wallet calls for universal Smart Contract method calling
* @param address - address for contract
*/
contract(address: string): TezosContractWallet;
private readonly getRecipientsData;
}