Skip to main content

First Contract for Smart Contract Developers

A first contract is a small Solidity program that shows the shape of every later one: a pragma, a contract block, state variables, functions and events. Writing it against worked examples such as a counter, a simple storage or a voting contract teaches compiling, deploying to a test network and calling functions from a script or console.

Stage: Blockchain Basics · Part of the Smart Contract Developer roadmap · Last reviewed 19 November 2026

What to learn in First Contract

First Contract interview questions

What is the ABI of a contract?

The Application Binary Interface is a JSON description of a contract's functions, events and their types. Client libraries like ethers.js use it to encode function calls and decode results and logs, so a program can talk to deployed bytecode.

What is the difference between a call and a transaction?

A call reads state locally on a node, costs no gas and changes nothing on chain. A transaction is signed, sent to the network, executed by validators, can change state and costs gas. View and pure functions are normally invoked as calls.

Where First Contract fits in the Smart Contract Developer roadmap

First Contract belongs to the Blockchain Basics stage (beginner level), which takes about 25 hours. Concepts first.

Back to the full Smart Contract Developer roadmap