亿链 API 文档

witness ly


查询道具拥有者

<h3>应用场景</h3> <p>&gt; 查询道具拥有者的链账户地址</p> <hr /> <h3>接口定义</h3> <h4>接口URL</h4> <p>请求方法:<code>GET</code></p> <p>URI: <code>/chain/query/getOwner/{nftId}</code></p> <hr /> <h3>请求参数</h3> <table> <thead> <tr> <th>参数</th> <th>是否必填</th> <th>类型</th> <th>说明</th> <th>示例值</th> </tr> </thead> <tbody> <tr> <td>nftId</td> <td>是</td> <td>String</td> <td>道具的唯一标识,保证已被铸造,为&quot;123&quot;数字字符串 或者 &quot;0x&quot;开头的16进制字符串)</td> <td>&quot;123&quot;, &quot;0x1A&quot;</td> </tr> </tbody> </table> <h3>请求参数示例</h3> <pre><code class="language-text">http://localhost:8888/chain/query/getOwner/123</code></pre> <hr /> <h3>响应参数</h3> <table> <thead> <tr> <th>参数</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>响应码</td> </tr> <tr> <td>message</td> <td>成功</td> </tr> <tr> <td>data</td> <td></td> </tr> <tr> <td>&amp;ensp;&amp;ensp;owner</td> <td>NFT拥有者的链账户地址</td> </tr> </tbody> </table> <h3>响应参数示例</h3> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: &amp;quot;EC000000&amp;quot;, &amp;quot;message&amp;quot;: &amp;quot;成功&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;owner&amp;quot;: &amp;quot;0x21dbb10c42c5caed715edf976396e1cdf7973a63&amp;quot; } }</code></pre>

页面列表

ITEM_HTML