检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
SDK概述 数字资产链开发工具包(DAC SDK,Digital Asset Chain Software Development Kit)是对DAC服务提供的REST API进行的封装,以简化用户的开发工作。目前提供40+业务和工具接口。用户在开发时只需要关注自己的业务逻辑,调用相应接口封装并发送消息即可
查找子资产的根所有者 遍历查询子资产的父所有者,获得子资产的根所有者。 调用方法 public function rootOwnerOfChild(string $childCollectionIndex, string $childTokenId) throws Exception
查询数字资产授权用户 查询某个数字资产的授权用户。 调用方法 public String getApproved(String collectionIndex, String tokenId) throws Exception 参数说明 参数 类型 说明 collectionIndex
查询数字资产所有者 根据集合标识和资产标识符查询其所有者。 调用方法 public function ownerOf(string $collectionIndex, string $tokenId) throws Exception 参数说明 参数 类型 说明 collectionIndex
查询数字资产所有者 根据集合标识和数字资产标识符查询其所有者。 调用方法 OwnerOf(collectionIndex, tokenId string)(string, error) 参数说明 参数 类型 说明 collectionIndex String 必填参数,集合唯一标识符
查询可组合资产的根所有者 遍历查询可组合资产的父所有者,获得可组合资产的根所有者。 调用方法 RootOwnerOf(collectionIndex, tokenId string)(string,error) 参数说明 参数 类型 说明 collectionIndex string
查询数字资产授权用户 根据集合标识和数字资产标识符查询某个数字资产的授权用户。 调用方法 GetApproved(collectionIndex, tokenId string) (string, error) 参数说明 参数 类型 说明 collectionIndex String
查找子资产的根所有者 遍历查询子资产的父所有者,获得子资产的根所有者。 调用方法 public String rootOwnerOfChild(String childCollectionIndex, String childTokenId) throws Exception 参数说明
查询可组合资产的根所有者 遍历查询可组合资产的父所有者,获得可组合资产的根所有者。 调用方法 public function rootOwnerOf(string $collectionIndex, string $tokenId) throws Exception 参数说明 参数
设置数字资产授权用户 指定某个数字资产的授权用户,授权用户拥有转移数字资产的权利。每个tokenId只可有一个授权用户。开发者可根据业务需要使用,例如设置代理操作员,无需所有者实时响应等。 调用方法 public function approve(string $collectionIndex
查找子资产的父所有者信息 根据子资产的集合标识和资产编号查询其父所有者的信息。 调用方法 OwnerOfChild(childCollectionIndex, childTokenId string)(string,string,string,error) 参数说明 参数 类型 说明
查找子资产的根所有者 遍历查询子资产的父所有者,获得子资产的根所有者。 调用方法 RootOwnerOfChild(childCollectionIndex, childTokenId string)(string,error) 参数说明 参数 类型 说明 childCollectionIndex
查询可组合资产的根所有者 遍历查询可组合资产的父所有者,获得可组合资产的根所有者。 调用方法 public String rootOwnerOf(String collectionIndex, String tokenId) throws Exception 参数说明 参数 类型
设置数字资产授权用户 指定某个数字资产的授权用户,授权用户拥有转移数字资产的权利。每个tokenId只可有一个授权用户。开发者可根据业务需要使用,例如设置代理操作员,无需所有者实时响应等。 调用方法 Approve(collectionIndex, operator, tokenId
设置数字资产授权用户 指定某个数字资产的授权用户,授权用户拥有转移数字资产的权利。每个tokenId只可有一个授权用户。开发者可根据业务需要使用,例如设置代理操作员,无需所有者实时响应等。 调用方法 public String approve(String collectionIndex
拆分子资产给用户 将可组合资产中的子资产拆分转移给指定用户。 调用方法 public String transferChild(String fromCollectionIndex, String fromTokenId, String to, String childCollectionIndex
拆分子资产给用户 将可组合资产中的子资产拆分转移给指定用户。 调用方法 public function transferChild(string $fromCollectionIndex, string $fromTokenId, string $to, string $childCollectionIndex
加入可组合资产 某一集合中数字资产的所有者或授权者将该资产加入指定集合中的可组合资产。 调用方法 public function getChild(string $from, string $toCollectionIndex, string $toTokenId, string
加入可组合资产 某一集合中数字资产的所有者或授权者将该资产加入指定集合中的可组合资产。 调用方法 GetChild(from, toCollectionIndex, toTokenId, childCollectionIndex, childTokenId string)(string
拆分子资产给用户 将可组合资产中的子资产拆分转移给指定用户。 调用方法 TransferChild(fromCollectionIndex, fromTokenId, to, childCollectionIndex, childTokenId string)(string,error