UNPKG

@xchainjs/xchain-litecoin

Version:

Custom Litecoin client and utilities used by XChainJS clients

26 lines (25 loc) 802 B
import AppBtc from '@ledgerhq/hw-app-btc'; import { FeeRate, TxHash } from '@xchainjs/xchain-client'; import { Address } from '@xchainjs/xchain-util'; import { TxParams, UtxoClientParams } from '@xchainjs/xchain-utxo'; import { Client, NodeUrls } from './client'; import { NodeAuth } from './types'; /** * Custom Ledger Litecoin client */ declare class ClientLedger extends Client { private transport; private app; constructor(params: UtxoClientParams & { transport: any; nodeUrls: NodeUrls; nodeAuth?: NodeAuth; }); getApp(): Promise<AppBtc>; getAddress(): string; getAddressAsync(index?: number, verify?: boolean): Promise<Address>; transfer(params: TxParams & { feeRate?: FeeRate; }): Promise<TxHash>; } export { ClientLedger };