Slide 55
Slide 55 text
atomicTransactionエンドポイントのレスポンス例(失敗パターン)
{
"returnCode": "Failure",
"result": {
"transactions": [
{
"channel": "goods",
"chaincode": "obcs-marbles",
"txstatus": "Rolledback",
"prepare": {
"txid": "fe262233"
},
"commit": {},
"rollback": {
"txid": "badcb3b4"
},
},
(↗に続く)
{
"channel": "wallet",
"chaincode": "obcs-example02",
"txstatus": "FailedPrepare",
"prepare": {
"error": "failed to invoke chaincode. 'smith'
doesn’t have enough tokens to pay 'garcia'"
},
"commit": {},
"rollback": {
"error":"skipping rollback since prepare stage
has failed or was skipped"
}
}
],
"globalStatus": "Failure",
"globalTxid": "259910a26006",
…
55 Copyright © 2022, Oracle and/or its affiliates