UNPKG

@roochnetwork/rooch-sdk-kit

Version:
32 lines (31 loc) 1.14 kB
import { Bytes, ThirdPartyAddress } from '@roochnetwork/rooch-sdk'; import { BitcoinWallet } from '../wallet/index.js'; import { WalletNetworkType } from './types.js'; export declare class XVerseWallet extends BitcoinWallet { getName(): string; getIcon(_?: 'dark' | 'light'): string; getDescription(): string; getInstallUrl(): string; sign(msg: Bytes): Promise<Bytes>; getTarget(): any; connect(): Promise<ThirdPartyAddress[]>; switchNetwork(): Promise<void>; getNetwork(): Promise<WalletNetworkType>; getSupportNetworks(): WalletNetworkType[]; onAccountsChanged(callback: (account: string[]) => void): void; removeAccountsChanged(callback: (account: string[]) => void): void; onNetworkChanged(callback: (network: string) => void): void; removeNetworkChanged(callback: (network: string) => void): void; sendBtc(input: { toAddress: string; satoshis: number; options?: { feeRate: number; }; }): Promise<string>; getBalance(): Promise<{ confirmed: number; unconfirmed: number; total: string; }>; }