This Blockchain REST API provides a set of endpoints for interacting with a blockchain network, allowing users to create transactions, retrieve blockchain data, and manage network nodes.
- Create and broadcast transactions
- Retrieve the blockchain ledger
- Validate transactions and blocks
- Peer-to-peer network management
- Secure and efficient API endpoints
- Backend: Node.js / Express
- Blockchain: Custom implementation
- Database: JSON-based ledger storage
- Security: JWT authentication (recommended)
Ensure you have the following installed:
- Node.js (v14+)
- npm or yarn
- Clone the repository:
git clone https://github.com/MohamadFazuan/BlockchainRESTAPI.git cd BlockchainRESTAPI - Install dependencies:
npm install
- Start the server:
npm start
The API will run on http://localhost:3000 by default.
- Input Validation: Always validate user inputs before processing transactions.
- Authentication: Implement JWT authentication to protect sensitive endpoints.
- Encryption: Encrypt sensitive data to enhance security.
- Optimize performance with database integration
- Swagger UI Integration
Contributions are welcome! Feel free to submit a pull request or report issues.
This project is licensed under the MIT License.
Author: Mohamad Fazuan