Skip to main content
Solid is a completely optional runtime for Fiber apps. It is designed to enable developers to build backends using Solidity.

Hello World example

The simplest example is deploying a ERC20 token. Traditionally you’d have to clone openzepplin or another library, then create a forge project and write a deployment script. In Solid you can just do:
App.sol
import "std/console.sol";
import {ERC20} from "fiber-std";

contract CustomToken is ERC20 {
    constructor() ERC20("My new token on Fiber", "MNT") {
        _mint(msg.sender, 1000000000000000000000000);
    }
}

contract Main {
    function main() public {
        Console.log("Hello World");

        CustomToken token = new CustomToken();

        Console.log("Token deployed");
        Console.logAddress(address(token));
    }
}
And then run the file with:
solid run App.sol
You should see the following output:
[Terminal]
Token deployed
0xb7C43Db7DD6B77B7128154f4664820B75949Af51