Navigate between pages

Sophia voting contract

Sophia voting contract

In this chapter, you will learn the basics of æternity smart contracts and build the foundation for our dæpp.

Learning Objective

Have learned how to use the aeternity contract editor.
Have a basic knowledge on how to write a Sophia contract.
Be able to write state variables, functions, records, maps and transactions.

Intro to the smart contract editor

6 minutes Youtube Video by dacade
In this video, we are introducing the aeternity smart contract editor and its functionalities.

Enter and retrieve an URL from the blockchain

8 minutes Youtube Video by dacade
In this video, we will build our first contract that can write to the aeternity blockchain and retrieve data from it. We will also learn about the state, types and functions of our contract. ⚠️ Update: When you enter a string as an argument in the contract editor you no longer need quotation marks as described in the videos. Instead of “url.com”, it’s url.com.

Store multiple memes with multiple values

9 minutes Youtube Video by dacade
In this video, you will learn about maps, records and addresses in Sophia. We will further develop our smart contract and make it possible to store and retrieve multiple memes with multiple data types.

Vote on memes with aeternity token

12 minutes Youtube Video by dacade
In this video, we will finalise our contract and enable the user to vote on memes with their aeternity token.