【发布时间】:2018-03-12 08:36:54
【问题描述】:
我是超级账本的初学者。我想从汽车资产中检索所有数据,以便在超级账本作曲家的 javascript 文件中执行某些操作。我不需要一一输入资产汽车的ID。我该怎么办?
模型
participant Car identified by participant id{
o String id
o String name
}
asset CarAsset identified by id{
o String id
o String type
}
transaction CarTransaction{
--> UserAsset asset
//what can i do in here?
}
交易
function carTransaction(tx){
//what can i do in here?
}
【问题讨论】:
标签: hyperledger hyperledger-composer