Install Packages
@relayerfi/action-kit and @relayerfi/widget-kit-core are peer packages bundled internally — you do not install them separately.Choose Your Integration Mode
- Passkey Signing
- Metadata Mode
Passkey Signing is for integrators using Relayer’s managed wallet stack. Each integrator gets a dedicated wallet workspace with passkey-based signing.
- The widget handles passkey prompts internally — no additional signing SDK install is needed in your frontend
- Your users will see a biometric prompt (Face ID, fingerprint, security key) when signing transactions
- Wallet creation and passkey registration are handled through the Relayer API and dashboard
Configure Wagmi
Create a wagmi config file. This example usesmainnet with the browser injected connector:
src/wagmi.ts
Wrap Your App
wagmi v2 requiresWagmiProvider and QueryClientProvider at the root of your component tree.
- Next.js App Router
- React (Vite / CRA)
Create a client component for providers:Then use
src/app/providers.tsx
<Providers> in your root layout:src/app/layout.tsx
Import CSS
Widget components require the bundled stylesheet. Import it once in your entry point:app/layout.tsx or pages/_app.tsx.
Verify Installation
Once providers are configured and the CSS is imported, you can render a<Widget> component. See the Integration Guide for a full working example.
Next Steps
Integration Guide
Embed and theme your first widget.
Widget Kit Overview
Understand the package ecosystem.