@roochnetwork/rooch-sdk-kit
Version:
Rooch SDK Kit
37 lines (36 loc) • 1.34 kB
TypeScript
import { Authenticator, Bytes, ThirdPartyAddress, Transaction } from '@roochnetwork/rooch-sdk';
import { BitcoinWallet } from '../wellet/index.js';
import { WalletNetworkType } from './types.js';
export declare class LocalWallet extends BitcoinWallet {
private keypair?;
private onNetworkChange?;
private onAccountsChange?;
getName(): string;
getIcon(_?: 'dark' | 'light'): string;
getDescription(): string;
getInstallUrl(): string;
signTransaction(input: Transaction): Promise<Authenticator>;
sign(msg: Bytes): Promise<Bytes>;
getTarget(): any;
connect(): Promise<ThirdPartyAddress[]>;
switchNetwork(network: WalletNetworkType): Promise<void>;
getNetwork(): Promise<WalletNetworkType>;
getSupportNetworks(): WalletNetworkType[];
onAccountsChanged(callback: (account: string[]) => void): void;
removeAccountsChanged(_: (account: string[]) => void): void;
onNetworkChanged(callback: (network: string) => void): void;
removeNetworkChanged(_: (network: string) => void): void;
sendBtc(_: {
toAddress: string;
satoshis: number;
options?: {
feeRate: number;
};
}): Promise<string>;
getBalance(): Promise<{
confirmed: number;
unconfirmed: number;
total: string;
}>;
private formatNetwork;
}