检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Property 参数说明 参数 类型 说明 value String 属性值。 description String 描述,为空不返回。 类型 示例 image video l 父主题: 数据结构
铸造数字资产 为指定资产集合铸造一个编号为tokenId的数字资产。 调用方法 public function mint(string $collectionIndex, string $tokenId, Metadata $tokenURI) throws Exception 参数说明
销毁数字资产 销毁资产集合编号为tokenId的数字资产。 调用方法 public function burn(string $collectionIndex, string $tokenId) throws Exception 参数说明 参数 类型 说明 collectionIndex
修改集合信息 创建者有权限修改集合的名称和缩写。 调用方法 public function setOption(string $collectionIndex, string $name, string $symbol) throws Exception 参数说明 参数 类型 说明
NFT 参数说明 属性 类型 说明 tokenId String 数字资产编号。同一集合内不能重复,取值范围[0,2^63)。 owner String 数字资产所有者身份标识。 approved String 授权用户身份标识。 tokenURI String 数字资产Meta信息。
ID 参数说明 属性 类型 说明 id String ERC1155接口中使用的用于标识资产集合中特定数字资产的参数,该参数由collectionIndex与tokenID通过一定方式拼接后生成。 父主题: 数据结构
ParentInfo 参数说明 属性 类型 说明 parentOwner string 父资产的所有者身份标识符,例如地址、数字资产标识。 parentCollectionIndex string 父资产的集合唯一标识符。 parentTokenID string 父资产的数字资产编号。
创建图片Metadata 工具方法,帮助生成metadata对象,获得对象后开发者可以自定义设置properties属性。 调用方法 public function newImageMetadata(string $data, string $name, string $url,
获取数字资产集合列表 根据集合标识查询集合名称。 调用方法 public function collections() throws Exception 参数说明 无 返回值 类型 说明 String[] 返回数字资产集合列表。 父主题: 通用接口
批量铸造数字资产 为指定资产集合批量铸造若干个从某一资产编号开始的同一数字资产。 调用方法 public function batchMint(string $collectionIndex, BatchMintData $batchMintData) throws Exception
MintResp 参数说明 属性 类型 说明 nft NFT 数字资产对象。 txid String 上链交易编号。 父主题: 数据结构
设置数字资产授权用户 指定某个数字资产的授权用户,授权用户拥有转移数字资产的权利。每个tokenId只可有一个授权用户。开发者可根据业务需要使用,例如设置代理操作员,无需所有者实时响应等。 调用方法 public function approve(string $collectionIndex
查询数字资产授权用户 查询某个数字资产的授权用户。 调用方法 public function getApproved(string $collectionIndex, string $tokenId) throws Exception 参数说明 参数 类型 说明 collectionIndex
拆分子资产给用户 将可组合资产中的子资产拆分转移给指定用户。 调用方法 public function transferChild(string $fromCollectionIndex, string $fromTokenId, string $to, string $childCollectionIndex
配置并切换用户 根据配置文件中的用户名,切换sdk当前使用的用户。 调用方法 public function switchIdentityWithName(string $identityName)throws Exception 参数说明 参数 类型 说明 identityName
生成数字资产标识 根据集合标识符和数字资产编号生成数字资产标识。 调用方法 public function generataID(string $collectionIndex, string $tokenId) throws Exception 参数说明 参数 类型 说明 collectionIndex
查询集合级授权用户 查询指定资产集合下,owner用户是否对operator开启授权。 调用方法 public function isApprovedForAll(string $collectionIndex, string $owner, string $operator) throws
设置集合级授权用户 在指定资产集合下,为用户设置授权用户。被授权用户拥有该集合下该用户的所有资产操作权限。 调用方法 public function setApprovalForAll(string $collectionIndex, string $owner, string $operator
查询数字资产描述信息 根据集合标识和内容标识符查询其metadata信息。 调用方法 public function uri(ID $id)throws Exception 参数说明 参数 类型 说明 id ID 必填参数,数字资产标识。 返回值 类型 说明 Metadata 数字资产对应的meta信息。
加入可组合资产 某一集合中数字资产的所有者或授权者将该资产加入指定集合中的可组合资产。 调用方法 public function getChild(string $from, string $toCollectionIndex, string $toTokenId, string