list_contracts

free


list_contracts returns all the details of all the smart contracts associated with your api_key

Send Data

Calling list_contracts takes the following variables:

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

Return Data

In response you'll receive an array containing the following information about your contracts

  • contract_name
  • contract_address
  • gas_consumed
  • transaction_contract
  • transaction_hash
[
  {
    contract_name:        "my_first_contract",
    contract_address:     "0x23632e32f3385b2a245c54905",
    gas_consumed:         "0.014712120000000000",
    transaction_contract:  1,
    transaction_hash:     "0x6432e32f3385b2a245c54905"
  },
  {
    contract_name:    "my_other_contract",
    contract_address: "0x45632e32f3385b2656a245c05",
    gas_consumed:         "0.014712120000000000",
    transaction_contract:  1,
    transaction_hash:     "0x6432e32f3385b2a245c54906"
  }
]

results matching ""

    No results matching ""