Interface for an XChain client.

interface XChainClient {
    broadcastTx(txHex): Promise<string>;
    getAddress(walletIndex?): string;
    getAddressAsync(walletIndex?): Promise<string>;
    getBalance(address, assets?): Promise<Balance[]>;
    getExplorerAddressUrl(address): string;
    getExplorerTxUrl(txID): string;
    getExplorerUrl(): string;
    getFees(options?): Promise<Fees>;
    getNetwork(): Network;
    getTransactionData(txId, assetAddress?): Promise<Tx>;
    getTransactions(params?): Promise<TxsPage>;
    prepareTx(params): Promise<PreparedTx>;
    purgeClient(): void;
    setNetwork(net): void;
    setPhrase(phrase, walletIndex): string;
    transfer(params): Promise<string>;
    validateAddress(address): boolean;
}

Implemented by

Methods

Generated using TypeDoc