Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
walletAccount | SuiWalletAccount | The wallet account to get the Sui client for |
client | DynamicClient (optional) | The Dynamic client instance. Only required when using multiple clients. |
Returns
Promise<SuiClient> - A promise that resolves to a SuiClient instance from @mysten/sui.
Errors
| Error | Description |
|---|---|
NotSuiProviderError | Thrown if the wallet account’s provider is not a Sui provider |
Related functions
- isSuiWalletAccount - Check if a wallet account is a Sui account
- signAndExecuteTransaction - Sign and execute a transaction