Deliver\Receive proof

手动插入\接收指定证明文件

1.DeliverProof

DeliverProof(universeUrl, assetId, groupKey, scriptKey, outpoint string) 

将指定证明文件插入到目标宇宙中

arguments

universeUrl:目标宇宙url,可为空,默认会将证明文件插入服务器和主网宇宙。e.g("universerpc://127.0.0.1:10029")
assetId:资产id,必填
groupKey:资产组key,若不存在则填入空字符串
scriptKey:脚本key,必填
outpoint:资产锚定输出点,必填

return (标准json格式)

string:插入是否成功的信息,可忽略

2.DeliverIssuanceProof

DeliverIssuanceProof(assetId string)

将指定资产的发行证明文件插入到目标宇宙中

3.ReceiveProof

从指定宇宙中拉取指定的证明文件

4.ReadProof

读取指定的证明文件。该接口显示proof文件内容,由于prof文件内内容过多,且仅做展示用,所以只解析外层json,而作为嵌套的jsonstr作为字符串接收即可,无需解析。

5.QueyAssetProofs

拉取宇宙内该资产的proof文件的outpoint集合,用于比较本地和宇宙的proof文件差异。 主网:universerpc://132.232.109.84:8444 私链:universerpc://132.232.109.84:8443

Last updated