CTP info and actions

POST <base_url>/info

with parameter:

  • contract: base64 of the packed contract

retuns common response like:

{
  "ctpId": "secure_loan",
  "ctpName": "superbank",
  "contractStatus": "in_progress",
  "actions": {
    "repay": {
      "name": "repay contract",
      "description": "return the loan and the interest",
      "roles": [
        "borrower"
      ]
    }
  },
  "status": "OK"
}

Some notes

  • action.roles mean who can perform this action, e.g. must sign the revision