set_balance

paid - writing to the blockchain costs Ether


set_balance sets the balance of a specific user to a given value

Send Data

Calling set_balance takes the following variables:

  • api_key
  • api_secret
  • contract_address
  • of_user
  • value
curl -XPOST "https://api.happycha.in/withdraw" -d {
    api_key:          "YOUR_API_KEY",
    api_secret:       "YOUR_API_SECRET",
    contract_address: "YOUR_CONTRACT_ADDRESS",
    of_user:          "USER_ID",
    value:            10
  }

Return Data

In response you'll receive the transaction_hash of your deposit

  • transaction_hash

Be sure to hold onto your contract_address as you'll need it to call contract functions

{transaction_hash: "0x23632e32f3385b2a245c54905"}

results matching ""

    No results matching ""