GetSupply

rpc GetSupply

participant.v1.GetSupplyRequest

Get a list of denomination counts of the digital banknotes held in the Treasury service's vault.

requests GetSupplyRequest

participant.v1.GetSupplyRequest

FieldTypeDescription
asset_codestringThe currency code of the requested supply.
verifierstring[MultibaseVerifier] Treasury verifier.

returns GetSupplyResponse

participant.v1.GetSupplyResponse

FieldTypeDescription
supply repeatedDenominationCountA list of denomination counts of the digital banknotes held in supply.
totalAmountgrand total sum of all promissories
{
  "supply": [
    {
      "denomination": {
        "asset_code": "USD",
        "amount": 2000,
        "decimals": 2
      },
      "count": 5,
      "total": {
        "asset_code": "USD",
        "amount": 10000,
        "decimals": 2
      }
    },
    {
      "denomination": {
        "asset_code": "USD",
        "amount": 1000,
        "decimals": 2
      },
      "count": 5,
      "total": {
        "asset_code": "USD",
        "amount": 5000,
        "decimals": 2
      }
    }
  ],
  "total": {
    "asset_code": "USD",
    "amount": 15000,
    "decimals": 2
  }
}