Viem is one of the most popular libraries for interacting with EVM blockchains.A WalletClient is an interface to interact with EVM accounts and provides the ability to retrieve accounts, execute transactions, sign messages, etc.We provide a helper method to allow you to create a Viem WalletClient for a given wallet account.
The JavaScript SDK’s EVM extension (@dynamic-labs-sdk/evm) uses viem internally. If you also use wagmi in your project, ensure your versions are compatible:
Dependency
Required range
Notes
viem
^2.45.3
viem v2.45.3+
wagmi
^2.14.11
If using wagmi alongside the SDK
@wagmi/core
^2.6.4
Installed automatically with wagmi
wagmi v3.x may work (v3.1.0 has been tested), but is outside the declared peer dependency range. Full v3 support is planned for a future release. For the React SDK wagmi connector setup, see Using Wagmi.