This directory contains an example on how to run smart contracts written in Solidity.
The example does these things:
- Compiles the contract
contracts/Greeter.sol
- Instantiates a VM
- Creates an account
- Funds the account with 1 ETH
- Deploys the Greeter contract
- Calls a constant function
- Sends a transaction to the contract, modifying its state
- Calls a constant function to verify the state change
- Run
npm i
in the root of this project - Run
npm i
in this directory
- Run
npm run example
in this directory