📚 About This Demo

This demo showcases a complete wallet integration with a simple token swap smart contract.

Features:

  • Connect wallet using WalletComms SDK
  • Session persistence (reconnects automatically on page reload)
  • Multi-account management with session switching
  • Account nicknames and connection history

🔄 Token Swap

Swap NEXA for DEMO tokens

Rate: 100 DEMO per 1000 satoshis
NEXA (sats)
Minimum: 1,000 satoshis
⬇️
DEMO
Contract Address:nexa:nqtsq5g5sjkqk7wzd9wwh9423rr0tda7aqf5dfwf2qwfqwkp
🎓 Instructions for Students
  1. Get testnet tokens: Click "💧 Get Testnet NEXA" to claim 1000 tNEXA from the faucet
  2. Connect your wallet: Click the "Connect Wallet" button in the top right
  3. Scan the QR code: Use your Nexa mobile wallet to scan the pairing QR code
  4. Enter swap amount: Enter the amount of NEXA (in satoshis) you want to swap
  5. Execute swap: Click "Swap Tokens" to sign and broadcast the transaction
  6. Try multiple accounts: Connect different wallet accounts and switch between them seamlessly
⚙️ Technical Details

Network: Testnet

Contract Address:
nexa:nqtsq5g5sjkqk7wzd9wwh9423rr0tda7aqf5dfwf2qwfqwkp

Swap Rate: 100 DEMO per 1,000 satoshis

Session Storage: LocalStorage with 24-hour expiry