Skip to content

xarmian/mimir-api

Repository files navigation

Mimir API

Mimir API provides a suite of services for the Voi Network, helping developers build applications with easy access to chain data.

Available APIs

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.

Running Your Own Instance

Prerequisites

  • Node.js 18 or later
  • Supabase account
  • PostgreSQL database with Mimir schema

Setup

  1. Clone the repository:
git clone https://github.com/xarmian/mimir-api.git
cd mimir-api
  1. Install dependencies:
npm install
  1. Create a .env file in the root directory:
PUBLIC_SUPABASE_URL=your-mimir-url
PUBLIC_SUPABASE_ANON_KEY=your-mimir-anon-key
  1. Start the development server:
npm run dev

The API will be available at http://localhost:5173.

Production Deployment

For production deployment:

  1. Build the application:
npm run build
  1. Start the production server:
npm start

API Documentation

API Documentation can be found at https://voi-mainnet-mimirapi.voirewards.com.

Contributing

We welcome contributions! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests (npm test)
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

License

This project is licensed under the MIT License.

About

API Playground end Endpoints for the MIMIR Indexer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors