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` hook
if (!isTonWallet(wallet)) {
throw new Error('This wallet is not a TON wallet');
}
// Now you can use TON-specific methods
await wallet.signMessage('Hello, TON!');