Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
walletAccount | AptosWalletAccount | The wallet account to get the Aptos client for |
client | DynamicClient (optional) | The Dynamic client instance. Only required when using multiple clients. |
Returns
Promise<AptosClient> - A promise that resolves to an Aptos client instance from @aptos-labs/ts-sdk.
Errors
| Error | Description |
|---|---|
NotAptosProviderError | Thrown if the wallet account’s provider is not an Aptos provider |
Related functions
- isAptosWalletAccount - Check if a wallet account is an Aptos account