UNPKG

@trezor/connect

Version:

High-level javascript interface for Trezor hardware wallet.

42 lines 1.23 kB
import type { PROTO } from '../constants'; import { AbstractMethod } from '../core/AbstractMethod'; import type { BitcoinNetworkInfo } from '../types'; type Params = PROTO.GetPublicKey & { coinInfo?: BitcoinNetworkInfo; suppressBackupWarning?: boolean; unlockPath?: PROTO.UnlockPath; }; export default class GetPublicKey extends AbstractMethod<'getPublicKey', Params[]> { hasBundle?: boolean; init(): void; get info(): string; get confirmation(): { view: "export-xpub"; label: string; }; run(): Promise<{ xpubSegwit?: string | undefined; descriptorChecksum?: string | undefined; path: number[]; publicKey: string; serializedPath: string; depth: number; fingerprint: number; chainCode: string; childNum: number; xpub: string; } | { xpubSegwit?: string | undefined; descriptorChecksum?: string | undefined; path: number[]; publicKey: string; serializedPath: string; depth: number; fingerprint: number; chainCode: string; childNum: number; xpub: string; }[]>; } export {}; //# sourceMappingURL=getPublicKey.d.ts.map