Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 813 Bytes

File metadata and controls

50 lines (35 loc) · 813 Bytes

Token API

A simple Fastify-based API for MAIGA token related operations on BSC (Binance Smart Chain).

Features

  • Get total supply of MAIGA token
  • Get circulating supply of MAIGA token

Setup

  1. Install dependencies:
npm install
  1. Create a .env file based on env-example:
cp env-example .env
  1. Configure your environment variables in .env:
    • PORT: Server port
    • BSC_RPC_URL: BSC RPC endpoint URL

Development

Start the development server:

npm run dev

Build the project:

npm run build

Start the production server:

npm start

API Endpoints

  • GET /total-supply - Returns the total supply of MAIGA token (1,000,000,000)
  • GET /circulating-supply - Returns the circulating supply of MAIGA token

License

MIT