Mimir API provides a suite of services for the Voi Network, helping developers build applications with easy access to chain data.
Currently, the Mimir API suite includes:
- ARC200 Token Balances API: Query ARC-200 token balances for accounts on the Voi Network.
- ARC200 Token Transfers API: Query ARC-200 token transfer history on the Voi Network.
- ARC200 Tokens API: Query all available ARC-200 tokens on the Voi Network.
- ARC200 Tokens Approvals API: Query ARC-200 token approvals for accounts and tokens on Voi Network.
- ARC72 Tokens API: Query ARC-72 NFT token details on the Voi Network.
- ARC72 Transfers API: Query ARC-72 NFT token transfer history on the Voi Network.
- ARC72 Collections API: Query ARC-72 NFT collections data on the Voi Network.
- Marketplace Listings API: Query active, sold, and deleted marketplace listings on the Voi Network.
- Marketplace Sales API: Query completed marketplace sales on the Voi Network.
- Marketplace Deletes API: Query deleted marketplace listings on the Voi Network.
- Node.js 18 or later
- Supabase account
- PostgreSQL database with Mimir schema
- Clone the repository:
git clone https://github.com/xarmian/mimir-api.git
cd mimir-api- Install dependencies:
npm install- Create a
.envfile in the root directory:
PUBLIC_SUPABASE_URL=your-mimir-url
PUBLIC_SUPABASE_ANON_KEY=your-mimir-anon-key- Start the development server:
npm run devThe API will be available at http://localhost:5173.
For production deployment:
- Build the application:
npm run build- Start the production server:
npm startAPI Documentation can be found at https://voi-mainnet-mimirapi.voirewards.com.
We welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests (
npm test) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License.