get_total_supply

free - reading from the blockchain is free!


get_total_supply is a free function that returns the sum of all balances in your contract

Send Data

Calling get_total_supply takes the following variables:

  • api_key
  • api_secret
  • contract_address
curl -XGET "https://api.happycha.in/get_total_supply" -d {
  api_key:          "YOUR_API_KEY",
  api_secret:       "YOUR_API_SECRET",
  contract_address: "YOUR_CONTRACT_ADDRESS"
}

Return Data

In response you'll receive JSON data containing the total_supply as an integer value

{total_supply: 50000}

results matching ""

    No results matching ""