-
Notifications
You must be signed in to change notification settings - Fork 2
Ampleforth API
Nithin Krishna edited this page Apr 26, 2021
·
5 revisions
The TokenInfo API retrieves the token supply, oracle values, and most recent rebase information from the ethereum blockchain.
fetch("https://web-api.ampleforth.org/eth/token-info");
// Example RESPONSE
{
"epoch":667,
"addresses":{
"tokenContract":"0xD46bA6D942050d489DBd938a2C909A5d5039A161",
"policy":"0x1B228a749077b8e307C5856cE62Ef35d96Dca2ea",
"orchestrator":"0x6FB00a180781E75F87E2B690Af0196bAa77C7e7C",
"nonCirculatingWallets":[
"0xb22eD4BEC314D475A8782E0b6869f0144D46859C",
"0xf0D611B2610352600F7055e418E547e1c956c046",
"0xbdb30Cf89eFdd8C7410d9b3d0De04bC41B962770",
"0x89Fe954538a92Eca58AdaEc339cA6374AF079a13"
]
},
"constants":{
"decimals":9,
"name":"Ampleforth",
"symbol":"AMPL",
"baseCpi":109.19500000000001
},
"policyParams":{
"rebaseWindowOffsetSec":7200,
"rebaseWindowLengthSec":1200,
"minRebaseTimeSec":86400,
"deviationTresholdPerc":0.05
},
"lastRebaseInfo":{
"epoch":667,
"totalSupply":381712122.95073426,
"previousSupply":376712598.0702385,
"precentageChange":1.3271456558943129,
"appliedSupplyAdjustment":4999524.880495785,
"targetRateAtRebase":1.0283559992063127,
"marketRateAtRebase":1.1648338189122645,
"timestampSec":1619402443
},
"nextRebaseTimeSec":1619488800,
"supplyInfo":{
"totalSupply":381712122.95073426,
"circulatingSupply":323139407.8684884,
"lockedBalance":58572715.08224589
}
}