Example Next.js apps showing how to integrate the Relay protocol API with different wallet providers for cross-chain bridging and token swapping.
| Example | Wallet Type | Auth Method | Description |
|---|---|---|---|
/crossmint |
Smart wallet (EVM) | Email (Crossmint) | Uses Crossmint smart wallets with email-based signers |
/turnkey |
HD wallet (EOA) | Passkey / Email OTP (Turnkey) | Uses Turnkey sub-organizations with HD wallets via viem |
Each example is a standalone Next.js app with its own dependencies. See the README in each directory for setup instructions.
- Fetching executable quotes from the Relay
/quote/v2API - Executing multi-step flows (approvals, signatures, deposits)
- Handling EIP-191 and EIP-712 signing for signature steps
- Polling intent status via
/intents/status/v3 - Protecting an optional Relay API key server-side using Next.js server actions