Skip to content

MetaHash Supply

ChMarina edited this page Jun 3, 2019 · 11 revisions

There is a Supply method in the MetaHash network that allows to get info about all the coins in the network. The method is as follows: http://app.metahash.io/api/stat/?method=supply. This method returns the current number of #MHC that are in circulation, total amount of all coins emitted as of today, the maximum possible amount of coins that can be emitted and other useful info.

Method calling

To request, you need to specify method=supply as GET parameter.

Request:

https://app.metahash.io/api/stat/?method=supply

Return:

The response returns as JSON as follows:

{
  "circulating_supply": "470676182",
  "circulating_supply_cmc": "391287347",
  "total_supply": "2863652445",
  "total_supply_decimals": "2863652445000000",
  "max_supply": "9200000000",
  "decimals": 6,
  "name": "MHC"
}

where

circulating_supply - Number of coins in circulation

circulating_supply_cmc - Number of coins in circulation (by CoinMarketCap)

total_supply - Number of all coins emitted

total_supply_decimals - Number of all coins emitted in micro units

max_supply - Maximum possible number of coins

decimals - Number of decimal places

name - Name of the currency

Calling the method specifying the field

If you want to return the value of a specific field, specify not only method=supply in GET params but also the name of the field, e.g.:

Request:

https://app.metahash.io/api/stat/?method=supply&field=circulating_supply_cmc  

Return:

391287347

where 391287347 - is the value of the requested field circulating_supply_cmc

Calling the method specifying the address

If you want to return the value of a specific address, specify not only method=supply in GET params but also the address of the wallet address, e.g.:

Request:

https://app.metahash.io/api/stat/?method=supply&address=0x000df8e341ea4911f012e12cba4e13755e3ef2bf91977370a8  

Return:

276000000000000