Transaction Types

Transaction types are a functionality provided by Coiin EAL to give the user direct control over the transactions added to their blockchain. By design, the chain will not accept any transactions unless attached to a registered transaction type on that business chain. Transactions can be grouped logically using this feature, allowing the user to index data for more precise and efficient search functionality within their applications and systems.

Creating Transaction Types

Transaction types can be created with coiin and used to group transaction data by type or function.

$ coiin transactionType create "my-transaction-type"
{
  "status": 200,
  "response": {
    "success": true
  },
  "ok": true
}

After creating a transaction type, it can be used in transactions.

$ coiin transaction create "my-transaction-type" '{ "banana": 4 }'
{
  "status": 201,
  "response": {
    "transaction_id": "b09ef198-7bb9-40c4-990b-097b3bac93c5"
  },
  "ok": true
}