> ## 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] Recommended: JavaScript SDK with React Hooks
>
> 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)](https://docs.dynamic.xyz/docs/javascript/reference/react-quickstart.md) to get started.

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

[SuiGrpcClient](https://sdk.mystenlabs.com/typedoc/classes/_mysten_sui.grpc.SuiGrpcClient.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)
```


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