Hello SKALE

This is the official starting point of the recipes. If you are here it means you are probably brand new to either SKALE, Solidity, or both! If you fit into any of these categories, then don’t be afraid to join the SKALE Discord if you run into issues.

Already a seasoned developer? Checkout the Available Tracks or Some of our Favorites

Follow the Recipe

We will be using the following smart contract to learn about Solidity. You will not write code or do anything except read in this recipe.

Want to dive into code? Head over to the CryptoZombies Tutorial for a deep-dive into Solidity or checkout the basics

The smart contract is written in a langauge called Solidity. Solidity is the most common smart contract langauge in the world and works on all Ethereum compatible blockchains, like SKALE.

The Smart Contract

/// SPDX-License-Identifer: MIT
pragma solidity ^0.8.9;

contract HelloSKALE {

    public hello() external view returns (string) {
        return "SKALE";
    }
}

Interested in learning about the license or the solidity version? Checkout official solidity website.

Solidity in Action

As with many data sources, data is often read more than it is written. In this case we are going to use the blockchain explorer to confirm the value that is being returned for the function hello() above.

Scroll down in the website window below and find the 1. hello → XXXXX and see what it says!

Hello SKALE!

If you made it this far then you should see that the explorer has provided the response to this function. The response was SKALE!

You have made it to the end of this recipe…​for now. Check back soon for the full recipe on how to deploy your own start contract and make changes.