@roochnetwork/rooch-sdk-kit
Version:
Rooch SDK Kit
32 lines (31 loc) • 1.15 kB
TypeScript
import { Bytes, ThirdPartyAddress } from '@roochnetwork/rooch-sdk';
import { BitcoinWallet } from '../wallet/index.js';
import { WalletNetworkType } from './types.js';
export declare class OkxWallet extends BitcoinWallet {
getName(): string;
getIcon(_?: 'dark' | 'light'): string;
getDescription(): string;
getInstallUrl(): string;
sign(msg: Bytes): Promise<Bytes>;
getTarget(): any;
connect(): Promise<ThirdPartyAddress[]>;
switchNetwork(_: WalletNetworkType): 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;
}>;
}