I'd like to publish the current number of Ether sold on my site, is there an API call I can make to get that info the same way ethereum.org is getting it? I can get the BTC value from blockchain, but soon the number of Ether will no longer be simply BTC*2000.
0 ·
Comments
How about just implementing such a linear function on your website based on the given timeframes of the sale and the current timestamp? ...perhaps it's not that accurate but should be close enough...perhaps ethreum team wants to disclosure the exact function??
var u = "36PrZ1KHYMpqSyAQXSG8VwbUiq2EogxLo2"; var m = 1e8; $.ajax({ type: "GET", url: BLOCKCHAIN_URL + "/q/getreceivedbyaddress/" + u + "?cors=true&api_code=" + BLOCKCHAIN_API, crossDomain: !0, success: function(e) { var t = Math.round(parseInt(e, 10)); $("#total-sold-container .total").text(numeral(2e3 * t / m).format("0,0")) }, error: function(e) { console.log("ERROR:", e) });