Vite Integration
Learn how to integrate LunoKit with Vite for a fast, modern development experience.
Environment Setup
Before running the example, you need to configure your WalletConnect ID:
Copy the environment file:
bashcd examples/with-vite cp .env.example .envEdit
.envand replace the environment variables with your own values:bashVITE_WALLET_CONNECT_ID=your_walletconnect_id VITE_SUBSCAN_API_KEY=your_subscan_api_key
You can get a WalletConnect ID from WalletConnect Cloud.
For Subscan API Key, register at Subscan and create an API key in your account dashboard.
Quick Start
bash
git clone https://github.com/Luno-lab/LunoKit.git
cd LunoKit
# Install dependencies
pnpm install
# Build packages
pnpm build
# Start with-vite example
pnpm --filter with-vite devWhat You'll See
The example demonstrates:
- Basic LunoKit setup with Vite
- Multiple chains (Polkadot, Kusama, Westend, Paseo)
- Multiple wallets (Polkadot{.js}, SubWallet, Talisman, Polkagate, Walletconnect, NovaWallet)
- Account connection and balance display
- Theme color switching
- SignMessage functionality
- Transfer transaction
Live Demo
Try the live demo: Vite Example
Source Code
View the complete source code: GitHub - with-vite