> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Checking TON Wallet Account Type

# Checking TON Wallet Account Type

When working with multiple blockchain types, you may need to check if a wallet account is specifically a TON wallet account. The `isTonWalletAccount` type guard function helps you narrow down the type safely.

## Usage

```javascript theme={"system"}
import { isTonWalletAccount } from '@dynamic-labs-sdk/ton';
import { getPrimaryWalletAccount } from '@dynamic-labs-sdk/client';

const walletAccount = getPrimaryWalletAccount();

if (walletAccount && isTonWalletAccount(walletAccount)) {
  // walletAccount is now typed as TonWalletAccount
  console.log('TON address:', walletAccount.address);
}
```

## Parameters

| Parameter | Type | Description |
| - | - | - |
| `walletAccount` | `WalletAccount` | The wallet account to check |

## Returns

`boolean` - Returns `true` if the wallet account is a TON wallet account, `false` otherwise. Also acts as a TypeScript type guard, narrowing the type to `TonWalletAccount`.

## Related functions

* [sendTon](https://docs.dynamic.xyz/docs/javascript/reference/ton/send-ton.md) - Send native TON
* [sendJetton](https://docs.dynamic.xyz/docs/javascript/reference/ton/send-jetton.md) - Send Jetton tokens
* [sendTransaction](https://docs.dynamic.xyz/docs/javascript/reference/ton/send-transaction.md) - Send a custom TON transaction


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.