account string, balance []byte) error { accountBytes, err := stub.GetState(account) if err !
跨链资产数据锁定义如下: type AccountLock struct { PreValue string CrossTXID string } 表1 跨链资产数据锁字段说明 字段 说明 PreValue 记录跨链交易开始前被锁定资产的数值,回滚时使用。
描述 error_code String 错误码 error_msg String 错误信息 状态码: 500 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息 请求示例 { "from_chaincode_id
String 链上信息 状态码: 400 表4 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息 状态码: 500 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码
shim.Error(err.Error()) } if balanceBytes == nil { return shim.Error("account not found: " + account) } balance, err := strconv.Atoi(string
参数 参数类型 描述 message String 响应信息 payload String 链上信息 状态码: 400 表4 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息 状态码: 500 表5 响应
that transfer units of one account to another account */ func (t *TCSExampleChaincode) commitSend(stub shim.ChaincodeStubInterface, args []string
shim.Error(err.Error()) } if balanceBytes == nil { return shim.Error("account not found: " + account) } balance, err := strconv.Atoi(string
The id of this transaction that transfer units of one account to another account */ func rollback(stub shim.ChaincodeStubInterface, txID string
that transfer units of one account to another account */ func (t *TCSExampleChaincode) commitRecv(stub shim.ChaincodeStubInterface, args []string
account string) error { // get account lock state with account lock's key accountLockKey := account + lockSuffix accountLockBytes, err :
that transfer units of one account to another account */ func (t *TCSExampleChaincode) rollbackSend(stub shim.ChaincodeStubInterface, args []string
that transfer units of one account to another account */ func (t *TCSExampleChaincode) rollbackRecv(stub shim.ChaincodeStubInterface, args []string
您即将访问非华为云网站,请注意账号财产安全