getSignerForSmartWalletAccount
Gets a WalletClient instance for the EOA (Externally Owned Account) that owns the smart wallet account. This signer can be used to sign EVM transactions directly with the underlying EOA.Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
smartWalletAccount | EvmWalletAccount | The smart wallet account to get the signer for |
client | DynamicClient (optional) | The Dynamic client instance. Only required when using multiple clients. |
Returns
Promise<WalletClient> - A promise that resolves to a viem WalletClient instance for the EOA.
Errors
| Error | Description |
|---|---|
NoSmartWalletAccountSignerFoundError | Thrown when no signer wallet account is found for the given smart wallet account |
Related functions
- createKernelClientForWalletAccount - Create a ZeroDev Kernel client