Week 01 - Minimal TypeScript Blockchain
February 6, 2026
(Updated February 17, 2026)
1 min read
by Jim
BlockchainTypeScript
See original block post here.
For the first week of my uni project challenge, I decided to build a minimal blockchain implementation in TypeScript. This project was a great way to dive into the fundamentals of blockchain technology and get hands-on experience with TypeScript.
The blockchain contains a simple implementation of blocks along with a web api to interact with the blockchain.
Example log output when POST to /api/mine
[2026-02-06T22:25:09.756Z] [info] [Server] METHOD — [POST], URL — [/api/mine], IP -[::ffff:127.0.0.1]
New block added: Block -
Timestamp : 1770416709756
Last Hash : 53e6466e1ab65622b6afb0cf5ae9fd41bae6f5591871480184893b62a8f9fc5e
Hash : d8e35f002c5dd1f5e2005242a7f610d47a8224aa3f642027202b195d080f2853
Data :
Validator :
Signature : Running this project
Clone the repository and navigate to the project directory:
git clone https://git.jimster.dev/jim/ts-blockchain.git
cd ts-blockchainInstall the dependencies:
npm installStart the development server:
npm run startThis will start the server on http://localhost:1338. You can interact with the blockchain using the following API endpoints:
GET /api/check: Perform a health check on the blockchain server.GET /api/blocks: Retrieve the current blockchain.POST /api/mine: Add a new block to the blockchain with the provided data