Skip to content

A Quick Primer on ErgoScript#

Background Reading

1. Paradigm

Ergo's transaction model offers several advantages over the account-based model, explore this new paradigm.

2. Key Concepts

Explore the Core Concepts of ErgoScript.

3. Context Claims

Ergo offers a unique approach to smart contract-enabled blockchains, providing efficient global context claims through the concept of data inputs.

4. ErgoScript vs ErgoTree

ErgoScript is a high-level developer-friendly language for writing smart contracts that are then compiled to ErgoTree before being written to the blockchain. Explore the distinction here

ErgoScript Examples#

Tip: For beginners, we highly recommend the ErgoScript P2S playground, which can be used to get the Ergo address corresponding to some arbitrary ErgoScript program. Please use the P2S playground only for experiments.