Skip to main content
ERGO
  • Docs
  • Blog
Get Wallet
PLATFORM
TechnologyUse CasesEcosystemWallets
DEVELOPERS
DocumentationLearnGitHubGrants
COMMUNITY
BlogDiscordTelegramTwitter

© 2025 ERGO PLATFORM. ALL RIGHTS RESERVED.

ERGO IS AN OPEN-SOURCE PROJECT. CONTRIBUTE ON GITHUB

Learn
ErgoScript

ErgoScript

Smart Contract Language for the Future

ErgoScript is a powerful, secure smart contract language built on Sigma protocols and the extended UTXO model. Create complex financial contracts with built-in privacy, predictable fees, and mathematical guarantees.

Start LearningView on GitHub

Quick Start

Try Playground

Read Tutorial

View Examples

Why ErgoScript?

Built for security, privacy, and developer productivity with cutting-edge cryptographic features

Sigma Protocols

Built-in zero-knowledge proofs for privacy and complex multi-party contracts

UTXO Model

Extended UTXO model with data and logic attached to boxes for enhanced security

Functional Programming

Immutable data structures and functional paradigms for safer smart contracts

Oracle Integration

Native oracle support for real-world data integration without external dependencies

Multi-Stage Contracts

Complex contracts that evolve through multiple stages with different conditions

Predictable Fees

Know exact execution costs before deployment with deterministic fee calculation

Learn by Example

Explore ErgoScript through practical examples and interactive tutorials

Simple Payment Contract
{
  // Simple payment to a public key
  val recipientPK = PK("9f4QF8AD1nQ3nJahQVkMj8hFSVVzVom77b52JU7EW71Zexg6N8v")
  
  // Check that the output goes to the recipient
  val validRecipient = OUTPUTS(0).propositionBytes == recipientPK.propBytes
  
  // Check minimum amount
  val validAmount = OUTPUTS(0).value >= 1000000L // 0.001 ERG
  
  sigmaProp(validRecipient && validAmount)
}

This basic contract ensures that funds can only be spent to a specific recipient with a minimum amount.

Interactive Tutorials

Step-by-step guides to master ErgoScript development

Hello World Contract
Beginner

Your first ErgoScript contract - basic syntax and structure

15 min
Token Minting
Intermediate

Create and manage custom tokens on Ergo blockchain

30 min
Multi-Signature Wallet
Advanced

Build a secure multi-sig wallet with ErgoScript

45 min
Oracle Data Usage
Intermediate

Integrate external data sources into your contracts

25 min

Frequently Asked Questions

What's Next?

Start building with ErgoScript today

Try Playground

Interactive Learning

Experiment with ErgoScript in an interactive online environment

Full Documentation

Complete Guide

Access comprehensive documentation, API references, and advanced tutorials

Advanced ErgoScript Tutorials

Get the latest ErgoScript guides, advanced tutorials, and developer resources delivered to your inbox

Follow for daily updates