Solidity theorytheory 0/50 · 0%
Foundations · easy

1. What Solidity is

A contract-oriented language compiled to EVM bytecode.

Solidity is a statically typed, contract-oriented language that compiles to EVM bytecode. That bytecode is stored on chain at an address, and anyone can call its functions by sending a transaction.

Every file starts with a licence comment and a pragma that pins the compiler version, then declares one or more contracts.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

contract Hello {
    string public greeting = "gm";
}

Compiling produces two artefacts you will use constantly: the bytecode (deployed to the chain) and the ABI (a JSON description your front-end uses to encode calls).

Check your understanding

  1. 1. What does the Solidity compiler produce?

  2. 2. What does `pragma solidity ^0.8.24;` do?

  3. 3. Where does a deployed contract live?