Wagmi Configuration
Auth React is powered by Wagmi, added during the Auth React installation. To access the connection capabilities to Wagmi’s default Ethereum wallets, Coinbase Wallet, MetaMask, WalletConnect, and the custom-built XRP wallet, Xaman, you must create and export a Wagmi configuration.
First, import createWagmiConfig
from Wagmi.
Example:
Create and export the configuration for Wagmi.
Example:
Parameters:
walletConnectProjectId
: Your WalletConnect project ID.xamanAPIKey
: Your application’s API key for the custom XRP wallet, Xaman.ssr
: Enables server-side rendering if necessary. (Optional)chains
: Specify which chains to support, e.g.,mainnet
,sepolia
,polygonAmoy
. (Optional)storage
: Configure storage for SSR usingcookieStorage
. (Optional)
Last updated