balance_of

free - reading from the blockchain is free!


balance_of is a free function that returns the balance associated with your user's ID

Send Data

Calling balance_of takes the following variables:

  • api_key
  • api_secret
  • contract_address
  • of_user
curl -XGET "https://api.happycha.in/balance_of" -d {
  api_key:          "YOUR_API_KEY",
  api_secret:       "YOUR_API_SECRET",
  contract_address: "YOUR_CONTRACT_ADDRESS",
  of_user:          "USER'S ID"
}

Return Data

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

{balance: 50}

results matching ""

    No results matching ""