遵义链
  1. 常见问题
遵义链
  • 遵义链
    • JAVA-SDK
      • BSN-遵义链
        • 快速入门
          • 概述
          • DDC合约协议标准
          • 开发准备
        • 常见问题
          • Failed to initialize a channel
          • PKIX path building failed
          • Invalid keystore format
          • to account is not a standard address format
          • the ddc account does not exist
          • Amount is less than 0, Please recharge.
          • 接口合约地址只能传参可以自己读配置文件吗
          • 刚铸造的 然后去查询就提示不存在
          • net.corda.core.internal.TransactionDeserialisationException
          • 转增这个返回值怎么理解
          • 铸造交易HASH获取
        • DDC-权限管理
          • 添加账户
          • 查询账户
          • 更新账户状态
        • DDC-721
          • 铸造
          • 转移
          • 销毁
          • 授权
          • 账户授权
          • 查询数量
          • 查询拥有者
          • 获取名称
          • 获取符号
          • 获取DDCURI
          • 交易记录
          • ddc列表
          • ddc查询
        • DDC-1155
          • 铸造
          • 批量铸造
          • 转移
          • 批量转移
          • 销毁
          • 批量销毁
          • 账户授权
          • 查询数量
          • 批量查询数量
          • 交易记录
          • ddc列表
          • ddc查询
        • DDC-交易查询
          • 交易事件
        • DDC-4907
          • 设置用户
          • 查询用户
          • 用户过期时间查询
        • DDC-Soulbound Token
          • 铸造
          • 销毁
          • 设置属性
          • 查询数量
          • 查询拥有者
          • 获取名称
          • 获取符号
          • 获取DDCURI
          • 获取属性
  1. 常见问题

转增这个返回值怎么理解

问题描述:#

{"errno":0,"data":"SignedTransaction(id=E1488C9D27E67DA07CEC2UU1E5772EF3CB11E87F2661C812CC0FECE935421D95)","errmsg":"Success"}
转增这个返回值怎么理解?文档没有描述

解决方案:#

E1488C9D27E67DA07CEC2UU1E5772EF3CB11E87F2661C812CC0FECE935421D95 就是交易hash
如果需要存储,这个需要做下字符串截取
val txHash = "SignedTransaction(id=E1488C9D27E67DA07CEC2UU1E5772EF3CB11E87F2661C812CC0FECE935421D95)"  
val substringBefore = StringUtils.substringAfter(txHash, "(id=")
        return StringUtils.substringBeforeLast(substringBefore, ")")
修改于 2022-10-13 03:13:53
上一页
net.corda.core.internal.TransactionDeserialisationException
下一页
铸造交易HASH获取
Built with