This document outlines the requirements for developing a basic token dashboard API for the BurnAndMintToken (BMT) project. The API will facilitate user balances, token transfers, burn/mint tracking, and integration with Web3 wallets.
- Endpoint:
/api/balances - Method: GET
- Description: Retrieve the token balance for a specific user.
- Parameters:
address: The wallet address of the user.
- Endpoint:
/api/transfer - Method: POST
- Description: Facilitate token transfers between users.
- Parameters:
from: The sender's wallet address.to: The recipient's wallet address.amount: The amount of tokens to transfer.
- Endpoint:
/api/burn-mint - Method: GET
- Description: Track burn and mint events.
- Parameters:
type: Specify whether to track burns or mints.
- Objective: Enable users to connect their wallets (MetaMask, TrustWallet) to the application.
- Implementation: Use libraries like
ethers.jsandweb3modalfor wallet integration.
- Objective: Allow users to view transaction history and token details on blockchain explorers.
- Implementation: Provide links to Etherscan or similar services for transaction tracking.
- Endpoint:
/api/supply - Method: GET
- Description: Retrieve the total supply of BMT tokens.
- Endpoint:
/api/transactions - Method: GET
- Description: Fetch a log of all transactions involving the BMT token.
- Endpoint:
/api/governance - Method: GET
- Description: Retrieve active governance proposals and voting results.
- Estimated Hours: 200 hours
- Responsibilities: API development and database integration.
- Estimated Hours: 100 hours
- Responsibilities: Web3 integration and smart contract interactions.
- Estimated Hours: 50 hours
- Responsibilities: Hosting and deployment of the API and web application.
This API requirements document serves as a roadmap for developing the backend infrastructure necessary for the BurnAndMintToken project. By focusing on user balances, token transfers, and governance actions, we aim to create a robust and user-friendly experience.
For more information about the API requirements, please contact:
- Ewuzie Azuka
- Founder, BMT
- Email: [Your Email]
- Website: [Your Website]