We covered how to access wallets in the Accessing Wallets section. TON wallets have different capabilities and requirements than EVM wallets, so we cover TON-specific behavior here.
import { useDynamicContext } from '@dynamic-labs/sdk-react-core';import { isTonWallet } from '@dynamic-labs/ton';// the wallet object is the wallet you want to use// you can access the available wallets via the `useUserWallets` hook// or get the primaryWallet via the `useDynamicContext` hookif (!isTonWallet(wallet)) { throw new Error('This wallet is not a TON wallet');}// Now you can use TON-specific methodsawait wallet.signMessage('Hello, TON!');