Recommended: JavaScript SDK with React Hooks
For new React apps, we recommend the JavaScript SDK with React Hooks (
@dynamic-labs-sdk/react-hooks) instead of the legacy React SDK documented here. The JS SDK comes with many benefits such as a much smaller bundle size and other optimizations. Use the React quickstart (JavaScript SDK) to get started.Overview
There are three ways to validate EVM signatures: Using Viem helpers, Manual validation, and EIP 6492 (necessary if you are using Kernel clients).Validate with Viem
Viem providesverifyMessage (EIP‑191) and verifyTypedData (EIP‑712). When you pass a PublicClient, Viem can automatically validate contract wallet signatures via ERC‑1271.