跳到主要内容

树图链接口

创建链地址(账户)

接口说明:通过名字创建链地址

请求方式:POST

请求路径: /conflux-rainbow/account/create

请求业务参数:

参数名参数类型是否必填参数说明
chainstring链标识,值为conflux
namestring手机号

返回业务参数:

参数名参数类型参数说明
address_confluxstring已创建链地址

创建NFT类别

接口说明:创建NFT类别

请求方式:POST

请求路径:/conflux-rainbow/nft/class/create

请求业务参数:

参数名参数类型是否必填参数说明
chainstring链标识,值为conflux
namestring类别名称
ownerstring类别拥有者
symbolstring类别标识

返回业务参数:

参数名参数类型参数说明
class_idstring创建的class_id

铸造NFT

接口说明: 铸造NFT

请求方式:POST

请求路径: /conflux-rainbow/nft/create

请求业务参数:

参数名参数类型是否必填参数说明
chainstring链标识,值为conflux
class_idstring分类ID
namestring名称
imagestring图片地址
descriptionstring描述
addressstring铸造者链地址
recipientstring接收者链地址

返回业务参数:

参数名参数类型参数说明
token_idstring创建tokenID
hashstring创建哈希

转移NFT

接口说明: 转移NFT

请求方式:POST

请求路径:/conflux-rainbow/nft/transfer

请求参数:

参数名参数类型是否必填参数说明
chainstring链标识,值为conflux
class_idstringNFT分类ID
ownerstringNFT所有者链地址
nft_id:stringNFT的Id
recipientstringNFT接收者链地址

返回业务参数:

参数名参数类型参数说明
hashstring转移哈希

销毁NFT

接口说明: 销毁NFT

请求方式:POST

请求路径:/conflux-rainbow/nft/burn

请求业务参数:

参数名参数类型是否必填参数说明
chainstring链标识,值为conflux
class_idstringNFT分类ID
ownerstringNFT拥有者链地址
nft_idstringNFT的id

返回业务参数:

参数名参数类型参数说明
hashstring销毁哈希