Recipe 01: Passkey Wallet Basics
Learn how to create wallets with Face ID, check balances, and interact with Solana
What You'll Learn
- โCreate a Solana wallet using passkey authentication (Face ID/Touch ID)
- โConnect and disconnect from your wallet
- โCheck your SOL and USDC balances
- โRequest devnet SOL airdrops for testing
- โView your wallet address and explore on Solana Explorer
How It Works
1. Passkey Authentication
Instead of seed phrases, LazorKit uses WebAuthn (Face ID/Touch ID) to secure your wallet. Your private keys are stored securely and never leave your device.
2. Smart Wallet
When you create a wallet, LazorKit generates a smart wallet address on Solana. This is a regular Solana address that can receive tokens and interact with programs.
3. No Extensions Needed
Unlike traditional wallets, you don't need to install any browser extensions. Everything works directly in your browser or mobile app.
๐ก Pro Tip
This demo uses Solana Devnet (test network). Devnet SOL has no real value and is only for testing. In production, you'd connect to Mainnet for real transactions.
Code Example
import { useWallet } from '@lazorkit/wallet';
function MyComponent() {
const { wallet, connect } = useWallet();
return (
<button onClick={connect}>
{wallet ? wallet.smartWallet : 'Connect'}
</button>
);
}That's it! Just one hook to access the entire wallet functionality.
Try It Yourself
Create Your Wallet
Click the button below to create a wallet using Face ID or Touch ID
If popup is blocked, you need to allow popups for LazorKit connection portal to come up.