Prerequisites
- A Dynamic project and environment ID
- A React application
- A backend that issues short-lived Rhinestone JWTs
1
Install the dependencies
These examples target SDK 3.0.0, which is not released yet. The install command
below requires its publication; the current v2 package does not support these APIs.
2
Configure Dynamic and wagmi
3
Configure browser authentication
Keep the Rhinestone API key on your server. Configure a browser SDK instance with short-lived JWTs instead:See security for backend setup and sponsored-intent extension tokens.
4
Create the Rhinestone account
Dynamic populates wagmi after the user connects. Wait for You can also call
useWalletClient to return a client with an active account.primaryWallet.getWalletClient() when your integration already uses Dynamic’s wallet object directly.