ErgoScript Examples
Public Contracts
Learn how to create publicly accessible smart contracts that anyone can interact with on the Ergo blockchain.
Anyone Can Spend
Understand contracts where any user can spend the locked funds, useful for specific dApp scenarios.
No-one Can Spend
Explore permanently locked contracts that demonstrate burn mechanisms and provably unspendable boxes.
Context Variables
Master the use of blockchain context variables like HEIGHT, SELF, INPUTS, and OUTPUTS in your contracts.
Code-blocks
Learn how to structure and organize ErgoScript code using blocks, functions, and control flow.
Public-keys
Implement cryptographic proofs and signature verification using public keys in smart contracts.
Functional Programming
Discover functional programming patterns and higher-order functions in ErgoScript development.
Box Structure
Deep dive into Ergo's box model, registers, tokens, and how to manipulate box data structures.
Storing Data
Learn various methods for storing and retrieving data in Ergo boxes using registers and tokens.
Creating a simple P2S app
Step-by-step guide to building your first Pay-to-Script application on the Ergo platform.