Skip to content

๐Ÿ“š Core Concepts โ€‹

Foundational knowledge for Ergo blockchain development

Understanding these concepts will make you a more effective Fleet SDK developer. Start here before diving into the tutorials.

Learning Path โ€‹

mermaid
graph LR
    A[UTXO Model] --> B[Box Structure]
    B --> C[ErgoScript]
    C --> D[Build Transactions]

Concept Guides โ€‹

๐Ÿ“ฆ UTXO Model โ€‹

The foundation of how Ergo (and Bitcoin) handle transactions.

You'll Learn:

  • Why UTXO is different from account-based blockchains
  • How coins work like "physical bills"
  • Benefits: parallelism, privacy, verification
  • Extended UTXO features unique to Ergo

Best For: Those coming from Ethereum or new to blockchain development


๐Ÿ—ƒ๏ธ Box Structure โ€‹

Deep dive into Ergo's fundamental data unit.

You'll Learn:

  • Anatomy of an Ergo box
  • Box properties: value, ErgoTree, assets, registers
  • How to read and create boxes
  • Minimum box value requirements

Best For: Understanding how data is stored on-chain


๐Ÿ“œ ErgoScript Basics โ€‹

Introduction to Ergo's smart contract language.

You'll Learn:

  • Basic ErgoScript syntax
  • Context variables (HEIGHT, SELF, INPUTS, OUTPUTS)
  • Common patterns: timelocks, multi-sig, hash locks
  • Integration with Fleet SDK

Best For: Developers ready to write smart contracts


Quick Reference โ€‹

Key Values โ€‹

typescript
import { 
  SAFE_MIN_BOX_VALUE,      // 1_000_000n (0.001 ERG)
  RECOMMENDED_MIN_FEE_VALUE // 1_100_000n (0.0011 ERG)
} from "@fleet-sdk/core";

// ERG denominations
const oneNanoErg = 1n;
const oneErg = 1_000_000_000n;

Box Properties โ€‹

PropertyTypeDescription
boxIdstringUnique 64-char hex ID
valuebigintERG amount (nanoERG)
ergoTreestringSpending script
assetsarrayNative tokens
additionalRegistersobjectR4-R9 data
creationHeightnumberBlock height

ErgoScript Context โ€‹

VariableDescription
HEIGHTCurrent blockchain height
SELFBox being spent
INPUTSAll input boxes
OUTPUTSAll output boxes

Next Steps โ€‹

  1. Start with UTXO Model if you're new to Ergo
  2. Read Box Structure to understand the data layer
  3. Learn ErgoScript for smart contracts
  4. Practice with Tutorials to build real transactions

Additional Resources โ€‹

Released under the MIT License.