LazorKit Logo

LazorKit

Devnet
← Back to Web Recipes
📱

LazorKit Mobile SDK

Test the React Native integration on your device

Scan to open in Expo Go

Scan to Test on Your Device

  1. 1Install Expo Go from the App Store (iOS) or Play Store (Android)
  2. 2Scan the QR code with Expo Go (Android) or the Camera app (iOS)

Mobile Recipes Included

👛

01 - Connect Wallet

Passkey authentication with deep linking

02 - Gasless Transfer

Send USDC without gas fees

🔄

03 - Raydium Swap

DEX integration with gasless swaps

📱 Mobile vs 🌐 Web: Key Differences

FeatureWebMobile
SDK Package@lazorkit/wallet@lazorkit/wallet-mobile-adapter
AuthenticationPopup windowExternal browser + deep link
Redirect HandlingNot requiredLinking.createURL(...)
Transaction SigningIn-app popupOpens LazorKit portal, returns via deep link

Quick Start Code

Using the LazorKit Mobile SDK directly:

import { useWallet } from '@lazorkit/wallet-mobile-adapter';
import * as Linking from 'expo-linking';

const { wallet, isConnected, connect, signAndSendTransaction } = useWallet();

// Connect with deep link redirect
await connect({
  redirectUrl: Linking.createURL('your/return/path'),
  onSuccess: (wallet) => console.log('Connected:', wallet.smartWallet),
  onFail: (error) => console.error('Failed:', error.message),
});

// Send gasless transaction
const signature = await signAndSendTransaction(
  { instructions, transactionOptions: { computeUnitLimit: 200_000 } },
  { redirectUrl: Linking.createURL('your/return/path') }
);

💡 The cookbook includes a WalletContext wrapper that simplifies redirect handling across screens.

📖 Read the Mobile Cookbook Patterns Guide →