UNPKG

@tonkeeper/tonconnect-ui-react

Version:

> This is a Tonkeeper-maintained fork of the official [TonConnect UI React](https://github.com/ton-connect/sdk/tree/main/packages/ui-react) with additional features and improvements. While maintaining compatibility with the core TonConnect protocol.

6 lines (5 loc) 272 B
import { Wallet, WalletInfoWithOpenMethod } from '@tonkeeper/tonconnect-ui'; /** * Use it to get user's current ton wallet. If wallet is not connected hook will return null. */ export declare function useTonWallet(): Wallet | (Wallet & WalletInfoWithOpenMethod) | null;