Technical Documentation
Demo ID: inscription-platform Version: 1.0.0 Last Updated: 2026-02-02
Architecture Overview
System Architecture
Browser-based single-page application connecting directly to user wallets via WalletClient, creating OP_RETURN transactions for data inscription on BSV blockchain.
Technology Stack
Frontend: React, Vite, TypeScript
Blockchain SDK: @bsv/sdk
Wallet Integration: WalletClient
Storage: Browser localStorage, BSV blockchain
Key Components
WalletClient Hook: Manages user wallet connection and identity
InscriptionService: Creates OP_RETURN transactions with data payloads
HistoryManager: Persists transaction history in browser localStorage
Basket Manager: Organizes inscriptions by type (text, json, hash-document, hash-image)
Integration & APIs
External Dependencies
@bsv/sdk
Transaction creation, script building
Latest
docs.bsvblockchain.org
BSV Desktop
User key management, signing
Latest
desktop.bsvb.tech
API Endpoints
No external API required - direct blockchain interaction via WalletClient.
Implementation Guide
Prerequisites
Node.js 18+
BSV Desktop installed
Modern web browser with localStorage support
Test BSV for transaction fees
Setup Instructions
Configuration
Wallet connection handled automatically via WalletClient. No environment variables required.
Testing & Validation
Test Coverage
Unit Tests: Inscription service validation
Integration Tests: WalletClient connection flow
Manual Tests: End-to-end inscription creation
Validation Criteria
Performance & Scalability
Current Metrics
Transaction Creation: <1s
Wallet Interaction: 2-3s per signature
History Load: <100ms (50 records)
Scalability Considerations
localStorage limited to ~5MB (sufficient for 1000s of records)
Each inscription creates one blockchain transaction
No backend infrastructure required
Maintenance & Support
Monitoring
Logs: Browser console for client-side debugging
Metrics: Transaction IDs viewable on blockchain explorers
Alerts: User-facing error messages for wallet connection issues
Troubleshooting
Wallet not connecting
BSV Desktop not installed/unlocked
Install wallet or unlock
Transaction fails
Insufficient BSV balance
Add funds from faucet
History not persisting
localStorage disabled
Enable browser storage
Resources
Code Tutorial: BSV Code Academy - Inscription Platform
Business Documentation: Business Overview
Demo Environment: Run locally via npm run dev
Support Contact: BSV blockchain demos team
For business context and ROI details, see: Business Documentation
Last updated
