UNPKG

@bugbytes/hapi-connect

Version:

Lightweight HashConnect Browser Side Client Library

16 lines 766 B
import { type TransactionResponse } from "./transaction-response"; import { PairRequest } from "./pair-request"; import type { KnownNetwork } from "./wallet-metadata"; export declare const DEFAULT_CACHE_KEY = "hashconnect.data"; export declare class HashConnectCachedClient { private readonly _cacheKey; private _client; private readonly _connection; constructor(cacheKey?: string); get cacheKey(): string; get pairedWallet(): import("./wallet-metadata").WalletMetadata | undefined; openPairRequest(name: string, description: string, network: KnownNetwork): PairRequest; closeWallet(): void; sendTransaction(transaction: Uint8Array, returnTransaction?: boolean): Promise<TransactionResponse>; } //# sourceMappingURL=cache.d.ts.map