paid - writing to the blockchain costs Ether

create_contract writes a solidity smart-contract to the blockchain for you and returns the address and other information

Send Data

Calling create_contract takes the following variables:

  • api_key
  • api_secret
  • contract_name
  • contract_type ("coin" or "notes")
curl -XPOST ""-d {
  api_key:          "YOUR_API_KEY",
  api_secret:       "YOUR_API_SECRET",
  contract_name:    "YOUR_CONTRACT_NAME",
  contract_type:    "coin"

Return Data

In response you'll receive the following information about your new contract

  • contract_address

  • transaction_hash

  • json_api

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

  contract_address: "0x23632e32f3385b2a245c54905",
  transaction_hash: "0x23632e32f3523b2a245ce0893",
  json_api: {...}

results matching ""

    No results matching ""