╔══════════════════════════════════════════════════════════════════════════════╗
║ ║
║ ███████╗██╗ ███████╗███████╗████████╗ ███████╗██████╗ ██╗ ██╗ ║
║ ██╔════╝██║ ██╔════╝██╔════╝╚══██╔══╝ ██╔════╝██╔══██╗██║ ██╔╝ ║
║ █████╗ ██║ █████╗ █████╗ ██║ ███████╗██║ ██║█████╔╝ ║
║ ██╔══╝ ██║ ██╔══╝ ██╔══╝ ██║ ╚════██║██║ ██║██╔═██╗ ║
║ ██║ ███████╗███████╗███████╗ ██║ ███████║██████╔╝██║ ██╗ ║
║ ╚═╝ ╚══════╝╚══════╝╚══════╝ ╚═╝ ╚══════╝╚═════╝ ╚═╝ ╚═╝ ║
║ ║
║ ⚔️ QUEST - Level Up Your Ergo Skills 🎮 ║
║ ║
║ Bounty: Σ1,578 ERG | Track: Open ║
║ ║
╚══════════════════════════════════════════════════════════════════════════════╝
📹 Recording Checklist (720p+ required):
- Show
npm testrunning all 86 tests- Navigate VitePress docs site
- Run example:
npm run example:basic- Show interactive playground
- Highlight gamification (XP system)
Click to see the tutorial in action!
| Requirement | Status | Link |
|---|---|---|
| GitHub Repository | ✅ | ayushap18/fleet-sdk-tutorial |
| README + Setup | ✅ | Quick Start |
| Architecture Overview | ✅ | Architecture |
| Problem & Solution | ✅ | Problem Statement |
| Presentation Deck | ✅ | View Presentation |
| Demo Video (720p+) | 📹 | YouTube |
- Main site: https://ayushap18.github.io/fleet-sdk-tutorial/
- Presentation: https://ayushap18.github.io/fleet-sdk-tutorial/presentation.html
The Ergo blockchain ecosystem lacks beginner-friendly, comprehensive educational resources for developers wanting to build dApps using the Fleet SDK. Existing documentation is:
- Scattered across multiple repositories
- Lacks hands-on, runnable examples
- Missing progressive learning paths
- No gamification to keep learners engaged
Fleet SDK Quest is a complete, gamified educational tutorial that transforms learning Fleet SDK from frustrating to fun:
| Problem | Our Solution |
|---|---|
| Fragmented docs | All-in-one tutorial with 4 progressive guides |
| No working examples | 86 passing tests + 9 runnable examples |
| Steep learning curve | Gamified XP system with skill tree progression |
| No practice environment | Interactive playground for hands-on learning |
| Outdated patterns | Real code from official Fleet SDK repositories |
┌─────────────────────────────────────────────────────────────────────────────┐
│ FLEET SDK QUEST ARCHITECTURE │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │
│ │ VitePress │ │ Test Suite │ │ Examples │ │
│ │ Docs Site │ │ (86 tests) │ │ (9 files) │ │
│ │ - Tutorials │ │ - Vitest │ │ - TypeScript │ │
│ │ - Concepts │ │ - MockChain │ │ - Runnable │ │
│ │ - Playground │ │ - Real vectors │ │ - Documented │ │
│ └────────┬────────┘ └────────┬────────┘ └────────┬────────┘ │
│ │ │ │ │
│ └───────────────────────┼───────────────────────┘ │
│ │ │
│ ┌────────▼────────┐ │
│ │ Fleet SDK │ │
│ │ v0.6.4 │ │
│ │ ───────────── │ │
│ │ @fleet-sdk/core│ │
│ │ @fleet-sdk/wallet │
│ │ @fleet-sdk/mock-chain │
│ │ @fleet-sdk/compiler │
│ └────────┬────────┘ │
│ │ │
│ ┌────────▼────────┐ │
│ │ Ergo Blockchain│ │
│ │ (Testnet/Main) │ │
│ └─────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
| Layer | Technology | Purpose |
|---|---|---|
| Documentation | VitePress 1.6.4 | Interactive docs with Vue components |
| Testing | Vitest + MockChain | Fast, isolated blockchain testing |
| Language | TypeScript 5.3 | Type-safe development |
| SDK | Fleet SDK 0.6.4 | All 8 packages integrated |
| CI/CD | GitHub Actions | Automated testing & deployment |
| Feature | Benefit |
|---|---|
| 86 Passing Tests | Learn from verified, working code |
| Gamified Learning | Earn XP, unlock achievements as you progress |
| Real Patterns | Code sourced from official Fleet SDK repos |
| Interactive Playground | Try code in your browser without setup |
| Testnet Integration | Test with real blockchain (free faucet ERG) |
| Complete Coverage | All bounty milestones (1-11) implemented |
A comprehensive, gamified educational tutorial for learning the Fleet SDK - the most powerful TypeScript library for building Ergo blockchain applications.
- 🎮 Gamified Learning - Earn XP as you complete tutorials and tests
- 📚 4 Progressive Tutorials - From basics to smart contracts
- 💻 9 Working Examples - Real, runnable code
- 🧪 86 Passing Tests - Comprehensive test coverage
- 📖 VitePress Documentation - Interactive docs site
- 🔗 Real Fleet SDK Patterns - Sourced from official repositories
- Node.js 18+
- npm or pnpm
# Clone the repository
git clone https://github.com/ayushap18/fleet-sdk-tutorial.git
cd fleet-sdk-tutorial
# Install dependencies
npm install
# Run tests to verify setup
npm test
# Start the documentation site
npm run docs:dev# 1. Run all 86 tests
npm test
# 2. Start interactive docs
npm run docs:dev
# 3. Run your first example
npm run example:basic
# 4. Start the gamified quest
npm run quest:start| # | Tutorial | Difficulty | Time | XP |
|---|---|---|---|---|
| 1 | First Transaction | ⭐⭐ | 30 min | 100 |
| 2 | Token Operations | ⭐⭐⭐ | 45 min | 150 |
| 3 | NFT Minting | ⭐⭐⭐ | 45 min | 150 |
| 4 | Smart Contracts | ⭐⭐⭐⭐ | 60 min | 200 |
| Example | Description | Run Command |
|---|---|---|
| Basic Transfer | Simple ERG transfer | npm run example:basic |
| Multi-Output | Multiple recipients | npm run example:multi |
| Token Transfer | Native tokens | npm run example:token |
| NFT Minting | Create NFTs | npm run example:nft |
| Contracts | ErgoScript | npm run example:contract |
| Multi-Sig | Team wallets | npm run example:multisig |
| Oracle Data | Real-world data | npm run example:oracle |
| DeFi Swap | Token swapping | npm run example:defi |
| Advanced Patterns | Production patterns | - |
Try Fleet SDK directly in your browser—no setup required!
┌─────────────────────────────────────────────────────────────────┐
│ 🎮 FLEET SDK PLAYGROUND │
├─────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Send ERG │ │ Mint Tokens │ │ NFTs │ │
│ │ ▶️ │ │ ▶️ │ │ ▶️ │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Contracts │ │ Oracles │ │ TimeLock │ │
│ │ ▶️ │ │ ▶️ │ │ ▶️ │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────┘
Try it: npm run docs:dev → Navigate to /playground
npm test| File | Tests | XP Available |
|---|---|---|
basic-transfer.test.ts |
7 | 80 XP |
token-operations.test.ts |
8 | 160 XP |
mock-chain.test.ts |
8 | - |
fleet-sdk-patterns.test.ts |
30 | 395 XP |
mock-chain-advanced.test.ts |
20 | 300 XP |
utils.test.ts |
13 | - |
| Total | 86 | 935+ XP |
- ✅ Core Patterns - TransactionBuilder, OutputBuilder, ErgoAddress
- ✅ Token Operations - Minting, transfers, NFTs (EIP-4)
- ✅ MockChain - Simulated blockchain testing
- ✅ SigmaUSD Protocol - Oracle rates, bank box patterns
- ✅ Utilities - Address validation, fee calculation
| Package | Version | Purpose |
|---|---|---|
@fleet-sdk/core |
0.6.4 | Transaction building |
@fleet-sdk/wallet |
0.6.4 | Key management |
@fleet-sdk/common |
0.6.4 | Shared utilities |
@fleet-sdk/crypto |
0.6.4 | Cryptographic functions |
@fleet-sdk/serializer |
0.6.4 | Data serialization |
@fleet-sdk/mock-chain |
0.6.4 | Testing utilities |
@fleet-sdk/compiler |
0.6.4 | ErgoScript compiler |
@fleet-sdk/blockchain-providers |
0.6.4 | Data providers |
fleet-sdk-tutorial/
├── 📁 docs/ # VitePress documentation
│ ├── tutorials/ # Step-by-step guides
│ ├── concepts/ # Core concepts
│ ├── examples/ # Example explanations
│ ├── testing/ # Testing guides
│ ├── troubleshooting/ # Common issues
│ └── playground/ # Interactive playground
├── 📁 examples/ # Runnable code examples (9 files)
├── �� tests/ # Test suite (86 tests)
│ ├── fleet-sdk-patterns.test.ts # Real Fleet SDK patterns
│ ├── mock-chain-advanced.test.ts # MockChain patterns
│ └── test-vectors.ts # Real mainnet data
├── 📁 src/ # Source utilities
├── package.json
├── vitest.config.ts
└── README.md
🎮 FLEET SDK QUEST - SKILL TREE
================================
Level 1: Novice (0-200 XP)
├── ✅ Understand UTXO model
├── ✅ Create first wallet
└── ✅ Send basic transaction
Level 2: Apprentice (200-500 XP)
├── ✅ Work with tokens
├── ✅ Mint NFTs (EIP-4)
└── ✅ Handle multiple outputs
Level 3: Journeyman (500-800 XP)
├── ✅ Use MockChain for testing
├── ✅ Interact with oracles
└── ✅ Build multi-sig wallets
Level 4: Master (800+ XP)
├── ✅ ErgoScript contracts
├── ✅ SigmaUSD protocol patterns
└── ✅ Production dApp patterns
This tutorial uses real patterns from official repositories:
- fleet-sdk/fleet - TransactionBuilder, OutputBuilder, MockChain
- ergoplatform/ergo - ErgoScript, Sigma protocol
- SigmaUSD Protocol - Oracle rates, bank box structure
// Real addresses from Fleet SDK tests
const REAL_ADDRESS = "9hXBB1FS1UT5kiopced1LYXgPDoFgoFQsGnqPCbRaLZZ1YbJJHD";
// Real token IDs from mainnet
const SIGUSD = "03faf2cb329f2e90d6d23b58d91bbb6c046aa143261cc21f52fbe2824bfcbf04";
const SIGRSV = "003bd19d0187117f130b62e1bcab0939929ff5c7709f843c5c4dd158949285d0";See Common Issues for solutions.
Contributions welcome! See CONTRIBUTING.md.
MIT License - Free to use for learning and building!
All 11 milestones from the bounty specification are complete:
| # | Milestone | Status | Files |
|---|---|---|---|
| 1 | Send Transaction | ✅ | tutorials/01-first-transaction.md |
| 2 | Mint Tokens | ✅ | tutorials/02-token-operations.md |
| 3 | Burn Tokens | ✅ | tutorials/02-token-operations.md |
| 4 | Box Retrieval | ✅ | concepts/utxo-model.md |
| 5 | Contract Transaction | ✅ | tutorials/04-smart-contracts.md |
| 6 | Signing with Secret | ✅ | concepts/contract-signing.md |
| 7 | Registers | ✅ | concepts/registers.md |
| 8 | Data Inputs | ✅ | concepts/data-inputs.md |
| 9 | Compile Constants | ✅ | concepts/compile-time-constants.md |
| 10 | ReducedTx/ErgoPay | ✅ | concepts/reduced-tx-ergopay.md |
| 11 | Single-Interaction TX | ✅ | examples/timelock.md |
| Resource | Link |
|---|---|
| Fleet SDK Docs | fleet-sdk.github.io |
| Ergo Platform | docs.ergoplatform.com |
| Ergo Explorer | explorer.ergoplatform.com |
| Testnet Faucet | testnet.ergoplatform.com/faucet |
| Fleet SDK GitHub | github.com/fleet-sdk/fleet |
Created with ❤️ for the Ergo Community
🏆 Unstoppable Hackathon 2025 | Fleet SDK Quest | Σ1,578 Bounty