Getting started
Solid is an offchain solidity runtime made for Fiber.
It allows you to write smart contracts in Solidity and run them outside of the blockchain. Solid is the missing piece that enables developers to write end-to-end (backend and contracts) application in Solidity.
Quickstart
A simple Hello World example:
Token.sol
import "std/console.sol";
contract Main {
function main() public {
Console.log("Hello World");
}
}
Now we can run the contract.
Terminal
solid run Main.sol
You should see the following output:
Terminal
Hello World