Ampleforth API

TokenInfo

The TokenInfo API retrieves the token supply, oracle values, and most recent rebase information from the ethereum blockchain.

  fetch("https://service-api.fragments.org/ampl-token-info");

  # Example RESPONSE
  {
    "addresses": {
      "tokenContract": "0xd46ba6d942050d489dbd938a2c909a5d5039a161",
      "policy": "0x1B228a749077b8e307C5856cE62Ef35d96Dca2ea",
      "nonCirculatingWallets": [
        "0xb22eD4BEC314D475A8782E0b6869f0144D46859C",
        "0xf0D611B2610352600F7055e418E547e1c956c046",
        "0xbdb30Cf89eFdd8C7410d9b3d0De04bC41B962770",
        "0x89Fe954538a92Eca58AdaEc339cA6374AF079a13"
      ]
    },
    "supplyInfo": {
      "circulatingSupply": "2192081.74300525",
      "totalSupply": "22199570.676459867",
      "lockedBalance": "20007488.933454617"
    },
    "oracleInfo": {
      "amplUSDRate": "0.511837458789565538",
      "cpiAdjustedTargetRate": "1.00589770593891653644"
    },
    "rebaseInfo": {
      "epoch": "112",
      "currentSupply": "22199570.676459867",
      "previousSupply": "22569074.199232656",
      "precentageChange": "-1.63721169734712488",
      "appliedSupplyAdjustment": "-369503.522772789",
      "targetRateAtRebase": "1.00589770593891653644",
      "marketRateAtRebase": "0.511837458789565538"
    }
  }