MEME Network Whitepaper v1.0
MEME Network
  • MEME Network Whitepaper
  • 1. Market Overview
    • 1.1. Meme Culture
    • 1.2. NFT creation & trading
    • 1.3. Social-Fi
  • 2. MEME Network
    • 2.1. Mission
    • 2.2. MEME Art
      • 2.2.1 MEME Art Mainnet
      • 2.2.2 MEME Art DAO (coming soon)
      • 2.2.3 MEME Art Profile
    • 2.3. MEME Festival
    • 2.4. MEME Marketplace
    • 2.5 MEME Gift Card
    • 2.6 MEME Name Service
    • 2.7 MEME Wallet
    • 2.8 MEME Social Media Platform
  • 3. Roadmap
  • 4. Economy
    • 4.1. Initial Tokenomic
    • 4.2. MEME’s Liquidity Pool in OSMOSIS
    • 4.3. MEME’s Staking
    • 4.4. Content Creation & Heritage System
    • 4.5 Supply info api for Cosmos chain
  • 5. Technology
    • 5.1. Cosmos Layer 1
    • 5.2 Relayer
    • 5.3 Gravity Bridge
  • 6. Team
  • Others
    • Disclaimer
    • Abbreviations & Glossary
    • Blockchain Explorer
  • 🔗Official Platforms
    • Website
    • MEME Art
    • Twitter
    • Github
    • Discord
    • Medium
    • Trackers
      • Coingecko
      • Coinmarketcap
      • Crypto.com Price
Powered by GitBook
On this page
  • Supply info api
  • Other routes
  • environment variable
  • Source code
  1. 4. Economy

4.5 Supply info api for Cosmos chain

Previous4.4. Content Creation & Heritage SystemNext5. Technology

Last updated 1 year ago

Supply info api

This is an advanced supply information API for Cosmos Chain. I simplified the logic structure to improve efficiency and enable automatic switching in case of API_ENDPOINT failure.

This improves the reliability and stability of the supply information API by quickly switching to the next API_ENDPOINT when the first one fails.

{
  "apr": 68.31957987369881,
  "totalSupply": 11997255843.06718,
  "circulatingSupply": 11296519548.811697,
  "communityPool": 700723521.8232318,
  "totalStaked": "6146166417.423682",
  "bondedRatio": 0.5122982322886627,
  "denom": "MEME"
}

Other routes

- /v1/total-supply: returns total supply in plain text

- /v1/circulating-supply: returns circulating supply in plain text

- /v1/total-staked: returns total staked in plain text

- /v1/bonded-ratio: returns bonded ratio in plain text

- /v1/community-pool: returns community pool size in plain text

- /v1/apr: returns APR in plain text

- /v1/denom: returns denom in plain text

- /v1: JSON

How circulating supply is calculated

  1. Get total supply.

  2. Get community pool.

  3. Subtract community pool from total supply.

This yields the circulating supply.

environment variable

See .env.example for an example.

eg:

INTERVAL=120000 # if INTERVAL = 60000 = 60s cache, 
PORT=3010
API_ENDPOINT1=https://meme-api.polkachu.com
API_ENDPOINT2=https://api-meme-1.meme.sx
API_ENDPOINT3=https://meme.api.m.anode.team
COIN_DENOM=umeme
COIN_DECIMALS=6
DENOM=MEME

Source code

https://api-supply.memenetwork.io
GitHub - memecosmos/meme-supply-api: This is an advanced supply information API for Cosmos Chain. I simplified the logic structure to improve efficiency and enable automatic switching in case of API_ENDPOINT failure.GitHub
Logo