deposit

paid - writing to the blockchain costs Ether


deposit increases the balance of a user by a set value

Send Data

Calling deposit takes the following variables:

  • api_key
  • api_secret
  • contract_address
  • to_user
  • value
curl -XPOST "https://api.happycha.in/deposit" -d {
    api_key:          "YOUR_API_KEY",
    api_secret:       "YOUR_API_SECRET",
    contract_address: "YOUR_CONTRACT_ADDRESS",
    to_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 ""