Reown AppKit example
1
Install the dependencies
2
Configure AppKit
Get a project ID from the Reown Dashboard, then configure AppKit once in your client application:Wrap your application with wagmi’s
WagmiProvider using wagmiAdapter.wagmiConfig, and with TanStack Query’s QueryClientProvider.3
Configure browser authentication
An external wallet authenticates the user, not your app’s requests to Rhinestone. Keep See security for server handlers and sponsored-intent extension tokens.
RHINESTONE_API_KEY on your server and use short-lived JWTs in the browser:4
Create the Rhinestone account
walletClientToAccount requires a wallet client with an active account. Recreate the Rhinestone account object when the connected wallet changes.EIP-7702 requires the signer to support EIP-7702 authorizations. Do not assume every injected or WalletConnect wallet exposes that capability; use a plain EOA or a separate smart account when it does not.