{"id":2508,"date":"2022-08-16T23:45:37","date_gmt":"2022-08-16T15:45:37","guid":{"rendered":"http:\/\/home.wangjianshuo.com\/cn\/?p=2508"},"modified":"2022-08-16T23:45:37","modified_gmt":"2022-08-16T15:45:37","slug":"%e4%b9%b0-nft%ef%bc%8c%e5%ae%9e%e9%99%85%e6%98%af%e5%9c%a8%e4%b9%b0%e4%bb%80%e4%b9%88%ef%bc%9f%e4%bb%8e%e5%ba%95%e5%b1%82%e4%bb%a3%e7%a0%81%e8%a7%86%e8%a7%92%e7%9a%84%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/home.wangjianshuo.com\/cn\/20220816_%e4%b9%b0-nft%ef%bc%8c%e5%ae%9e%e9%99%85%e6%98%af%e5%9c%a8%e4%b9%b0%e4%bb%80%e4%b9%88%ef%bc%9f%e4%bb%8e%e5%ba%95%e5%b1%82%e4%bb%a3%e7%a0%81%e8%a7%86%e8%a7%92%e7%9a%84%e5%88%86%e6%9e%90.htm","title":{"rendered":"\u4e70 NFT\uff0c\u5b9e\u9645\u662f\u5728\u4e70\u4ec0\u4e48\uff1f\u4ece\u5e95\u5c42\u4ee3\u7801\u89c6\u89d2\u7684\u5206\u6790"},"content":{"rendered":"<div id=\"wechat\">\n<p><span style=\"color: rgb(255, 0, 0);\">0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D<\/span>\u00a0<\/p>\n<p>\u8fd9\u4e32\u4e71\u7801\u662f\u4ec0\u4e48\uff1f<\/p>\n<p>\u8fd9\u4e2a 42 \u4e2a\u5b57\u6bcd\u7ec4\u6210\u7684\u5b57\u7b26\u4e32\uff0c\u5176\u5b9e\u662f\u4e00\u4e2a\u5730\u5740\uff0c\u5b58\u5728\u4ee5\u592a\u574a\u90a3\u4e2a\u5168\u7403\u6240\u6709\u4eba\u516c\u7528\u7684\u5927\u8868\u4e0a\u3002\u8fd9\u4e2a\u795e\u79d8\u7684\u5730\u5740\u91cc\u5b58\u7740\u4ec0\u4e48\u5462\uff1f\u6211\u4eec<span style='caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, \"Helvetica Neue\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei UI\", \"Microsoft YaHei\", Arial, sans-serif;font-size: 17px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: auto;text-align: justify;text-indent: 0px;text-transform: none;widows: auto;word-spacing: 0px;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;text-decoration: none;display: inline !important;float: none;'>\u7528 web3js \u7684<\/span><span style='caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, \"Helvetica Neue\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei UI\", \"Microsoft YaHei\", Arial, sans-serif;font-size: 17px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: auto;text-align: justify;text-indent: 0px;text-transform: none;widows: auto;word-spacing: 0px;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;text-decoration: none;display: inline !important;float: none;'>\u4ee3\u7801 getCode<\/span><span style='caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, \"Helvetica Neue\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei UI\", \"Microsoft YaHei\", Arial, sans-serif;font-size: 17px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: auto;text-align: justify;text-indent: 0px;text-transform: none;widows: auto;word-spacing: 0px;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;text-decoration: none;display: inline !important;float: none;'>\u00a0\u53bb\u62ff\u4e00\u4e0b\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">\/\/ use `npm install web3` to install web3<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">const<\/span> Web3 = <span class=\"code-snippet__built_in\">require<\/span>(<span class=\"code-snippet__string\">'Web3'<\/span>);<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">const<\/span> web3 = <span class=\"code-snippet__keyword\">new<\/span> Web3(<span class=\"code-snippet__string\">\"https:\/\/mainnet.infura.io\/v3\/593eb6ca2f004e8eae398e0d77283dc9\"<\/span>);<\/span><\/code><code><span class=\"code-snippet_outer\"><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">const<\/span> ADDRESS  = <span class=\"code-snippet__string\">'0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">web3.eth.getCode(ADDRESS).then(<span class=\"code-snippet__built_in\">console<\/span>.log)<\/span><\/code><\/pre>\n<\/section>\n<p>\u5f97\u5230\u4e86\u5982\u4e0b\u4e00\u5806\u6570\u5b57\uff08\u4e3a\u4e86\u7b80\u5316\uff0c\u6211\u6ca1\u6709\u628a\u5f88\u957f\u7684\u6570\u5b57\u5168\u62f7\u8d1d\u8fc7\u6765\uff09\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"css\"><code><span class=\"code-snippet_outer\">0<span class=\"code-snippet__selector-tag\">x60806040526004361061021a57600<\/span>....<span class=\"code-snippet__selector-class\">.6f6c63430007000033<\/span><\/span><\/code><\/pre>\n<\/section>\n<p>\u8fd9\u4e00\u5806\u6570\u5b57\u53c8\u662f\u4ec0\u4e48\u5462\uff1f\u8fd9\u5c31\u662f\u4ee3\u7801\u3002\u53ea\u4e0d\u8fc7\u8fd9\u662f\u673a\u5668\u53ef\u4ee5\u8bfb\u5f97\u61c2\u7684 OPCODE\uff0c\u5927\u5bb6\u7b80\u5355\u5730\u7406\u89e3\u4e3a\u6c47\u7f16\u8bed\u8a00\u597d\u4e86\u3002\u76f4\u63a5\u7ffb\u8bd1\u6210\u4eba\u53ef\u4ee5\u770b\u61c2\u4e00\u70b9\u70b9\u7684\u4ee3\u7801\u5c31\u662f\u4e0b\u9762\u8fd9\u4e2a\u6837\u5b50\u7684\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"properties\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attr\">PUSH1<\/span> <span class=\"code-snippet__string\">0x80<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attr\">PUSH1<\/span> <span class=\"code-snippet__string\">0x40<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attr\">MSTORE<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attr\">PUSH1<\/span> <span class=\"code-snippet__string\">0x04<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attr\">CALLDATASIZE<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attr\">LT<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attr\">PUSH2<\/span> <span class=\"code-snippet__string\">0x021a<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attr\">JUMPI<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attr\">...<\/span><\/span><\/code><\/pre>\n<\/section>\n<p>\u4ece\u8fd9\u4e2a\u89d2\u5ea6\u6765\u8bf4\uff0c\u6211\u4eec\u53ef\u4ee5\u628a\u4ee5\u592a\u574a\u7406\u89e3\u6210\u4e00\u4e2a Github\uff0c\u5927\u5bb6\u628a\u81ea\u5df1\u7684\u4ee3\u7801\u7f16\u8bd1\u4ee5\u540e\uff0c\u653e\u5230\u4e00\u4e2a\u5730\u5740\u53bb\u3002\u4efb\u4f55\u4eba\u90fd\u53ef\u4ee5\u628a\u8fd9\u4e2a\u4ee3\u7801\u62ff\u4e0b\u6765\uff08Github \u53eb\u505a clone \u4e0b\u6765\uff09\u6267\u884c\u3002<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u6267\u884c\u8fd9\u4e2a\u4ee3\u7801\u91cc\u9762\u7684\u51fd\u6570\u3002\u5728\u5176\u4e2d\u7684\u5341\u51e0\u4e2a\u51fd\u6570\u91cc\u9762\uff08\u8fd9\u4e2a\u51fd\u6570\u7684\u5217\u8868\u5c31\u662f ERC721 \u89c4\u5b9a\u7684\u5927\u5bb6\u90fd\u7528\u7684\uff09\uff0c\u6211\u5c31\u5bf9\u4e09\u4e2a\u51fd\u6570\u611f\u5174\u8da3\uff1a<span style=\"color: rgb(255, 0, 0);\">totalSupply<\/span>()\uff0c<span style=\"color: rgb(255, 0, 0);\">symbol<\/span>()\uff0c\u00a0\u8fd8\u6709 <span style=\"color: rgb(255, 0, 0);\">tokenURI<\/span>()\u3002<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">\/\/ use `npm install web3` to install web3<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">const<\/span> Web3 = <span class=\"code-snippet__built_in\">require<\/span>(<span class=\"code-snippet__string\">'Web3'<\/span>);<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">\/\/ please use your own ID since this one may be deleted later<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">const<\/span> API = <span class=\"code-snippet__string\">\"https:\/\/mainnet.infura.io\/v3\/593eb6ca2f004e8eae398e0d77283dc9\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">const<\/span> web3 = <span class=\"code-snippet__keyword\">new<\/span> Web3(API);<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">const<\/span> APE_CONTRACT = <span class=\"code-snippet__string\">'0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><\/span><\/code><code><span class=\"code-snippet_outer\">web3.eth.getCode(APE_CONTRACT).then(<span class=\"code-snippet__built_in\">console<\/span>.log)<\/span><\/code><code><span class=\"code-snippet_outer\"><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">const<\/span> ABI = [<\/span><\/code><code><span class=\"code-snippet_outer\">    {<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"name\"<\/span>: <span class=\"code-snippet__string\">\"totalSupply\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"type\"<\/span>: <span class=\"code-snippet__string\">\"function\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"inputs\"<\/span>: [],<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"outputs\"<\/span>: [{ <span class=\"code-snippet__string\">\"name\"<\/span>: <span class=\"code-snippet__string\">\"\"<\/span>, <span class=\"code-snippet__string\">\"type\"<\/span>: <span class=\"code-snippet__string\">\"uint256\"<\/span> }],<\/span><\/code><code><span class=\"code-snippet_outer\">    },<\/span><\/code><code><span class=\"code-snippet_outer\">    {<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"name\"<\/span>: <span class=\"code-snippet__string\">\"symbol\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"type\"<\/span>: <span class=\"code-snippet__string\">\"function\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"inputs\"<\/span>: [],<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"outputs\"<\/span>: [{ <span class=\"code-snippet__string\">\"name\"<\/span>: <span class=\"code-snippet__string\">\"\"<\/span>, <span class=\"code-snippet__string\">\"type\"<\/span>: <span class=\"code-snippet__string\">\"string\"<\/span> }],<\/span><\/code><code><span class=\"code-snippet_outer\">    },<\/span><\/code><code><span class=\"code-snippet_outer\">    {<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"name\"<\/span>: <span class=\"code-snippet__string\">\"tokenURI\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"type\"<\/span>: <span class=\"code-snippet__string\">\"function\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"inputs\"<\/span>: [{ <span class=\"code-snippet__string\">\"name\"<\/span>: <span class=\"code-snippet__string\">\"tokenId\"<\/span>, <span class=\"code-snippet__string\">\"type\"<\/span>: <span class=\"code-snippet__string\">\"uint256\"<\/span> }],<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"outputs\"<\/span>: [{ <span class=\"code-snippet__string\">\"name\"<\/span>: <span class=\"code-snippet__string\">\"\"<\/span>, <span class=\"code-snippet__string\">\"type\"<\/span>: <span class=\"code-snippet__string\">\"string\"<\/span> }],<\/span><\/code><code><span class=\"code-snippet_outer\">    }<\/span><\/code><code><span class=\"code-snippet_outer\">]<\/span><\/code><code><span class=\"code-snippet_outer\"><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">const<\/span> contract = <span class=\"code-snippet__keyword\">new<\/span> web3.eth.Contract(ABI, APE_CONTRACT)<\/span><\/code><code><span class=\"code-snippet_outer\"><\/span><\/code><code><span class=\"code-snippet_outer\">contract.methods.totalSupply().call().then(<span class=\"code-snippet__built_in\">console<\/span>.log)<\/span><\/code><code><span class=\"code-snippet_outer\">contract.methods.symbol().call().then(<span class=\"code-snippet__built_in\">console<\/span>.log)<\/span><\/code><code><span class=\"code-snippet_outer\">contract.methods.tokenURI(<span class=\"code-snippet__number\">1<\/span>).call().then(<span class=\"code-snippet__built_in\">console<\/span>.log)<\/span><\/code><code><span class=\"code-snippet_outer\"><\/span><\/code><\/pre>\n<\/section>\n<p>\u6267\u884c\u5f97\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__number\">10000<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">BAYC<\/span><\/code><code><span class=\"code-snippet_outer\">ipfs:<span class=\"code-snippet__comment\">\/\/QmeSjSinHpPnmXmspMjwiXyN6zS4E9zccariGR3jxcaWtq\/1<\/span><\/span><\/code><\/pre>\n<\/section>\n<p>\u5206\u522b\u662f\u8fd9\u4e2a\u5408\u7ea6\u7684\u603b\u53d1\u884c\u91cf\uff0cToken\u7684\u7b80\u5199\uff0c\u4ee5\u53ca 1 \u53f7 token \u7684\u5730\u5740\u3002<\/p>\n<p>\u6211\u4eec\u63a5\u7740\u5982\u798f\u5c14\u6469\u65af\u4e00\u6837\u8ddf\u8e2a 1 \u53f7 Token \u7684 tokenURI \u51fd\u6570\u8fd4\u56de\u7684\u5730\u5740\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\">ipfs:<span class=\"code-snippet__comment\">\/\/QmeSjSinHpPnmXmspMjwiXyN6zS4E9zccariGR3jxcaWtq\/1<\/span><\/span><\/code><\/pre>\n<\/section>\n<p>\u8fd9\u4e2a\u5730\u5740\u662f\u4e00\u4e2a\u666e\u901a\u7684\u4e92\u8054\u7f51\u5730\u5740\uff0c\u6216\u8005 IPFS \u5730\u5740\u3002IPFS \u5730\u5740\u662f\u53e6\u5916\u7684\u8bdd\u9898\u4e86\uff0c\u4e0d\u5c55\u5f00\uff0c\u7b80\u5355\u5730\u8bf4\uff0c\u53ef\u4ee5\u628a<span style=\"color: rgb(255, 0, 0);\"> ipfs:\/\/ <\/span>\u66ff\u6362\u6210 <span style=\"color: rgb(255, 0, 0);\">https:\/\/ipfs.io\/ipfs\/<\/span> \u5c31\u53ef\u4ee5\u8f6c\u6362\u6210\u666e\u901a\u7684\u4e92\u8054\u7f51\u7f51\u5740\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\">https:<span class=\"code-snippet__comment\">\/\/ipfs.io\/ipfs\/QmeSjSinHpPnmXmspMjwiXyN6zS4E9zccariGR3jxcaWtq\/1<\/span><\/span><\/code><\/pre>\n<\/section>\n<p>\u8bbf\u95ee\u8fd9\u4e2a\u5730\u5740\uff0c\u5f97\u5230\u5982\u4e0b\u4e00\u4e2a\u63cf\u8ff0\u6587\u4ef6<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"json\"><code><span class=\"code-snippet_outer\">{<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">\"image\"<\/span>: <span class=\"code-snippet__string\">\"ipfs:\/\/QmPbxeGcXhYQQNgsC6a36dDyYUcHgMLnGKnF8pVFmGsvqi\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">\"attributes\"<\/span>: [<\/span><\/code><code><span class=\"code-snippet_outer\">        {<\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__attr\">\"trait_type\"<\/span>: <span class=\"code-snippet__string\">\"Mouth\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__attr\">\"value\"<\/span>: <span class=\"code-snippet__string\">\"Grin\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        },<\/span><\/code><code><span class=\"code-snippet_outer\">        {<\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__attr\">\"trait_type\"<\/span>: <span class=\"code-snippet__string\">\"Clothes\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__attr\">\"value\"<\/span>: <span class=\"code-snippet__string\">\"Vietnam Jacket\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        },<\/span><\/code><code><span class=\"code-snippet_outer\">        {<\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__attr\">\"trait_type\"<\/span>: <span class=\"code-snippet__string\">\"Background\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__attr\">\"value\"<\/span>: <span class=\"code-snippet__string\">\"Orange\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        },<\/span><\/code><code><span class=\"code-snippet_outer\">        {<\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__attr\">\"trait_type\"<\/span>: <span class=\"code-snippet__string\">\"Eyes\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__attr\">\"value\"<\/span>: <span class=\"code-snippet__string\">\"Blue Beams\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        },<\/span><\/code><code><span class=\"code-snippet_outer\">        {<\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__attr\">\"trait_type\"<\/span>: <span class=\"code-snippet__string\">\"Fur\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__attr\">\"value\"<\/span>: <span class=\"code-snippet__string\">\"Robot\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        }<\/span><\/code><code><span class=\"code-snippet_outer\">    ]<\/span><\/code><code><span class=\"code-snippet_outer\">}<\/span><\/code><\/pre>\n<\/section>\n<p>\u9664\u4e86\u5404\u79cd\u7c7b\u578b\u7684\u63cf\u8ff0\u4ee5\u5916\uff0c\u6211\u4eec\u6700\u611f\u5174\u8da3\u7684\uff0c\u662f <span style=\"color: rgb(255, 0, 0);\">image<\/span> \u8fd9\u4e2a\u5c5e\u6027\u3002\u6839\u636e\u8fd9\u4e2a\u5c5e\u6027\u7ed9\u51fa\u7684\u5730\u5740\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\"><code><span class=\"code-snippet_outer\">https:\/\/ipfs.io\/ipfs\/QmPbxeGcXhYQQNgsC6a36dDyYUcHgMLnGKnF8pVFmGsvqi<\/span><\/code><\/pre>\n<\/section>\n<p>\u6211\u4eec\u603b\u7b97\u627e\u5230\u4e86\u8fd9\u4e2a\u5408\u7ea6\u91cc\u9762\u89c4\u5b9a\u7684 1 \u53f7 Token \u5bf9\u5e94\u7684\u7684\u56fe\u50cf\uff1a<\/p>\n<p style=\"text-align: center;margin-bottom: 0em;\"><img src=\"http:\/\/home.wangjianshuo.com\/cn\/2022\/08\/picture-98.jpg\"\/><\/p>\n<p style=\"text-align: center;margin-bottom: 0em;\"><span style=\"text-align: justify;\"><\/span><\/p>\n<p style=\"text-align: left;margin-bottom: 0em;\"><span style=\"text-align: justify;\">\u8c1c\u5e95\u63ed\u6653\uff1a<\/span><\/p>\n<p style=\"text-align: left;margin-bottom: 0em;\"><span style=\"text-align: justify;\"><\/span><\/p>\n<p style=\"text-align: left;margin-bottom: 0em;\"><span style=\"text-align: justify;\"><span style='caret-color: rgb(255, 0, 0);color: rgb(255, 0, 0);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, \"Helvetica Neue\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei UI\", \"Microsoft YaHei\", Arial, sans-serif;font-size: 17px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: auto;text-align: justify;text-indent: 0px;text-transform: none;widows: auto;word-spacing: 0px;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;text-decoration: none;display: inline !important;float: none;'>0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D<\/span><\/span><\/p>\n<p style=\"text-align: left;margin-bottom: 0em;\"><span style=\"text-align: justify;\"><span style='caret-color: rgb(255, 0, 0);color: rgb(255, 0, 0);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, \"Helvetica Neue\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei UI\", \"Microsoft YaHei\", Arial, sans-serif;font-size: 17px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: auto;text-align: justify;text-indent: 0px;text-transform: none;widows: auto;word-spacing: 0px;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;text-decoration: none;display: inline !important;float: none;'><\/span><\/span><\/p>\n<p style=\"text-align: justify;margin-bottom: 0em;\">\u4ee3\u8868\u7684\u5c31\u662f\u65e0\u804a\u733f\uff08Bored Ape Yatch Club\uff09\u7684\u667a\u80fd\u5408\u7ea6\u3002\u4e00\u4e2a\u667a\u80fd\u5408\u7ea6\u5730\u5740\u548c\u4e00\u4e2a Token \u7684\u7f16\u53f7\uff0c\u5c31\u552f\u4e00\u7684\u786e\u5b9a\u4e86\u4e00\u4e2a\u6570\u5b57\u4e16\u754c\u91cc\u9762\u7684\u85cf\u54c1\u3002<\/p>\n<p style=\"text-align: justify;margin-bottom: 0em;\"><strong>\u56de\u987e\u4e00\u4e0b<\/strong><\/p>\n<p style=\"text-align: justify;margin-bottom: 0em;\">\u6211\u4eec\u6240\u8bf4\u7684 NFT \uff0c\u8bf4\u5230\u5e95\u662f\u4e00\u4e2a\u4ee5\u592a\u574a\u7684\u5730\u5740\u4e0a\u7684\u4e00\u4e2a\u652f\u6301 NFT \u534f\u8bae\uff08\u4e5f\u5c31\u662f ERC721\uff09\u7684\u667a\u80fd\u5408\u7ea6\uff0c\u5b83\u652f\u6301 tokenURI \u7b49\u5341\u51e0\u4e2a\u6807\u51c6\u51fd\u6570\u3002\u7ed9\u5b9a\u4e00\u4e2a Tokend \u7684 ID\uff0c\u5b83\u53ef\u4ee5\u544a\u8bc9\u4f60\u4e00\u4e2a\u533a\u5757\u94fe\u4ee5\u5916\u7684\u5730\u5740\uff0c\u8fd9\u4e2a\u5730\u5740\u91cc\u9762\u7ed9\u51fa\u4e86\u56fe\u50cf\uff0c\u540d\u79f0\u7b49\u7b49\u4fe1\u606f\u3002<\/p>\n<p style=\"text-align: justify;margin-bottom: 0em;\">\u6211\u4eec\u8d2d\u4e70\u4e00\u4e2a NFT\uff0c\u8bf4\u5230\u5e95\u662f\u8d2d\u4e70\u4e86\u67d0\u4e2a\u5408\u7ea6\u5730\u5740\u91cc\u9762\u7684\u67d0\u4e2a TokenID\uff0c\u6216\u8005\u8bf4\uff0c<span style='caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, \"Helvetica Neue\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei UI\", \"Microsoft YaHei\", Arial, sans-serif;font-size: 17px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: auto;text-align: justify;text-indent: 0px;text-transform: none;widows: auto;word-spacing: 0px;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;text-decoration: none;display: inline !important;float: none;'>\u5c31\u662f\u5728\u90a3\u5f20\u5927\u5927\u7684\u8868\u4e0a\uff0c\u8fd9\u4e2a\u5408\u7ea6\u5730\u5740\u4e0a\u7684\u90a3\u4e2a tokenID \u8fd9\u4e00\u884c\u7684 owner \u5c5e\u6027\uff0c\u8bb0\u5f55\u81ea\u5df1\u7684\u94b1\u5305\u5730\u5740\u3002<\/span><\/p>\n<p style=\"text-align: justify;margin-bottom: 0em;\">\u9664\u6b64\u4ee5\u5916\u7684\u4fe1\u606f\uff0c\u5305\u62ec\u4e0a\u9762\u8fd9\u5f20\u7334\u5b50\u7684\u5934\u50cf\uff0c\u5176\u5b9e\u4ec5\u4ec5\u5982\u5305\u88c5\u7eb8\u4e0a\u7684\u56fe\u6848\u4e00\u6837\uff0c\u4ec5\u4ec5\u662f\u4e00\u4e2a\u8d60\u54c1\u3002<\/p>\n<section class=\"channels_iframe_wrp\"><mpvideosnap class=\"js_uneditable custom_select_card channels_live_iframe\" data-desc=\"\u5c06\u572806\u670829\u65e5 19:00 \u76f4\u64ad\" data-headimgurl=\"https:\/\/wx.qlogo.cn\/finderhead\/Q3auHgzwzM7UVft0g69eBXbuuITuiaJP2nv4W8N4Iv4yWBJuwvvBzqg\/0\" data-intro=\"ERC721 NFT \u5408\u7ea6\u7b80\u4ecb\" data-nickname=\"\u738b\u5efa\u7855\" data-noticeid=\"finderlivenotice-v2_060000231003b20faec8c4e3881ec3ddc602e434b07740004327487204b62d444fa9a75beaa7@finder-1655902419039122-39446859\" data-pluginname=\"videosnap\" data-type=\"live\" data-username=\"v2_060000231003b20faec8c4e3881ec3ddc602e434b07740004327487204b62d444fa9a75beaa7@finder\"><\/mpvideosnap><\/section>\n<p style=\"text-align: justify;margin-bottom: 0em;\"><a data-itemshowtype=\"0\" data-linktype=\"2\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MjM5NzI0Mjg0MA==&amp;mid=2652375108&amp;idx=1&amp;sn=f527583c510bc84d6518b0498e868558&amp;chksm=bd305af38a47d3e518a1919f0a3f95ef30963323b26055eef6a808d8cd3798f65cce92eb72c0&amp;scene=21#wechat_redirect\" imgdata=\"null\" imgurl=\"\" linktype=\"text\" tab=\"innerlink\" target=\"_blank\" textvalue=\"\u51c6\u5907\u5c1d\u8bd5\u7528\u76f4\u64ad\u7684\u65b9\u5f0f\u5206\u4eab\u6bcf\u5468\u7684\u5185\u90e8\u6280\u672f\u8bb2\u5ea7\uff0c\u9644 \u300aWeb3 \u5165\u95e8\u300b\u56de\u653e\" rel=\"noopener\">\u51c6\u5907\u5c1d\u8bd5\u7528\u76f4\u64ad\u7684\u65b9\u5f0f\u5206\u4eab\u6bcf\u5468\u7684\u5185\u90e8\u6280\u672f\u8bb2\u5ea7\uff0c\u9644 \u300aWeb3 \u5165\u95e8\u300b\u56de\u653e<\/a><\/p>\n<p style=\"text-align: justify;margin-bottom: 0em;\"><a data-itemshowtype=\"0\" data-linktype=\"2\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MjM5NzI0Mjg0MA==&amp;mid=2652375059&amp;idx=1&amp;sn=34ebe765f4d857d082e046932e3f7ea2&amp;chksm=bd305aa48a47d3b2be8b2a2ad167edabcc5f4978496a3364b71c5112bf3e5744fb82e2f76f2a&amp;scene=21#wechat_redirect\" imgdata=\"null\" imgurl=\"\" linktype=\"text\" tab=\"innerlink\" target=\"_blank\" textvalue=\"\u65b0\u4e16\u754c\u548c\u65e7\u4e16\u754c\u7684\u6620\u5c04\uff1a\u4e00\u4ef6\u6280\u672f\u4e4b\u5916\uff0c\u4eba\u6587\u4e4b\u5185\u7684\u4e8b\u60c5\" rel=\"noopener\">\u65b0\u4e16\u754c\u548c\u65e7\u4e16\u754c\u7684\u6620\u5c04\uff1a\u4e00\u4ef6\u6280\u672f\u4e4b\u5916\uff0c\u4eba\u6587\u4e4b\u5185\u7684\u4e8b\u60c5<\/a><\/p>\n<p style=\"text-align: justify;margin-bottom: 0em;\"><a data-itemshowtype=\"0\" data-linktype=\"2\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MjM5NzI0Mjg0MA==&amp;mid=2652375031&amp;idx=1&amp;sn=604c7cb4148c886e371449d4d5a49a94&amp;chksm=bd3055408a47dc56a3553e322af52be88f9ee61dcb787357283f7efd5811e08be7536368b05f&amp;scene=21#wechat_redirect\" imgdata=\"null\" imgurl=\"\" linktype=\"text\" tab=\"innerlink\" target=\"_blank\" textvalue=\"\u5982\u679c\u53d1\u73b0\u4e00\u4e2a\u4e1c\u897f\u7684\u4e0b\u4e00\u4e2a\u7248\u672c\u600e\u4e48\u770b\u90fd\u6bd4\u4e0a\u4e2a\u7248\u672c\u5dee\u7684\u65f6\u5019\uff0c\u53ef\u80fd\u662f\u6211\u4eec\u8bef\u89e3\u4e86\u4ed6\u7684\u672c\u8d28\" rel=\"noopener\">\u5982\u679c\u53d1\u73b0\u4e00\u4e2a\u4e1c\u897f\u7684\u4e0b\u4e00\u4e2a\u7248\u672c\u600e\u4e48\u770b\u90fd\u6bd4\u4e0a\u4e2a\u7248\u672c\u5dee\u7684\u65f6\u5019\uff0c\u53ef\u80fd\u662f\u6211\u4eec\u8bef\u89e3\u4e86\u4ed6\u7684\u672c\u8d28<\/a><\/p>\n<p style=\"text-align: justify;margin-bottom: 0em;\"><a data-itemshowtype=\"0\" data-linktype=\"2\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MjM5NzI0Mjg0MA==&amp;mid=2652375016&amp;idx=1&amp;sn=c80636f43735b885ff3d42e46f2c9bd3&amp;chksm=bd30555f8a47dc4950b37f5deb6fc74dee622793bf7c8316837228e957b331cab54adb6a46c5&amp;scene=21#wechat_redirect\" imgdata=\"null\" imgurl=\"\" linktype=\"text\" tab=\"innerlink\" target=\"_blank\" textvalue=\"\u5982\u4f55\u95ed\u4e0a\u773c\u775b\u9ed8\u5ff5\u5492\u8bed\uff0c\u5c31\u80fd\u751f\u6210\u81ea\u5df1\u7684\u94b1\u5305\" rel=\"noopener\">\u5982\u4f55\u95ed\u4e0a\u773c\u775b\u9ed8\u5ff5\u5492\u8bed\uff0c\u5c31\u80fd\u751f\u6210\u81ea\u5df1\u7684\u94b1\u5305<\/a><\/p>\n<p style=\"text-align: justify;margin-bottom: 0em;\"><a data-itemshowtype=\"0\" data-linktype=\"2\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MjM5NzI0Mjg0MA==&amp;mid=2652374983&amp;idx=1&amp;sn=218f3bf4d38a73b83346a9c000c4d5bf&amp;chksm=bd3055708a47dc6601c9b8ce0e56634f7183a2f047c5d5b4ac5caae2c6c4d59fa48d788c2688&amp;scene=21#wechat_redirect\" imgdata=\"null\" imgurl=\"\" linktype=\"text\" tab=\"innerlink\" target=\"_blank\" textvalue=\"\u65b0\u4e16\u754c\uff0c\u4ece\u6765\u4e0d\u9700\u8981\u65e7\u4e16\u754c\u7684\u6279\u51c6\uff0c\u53c2\u4e0e\uff0c\u751a\u81f3\u4e0d\u9700\u8981\u4ed6\u4eec\u77e5\u9053\" rel=\"noopener\">\u65b0\u4e16\u754c\uff0c\u4ece\u6765\u4e0d\u9700\u8981\u65e7\u4e16\u754c\u7684\u6279\u51c6\uff0c\u53c2\u4e0e\uff0c\u751a\u81f3\u4e0d\u9700\u8981\u4ed6\u4eec\u77e5\u9053<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D\u00a0 \u8fd9\u4e32\u4e71\u7801\u662f\u4ec0\u4e48\uff1f \u8fd9\u4e2a &hellip; <a href=\"https:\/\/home.wangjianshuo.com\/cn\/20220816_%e4%b9%b0-nft%ef%bc%8c%e5%ae%9e%e9%99%85%e6%98%af%e5%9c%a8%e4%b9%b0%e4%bb%80%e4%b9%88%ef%bc%9f%e4%bb%8e%e5%ba%95%e5%b1%82%e4%bb%a3%e7%a0%81%e8%a7%86%e8%a7%92%e7%9a%84%e5%88%86%e6%9e%90.htm\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u4e70 NFT\uff0c\u5b9e\u9645\u662f\u5728\u4e70\u4ec0\u4e48\uff1f\u4ece\u5e95\u5c42\u4ee3\u7801\u89c6\u89d2\u7684\u5206\u6790<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/posts\/2508"}],"collection":[{"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/comments?post=2508"}],"version-history":[{"count":1,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/posts\/2508\/revisions"}],"predecessor-version":[{"id":2509,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/posts\/2508\/revisions\/2509"}],"wp:attachment":[{"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/media?parent=2508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/categories?post=2508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/tags?post=2508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}