UNPKG

@ngraveio/ur-sync

Version:

Provides BC-UR types for syncing multiple coins and accounts from cold wallets to watch only wallets.

29 lines (28 loc) 1.11 kB
import { HDKey, OutputDescriptor } from '@ngraveio/ur-blockchain-commons'; import { HexString } from '@ngraveio/ur-hex-string'; type account_exp = HDKey | OutputDescriptor; type tokenId = string | HexString | Uint8Array; interface IDetailAccountInput { account: account_exp; tokenIds?: tokenId[]; } declare const DetailedAccount_base: import("@ngraveio/bc-ur").RegistryItemClass<import("@ngraveio/bc-ur").RegistryItemBase>; export declare class DetailedAccount extends DetailedAccount_base { data: { account: account_exp; tokenIds?: (string | HexString)[]; }; constructor(data: IDetailAccountInput); verifyInput(input: IDetailAccountInput): { valid: boolean; reasons?: Error[]; }; getAccount: () => account_exp; getHdKey: () => HDKey | undefined; getOutputDescriptor: () => OutputDescriptor | undefined; getTokenIds: () => string[] | undefined; static checkAccount(account: account_exp): boolean; static checkOutputDescriptor(account: OutputDescriptor): boolean; static checkHdKey(hdKey: HDKey): boolean; } export {};