Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Run Blockchain example

This directory contains an example on how to run a blockchain.

The example does these things:

  1. Instantiates a VM and a Blockchain
  2. Creates the accounts from ./test-data.json's pre
  3. Creates a genesis block
  4. Puts the blocks from ./test-data.json's blocks into the Blockchain
  5. Runs the Blockchain on the VM.

Installation

  1. Run npm install in the root of this project

Running the example

  1. Run npm run build:dist in the root of this project
  2. Run npm run example in this directory