Let's say you want to host domains first.com and second.com.
Create folders for their files:
| Solidity lets you program on Ethereum, a blockchain-based virtual machine that allows the creation and execution of smart contracts, without needing centralized or trusted parties. | |
| Solidity is a statically typed, contract programming language that has similarities to Javascript and C. Like objects in OOP, each contract contains state variables, functions, and common data types. Contract-specific features include modifier (guard) clauses, event notifiers for listeners, and custom global variables. | |
| Some Ethereum contract examples include crowdfunding, voting, and blind auctions. | |
| As Solidity and Ethereum are under active development, experimental or beta features are explicitly marked, and subject to change. Pull requests welcome. | |
| // First, a simple Bank contract | |
| // Allows deposits, withdrawals, and balance checks | |
| // simple_bank.sol (note .sol extension) | |
| /* **** START EXAMPLE **** */ |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "flag" | |
| "net/http" | |
| ) | |