LazorKit Logo

LazorKit

Devnet
← Back to Home
🔌

Recipe 05: Wallet Adapter Integration

Use LazorKit alongside other wallets with popular Solana wallet adapters

💡 Why Use Wallet Adapters?

While LazorKit provides an excellent standalone wallet experience with passkeys, many users already have their preferred wallets (Phantom, Solflare, Backpack, etc.).

The Best of Both Worlds:

  • New users: Onboard instantly with passkeys (no extension needed)
  • Existing users: Connect their preferred wallet
  • LazorKit users: Still get gasless transactions via paymaster

Key Integration Point:

import { registerLazorkitWallet } from '@lazorkit/wallet';

// Register LazorKit as a wallet-standard wallet
useEffect(() => {
  registerLazorkitWallet({
    rpcUrl: 'https://api.devnet.solana.com',
    portalUrl: 'https://portal.lazor.sh',
    paymasterConfig: {
      paymasterUrl: 'https://kora.devnet.lazorkit.com',
    },
  });
}, []);

This registers LazorKit as a discoverable wallet that any wallet-standard compatible adapter can detect.

How It Works

1

Register LazorKit

Call registerLazorkitWallet() on app init to make LazorKit discoverable

2

Setup Wallet Provider

Wrap your app with the wallet adapter provider of your choice

3

LazorKit Appears as Option

Users see LazorKit alongside Phantom, Solflare, and other wallets

4

Use Standard Hooks

Use the adapter's hooks (useWallet, etc.) - works the same regardless of which wallet is connected