Ant Design Web3 officially provides @ant-design/web3-sui to adapt to Sui. It is an Ant Design Web3 Sui adapter based on @mysten/dapp-kit and @mysten/sui.
For most Sui DApps, we recommend the following configuration:
The recommended configuration mainly includes:
quickConnect to provide a quick connection entry to simplify user operations.simple mode to remove wallet grouping and simplify the interface.You can use PersistQueryClientProvider to override the default QueryClientProvider.
npm install @tanstack/query-sync-storage-persister @tanstack/react-query-persist-client --save
We have built-in the Sui mainnet mainnet. If you want to use other networks, you can configure networkConfig.
| Property | Description | Type | Default | Version |
|---|---|---|---|---|
| balance | Whether to display the balance | boolean | false | - |
| autoConnect | Whether to connect automatically | boolean | false | - |
| networkConfig | Network configuration | NetworkConfig | - | - |
| sns | Whether to display SNS | boolean | false | - |
| defaultNetwork | Default network | string | mainnet | - |
| wallets | Wallet list | WalletFactory[] | - | - |
| queryClient | QueryClient | QueryClient | - | - |
| locale | Multilingual settings | Locale | - | - |