Supply

TotalSupply queries the total supply of all coins.

GET/cosmos/bank/v1beta1/supply
Query parameters
Response

A successful response.

Body
supplysupply is the supply of the coins
paginationobject

pagination defines the pagination in the response.

Since: cosmos-sdk 0.43

Request
const response = await fetch('/cosmos/bank/v1beta1/supply', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "supply": [
    {
      "denom": "text",
      "amount": "text"
    }
  ],
  "pagination": {
    "next_key": "Ynl0ZXM=",
    "total": "text"
  }
}

SupplyOf queries the supply of a single coin.

GET/cosmos/bank/v1beta1/supply/{denom}
Path parameters
denom*string

denom is the coin denom to query balances for.

Response

A successful response.

Body
amountobject

Coin defines a token with a denomination and an amount.

NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto.

Request
const response = await fetch('/cosmos/bank/v1beta1/supply/{denom}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "amount": {
    "denom": "text",
    "amount": "text"
  }
}

Last updated