This project was a way for me to understand how blockchains work. It originally started in Javascript but I have recently converted it to Typescript for a better understanding.
Step 1: Clone the repository
$ git clone https://github.com/rileym11/Typescript-Blockchain
Step 2 (optional): Set the config in config.ts
export const difficulty = 5; // how hard each block is to create (higher number = harder)
export const miningReward = 10; // how many coins are users rewarded with for successful block creation
Step 3 (optional): Write your own tests in tests.ts
Step 4: Run the Blockchain!
$ yarn && yarn start