Interface: UseWalletReturn
Defined in: useWallet.ts:21
Return type of the useWallet hook.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
accounts | WalletAccount[] | All accounts from the current wallet session. | useWallet.ts:29 |
connect | (options?: any) => Promise<ConnectResult> | Open the wallet modal and request user authorization. See ConnectOptions for available options | useWallet.ts:43 |
disconnect | () => Promise<void> | Disconnect from the wallet. | useWallet.ts:45 |
isConnected | boolean | Whether the wallet is currently connected. | useWallet.ts:33 |
isConnecting | boolean | Whether a connection attempt is in progress. | useWallet.ts:35 |
isReconnecting | boolean | Whether the SDK is attempting a silent auto-reconnect. | useWallet.ts:37 |
mountInline | (container: HTMLElement) => Promise<void> | Mount the wallet iframe inline in a DOM container instead of as a modal. The container must be a mounted DOM element (e.g., obtained via a React ref). | useWallet.ts:50 |
selectAccount | (account: WalletAccount) => Promise<void> | Switch the active account. | useWallet.ts:52 |
selectedAccount | any | The currently active account, or null if none is selected. | useWallet.ts:31 |
wallet | any | The Thru chain adapter for signing, or null if not connected. See IThruChain | useWallet.ts:27 |