Skip to main content
ERGO
  • Docs
  • Blog
Get Wallet
PLATFORM
TechnologyUse CasesEcosystemCompare BlockchainsInfographicsWallets
LEARN
Start HereDocumentationGlossaryFAQPlaybooksDev Patterns
COMMUNITY
BlogDiscordTelegramTwitterGitHubGrants

© 2025 ERGO PLATFORM. ALL RIGHTS RESERVED.

ERGO IS AN OPEN-SOURCE PROJECT. CONTRIBUTE ON GITHUB

Home
Q&A
Technology
How does ErgoScript work?
Explainer
Technology
Updated 11/26/2025

How does ErgoScript work?

ErgoScript is Ergo's smart contract language - a functional, Scala-based DSL that compiles to ErgoTree. Unlike Solidity's imperative style, ErgoScript is declarative: you define conditions that must be true for a transaction to be valid. It has built-in Sigma Protocol support for zero-knowledge proofs and operates on the eUTXO model where scripts guard boxes.

  • Functional: declarative conditions, not imperative code
  • Scala-based: familiar syntax for JVM developers
  • Sigma Protocols: native zero-knowledge proof support
  • Box-guarding: scripts protect UTXOs, not accounts
  • Deterministic: predictable execution, known costs

Deep Dive Resources

Technology
Overview

ErgoScript

Glossary
Definition

ErgoScript

Infographic
Visual

ErgoScript Cypherpunk

Documentation
Learn

ErgoScript Tutorial

Playbook
Apply it

Build DeFi

Explore This Topic

Ergo Technology

Deep dive into all Technology resources

Related Questions

How to build DeFi on Ergo?
What is eUTXO and how does it work?
Is Ergo better than Ethereum for DeFi?

Still have questions?

Join our community and get answers from Ergo experts.

Join CommunityBrowse All Questions