UNPKG

@broxus/tvm-connect

Version:

TypeScript SDK for connecting to Nekoton-compatible wallets using a unified interface.

17 lines (16 loc) 862 B
import { type Provider, ProviderRpcClient } from 'everscale-inpage-provider'; import { type NekotonConnectorCtorParams, NekotonConnector } from '../core'; import { type NekotonConnectorInitCtorParams, ConnectionType } from '../types'; interface SparXWalletCtorParams extends NekotonConnectorCtorParams, NekotonConnectorInitCtorParams { } interface SparXProviderFallbackParams { fallbackAttempts?: number; } export declare function sparxProviderFallback(params?: SparXProviderFallbackParams): (client?: Provider) => Promise<Provider>; export declare class SparXWallet extends NekotonConnector { protected readonly params?: Readonly<SparXWalletCtorParams> | undefined; readonly type = ConnectionType.NEKOTON_WALLET; constructor(params?: Readonly<SparXWalletCtorParams> | undefined); init(): Promise<ProviderRpcClient | undefined>; } export {};