Skip to content

A robust and efficient RESTful API built with Node.js and Express, designed for interaction with the Knuth implementation of the Bitcoin Cash (BCH) blockchain. This API is equipped with features such as block and transaction fetching, block organization, caching, and environment-configured settings for enhanced scalability and performance.

License

Notifications You must be signed in to change notification settings

k-nuth/rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knuth Rest-API

Description

The Knuth Rest-API is a powerful RESTful service engineered with Node.js and Express. Its primary purpose is to facilitate seamless interaction with the Knuth Bitcoin Cash (BCH) blockchain. With its efficient use of the memory cache module, this API significantly enhances request efficiency and overall performance. Configuration details such as cache duration and server port are managed flexibly through environment variables.

Setup and Installation

  1. Clone this repository to your local machine.
  2. Install dependencies with the command npm install.
  3. Configure environment variables in the .env file for personalized settings: cp .env.example .env
  4. Initiate the server using npm start.

API Endpoints

The Knuth Rest-API encompasses various API endpoints corresponding to methods in the Chain class. These endpoints facilitate operations such as retrieving the last block height, block headers (by height or hash), specific blocks (by height or hash), transactions (by hash), and transaction positions (by hash).

Usage Considerations

Please note that while this repository is fully functional, it's primarily configured for learning and exploration purposes. For production use, further optimization and security enhancements are recommended.

Contributing

We welcome contributions from the developer community. If you're interested in enhancing the functionalities of the Knuth Rest-API or have some useful insights, feel free to submit a Pull Request or open an Issue on GitHub.

About

A robust and efficient RESTful API built with Node.js and Express, designed for interaction with the Knuth implementation of the Bitcoin Cash (BCH) blockchain. This API is equipped with features such as block and transaction fetching, block organization, caching, and environment-configured settings for enhanced scalability and performance.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published