Welcome to the LazorKit Cookbook! This collection of tutorials shows you how to build seamless Solana dApps using LazorKit's passkey authentication and gasless transaction infrastructure.
| Platform | SDK | Examples |
|---|---|---|
| Web (Next.js) | @lazorkit/wallet |
8 examples including NFT minting, DEX swaps, staking |
| Mobile (React Native / Expo) | @lazorkit/wallet-mobile-adapter |
3 examples: connect, transfer, swap |
This cookbook demonstrates how to:
- Set up LazorKit - Initialize the SDK and create passkey-based wallets
- Build gasless experiences - Send tokens, swap on DEXs, mint NFTs - all without users paying gas
- Integrate with Solana protocols - Connect LazorKit with Raydium, Metaplex, Marinade
- Build custom programs - Create your own Anchor programs that work with LazorKit
- Support multiple wallets - Use LazorKit alongside Phantom, Solflare, and other wallets
| Guide | Description |
|---|---|
| 01 - Getting Started | Set up your environment and run your first example |
| 02 - LazorKit Basics | What the LazorKit SDK provides natively |
| 03 - Cookbook Patterns | Reusable patterns for protocol integrations |
| 04 - Solana Protocols | Integrate with Raydium, Metaplex, Marinade |
| 05 - Custom Programs | Build custom Anchor programs with LazorKit |
| 06 - Wallet Adapters | Multi-wallet support with LazorKit |
| 07 - Utilities Reference | API reference for hooks and helpers |
| # | Example | Description |
|---|---|---|
| 01 | Passkey Wallet | One-click wallet creation with Face ID/Touch ID |
| 02 | Gasless Transfer | Send USDC without gas fees |
| 03 | Subscription Service | Automated recurring payments |
| 04 | Raydium Swap | Gasless DEX trading |
| 05 | Wallet Adapters | Multi-wallet dApp |
| 06 | NFT Minting | Mint Metaplex NFTs |
| 07 | Compressed NFTs | Mint cNFTs with Bubblegum |
| 08 | Marinade Staking | Liquid staking integration |
| Guide | Description |
|---|---|
| 01 - Getting Started | Expo setup, polyfills, deep linking |
| 02 - LazorKit Basics | What the LazorKit SDK provides natively |
| 03 - Cookbook Patterns | Reusable patterns |
| 04 - Connect Wallet | Passkey auth with deep links |
| 05 - Gasless Transfer | USDC transfers on mobile |
| 06 - Raydium Swap | DEX swaps with Raydium API |
| # | Example | Description |
|---|---|---|
| 01 | Connect Wallet | Passkey authentication with deep linking |
| 02 | Gasless Transfer | USDC transfers without gas fees |
| 03 | Raydium Swap | DEX swaps powered by Raydium |
┌─────────────────────────────────────────────────────────────┐
│ Your dApp │
├─────────────────────────────────────────────────────────────┤
│ COOKBOOK PATTERNS (copy these!) │
│ ├─ Hooks: useLazorkitWalletConnect, useBalances │
│ └─ Utils: processInstructionsForLazorKit │
├─────────────────────────────────────────────────────────────┤
│ LazorKit SDK │
│ ├─ Web: @lazorkit/wallet │
│ └─ Mobile: @lazorkit/wallet-mobile-adapter │
├─────────────────────────────────────────────────────────────┤
│ Solana │
└─────────────────────────────────────────────────────────────┘
Note on Code Sharing: The web and mobile directories contain similar utility files (
solana-utils.ts,lazorkit-utils.ts). This duplication is intentional - each platform is fully self-contained for easy copy-pasting into your project.