> ## 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.

# Sui Wallets

<Card title="Recommended: JavaScript SDK with React Hooks" icon="react" color="#4779FE">
  For new React apps, we recommend the JavaScript SDK with React Hooks (`@dynamic-labs-sdk/react-hooks`) instead of the legacy React SDK documented here. The JS SDK comes with many benefits such as a much smaller bundle size and other optimizations. Use the [React quickstart (JavaScript SDK)](/javascript/reference/react-quickstart) to get started.
</Card>

## Checking if a Wallet is a Sui Wallet

```tsx React theme={"system"}
    import { isSuiWallet } from '@dynamic-labs/sui';

    if (!isSuiWallet(wallet)) {
      throw new Error('This wallet is not a Sui wallet');
    }
```

## Fetch Client

```tsx React theme={"system"}
    import { useDynamicContext } from '@dynamic-labs/sdk-react-core';
    import { isSuiWallet } from '@dynamic-labs/sui';

    const { primaryWallet } = useDynamicContext();

    if(!primaryWallet || !isSuiWallet(primaryWallet)) {
      throw new Error('This wallet is not a Sui wallet');
    }

    const suiClient = await primaryWallet.getSuiClient();
```

## Fetch Network

```tsx React theme={"system"}
    import { useDynamicContext } from '@dynamic-labs/sdk-react-core';
    import { isSuiWallet } from '@dynamic-labs/sui';

    const { primaryWallet } = useDynamicContext();

    if(!primaryWallet || !isSuiWallet(primaryWallet)) {
      throw new Error('This wallet is not a Sui wallet');
    }

    const activeNetwork = await primaryWallet.getActiveNetwork();

## Resources

[SuiClient](https://sdk.mystenlabs.com/typedoc/classes/_mysten_sui.client.SuiClient.html)
[WalletAccount](https://docs.sui.io/standards/wallet-standard#managing-wallets)

## Examples

You can find examples of how to interact with Sui wallets in the examples section:

- [Send a Sui Transaction](/react/wallets/using-wallets/sui/send-sui-transaction)
```
