This repository provides a streamlined implementation of the Bitcoin BRC-20 protocol, specifically designed for handling 5-byte operations. The project focuses on simplicity, scalability, and compatibility with the broader Bitcoin ecosystem while maintaining the core principles of decentralization and security.
- Advantages of 5-Byte Standard: The 5-byte BRC-20 standard offers improved efficiency and scalability compared to previous versions by reducing data overhead. This enables faster transaction processing, lower storage requirements, and better compatibility with lightweight applications.
- 5-Byte Compatibility: Optimized for operations using the 5-byte standard, enabling efficient and lightweight token transfers.
- Express Framework: Built using the Express.js framework for rapid API development and robust backend functionality.
- TypeScript Support: Fully typed for enhanced developer productivity, maintainability, and reduced runtime errors.
- MongoDB Integration: A reliable and scalable database for storing and managing transaction data.
- Unisat API Integration: Utilizes the Unisat API for seamless interaction with the Bitcoin network, eliminating the need for a local Bitcoin Core instance.
Ensure you have the following installed:
- Node.js (>= 16.0.0)
- MongoDB (>= 4.4)
-
Clone the repository:
git clone https://github.com/yourusername/btc-brc20-5bytes-private.git cd bitcoin-brc20-5bytes
-
Install dependencies:
npm install
-
Configure the environment variables: Create a
.env
file in the root directory and populate it with the required variables. See.env.example
for reference. -
Start the development server:
npm run dev
-
Access the application at
http://localhost:3000
.
- API Endpoints: A comprehensive set of API endpoints is provided for creating, managing, and transferring BRC-20 tokens. Refer to the API Documentation for details.
- CLI Tool: A command-line interface is available for performing common operations. Run
npm run cli --help
for usage instructions.
We welcome contributions from the community! To contribute:
- Fork the repository.
- Create a feature branch:
git checkout -b feature-name
- Commit your changes:
git commit -m 'Add feature-name'
- Push to the branch:
git push origin feature-name
- Open a pull request.