No Description

increment.py 433B

123456789101112131415
  1. from chainspaceapi import ChainspaceClient
  2. from chainspacecontract import ChainspaceContract
  3. from chainspacecontract.examples import increment
  4. client = ChainspaceClient()
  5. init_transaction = increment.init()
  6. client.process_transaction(init_transaction)
  7. chainspace_object = init_transaction['transaction']['outputs']
  8. increment_transaction = increment.increment(chainspace_object)
  9. client.process_transaction(increment_transaction)