UNPKG

@defichain/jellyfish-wallet-whale

Version:

A collection of TypeScript + JavaScript tools and libraries for DeFi Blockchain developers to build decentralized finance on Bitcoin

25 lines (24 loc) 905 B
import { WalletAccount, WalletAccountProvider, WalletHdNode } from '@defichain/jellyfish-wallet'; import { Network } from '@defichain/jellyfish-network'; /** * jellyfish-api-whale implementation of WalletAccount. * All stateless and stateful node service is provided by an ocean instance. */ export declare class WhaleWalletAccount implements WalletAccount { private readonly hdNode; private readonly network; constructor(hdNode: WalletHdNode, network: Network); /** * @return {string} bech32 address */ getAddress(): Promise<string>; isActive(): Promise<boolean>; } /** * Provide WhaleWalletAccount with upstream to DeFi whale services. */ export declare class WhaleWalletAccountProvider implements WalletAccountProvider<WhaleWalletAccount> { private readonly network; constructor(network: Network); provide(hdNode: WalletHdNode): WhaleWalletAccount; }