{"id":244708,"date":"2023-01-26T12:04:38","date_gmt":"2023-01-26T04:04:38","guid":{"rendered":"https:\/\/www.idc.net\/help\/244708\/"},"modified":"2023-01-26T12:04:38","modified_gmt":"2023-01-26T04:04:38","slug":"%e4%bd%bf%e7%94%a8-cadence-%e5%9c%a8-flow-%e5%8c%ba%e5%9d%97%e9%93%be%e4%b8%8a%e8%bf%9b%e8%a1%8c%e6%99%ba%e8%83%bd%e5%90%88%e7%ba%a6%e7%bc%96%e7%a8%8b%e7%9a%84%e6%96%b0%e6%89%8b%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/244708\/","title":{"rendered":"\u4f7f\u7528 Cadence \u5728 Flow \u533a\u5757\u94fe\u4e0a\u8fdb\u884c\u667a\u80fd\u5408\u7ea6\u7f16\u7a0b\u7684\u65b0\u624b\u6307\u5357"},"content":{"rendered":"<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u7531\u4e8e\u53bb\u4e2d\u5fc3\u5316\u5e94\u7528\u7a0b\u5e8f (DApps) \u7684\u9700\u6c42\u4e0d\u65ad\u589e\u957f\uff0c\u667a\u80fd\u5408\u7ea6\u7f16\u7a0b\u6700\u8fd1<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u4e5f<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u83b7\u5f97\u4e86\u6781\u5927\u7684\u6b22\u8fce\u3002\u667a\u80fd\u5408\u7ea6\u662f\u5728\u533a\u5757\u94fe\u7f51\u7edc\u4e0a\u8fd0\u884c\u7684\u81ea\u52a8\u6267\u884c\u534f\u8bae<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\uff0c<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u5176\u4e2d<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u4ee5<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u592a\u574a<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u662f\u975e\u5e38\u70ed\u95e8\u7684\u4e00\u79cd<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u3002\u7136\u800c\uff0c\u968f\u7740\u5bf9\u66f4\u5177\u53ef\u6269\u5c55\u6027\u548c\u6548\u7387\u7684\u533a\u5757\u94fe\u89e3\u51b3\u65b9\u6848\u7684\u9700\u6c42\u4e0d\u65ad\u589e\u957f\uff0c\u65b0\u7684\u533a\u5757\u94fe\u7f51\u7edc\uff08\u5982 Flow\uff09\u6b63\u5728\u51fa\u73b0\u3002<\/span><\/span><\/p>\n<p style=\"text-align:center\">\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">Flow \u662f\u4e00\u4e2a\u4e13\u4e3a DApp \u548c\u6570\u5b57\u8d44\u4ea7\u8bbe\u8ba1\u7684\u533a\u5757\u94fe\u7f51\u7edc\u3002\u5b83\u7531 CryptoKitties \u7684\u521b\u5efa\u8005 Dapper Labs \u521b\u5efa\uff0c\u5e76\u5728 NFT \u9886\u57df\u8d8a\u6765\u8d8a\u53d7\u6b22\u8fce\u3002Flow \u5efa\u7acb\u5728\u4e00\u79cd\u540d\u4e3a Cadence \u7684\u72ec\u7279\u7f16\u7a0b\u8bed\u8a00\u4e4b\u4e0a\uff0c\u8be5\u8bed\u8a00\u65e8\u5728\u4f7f\u667a\u80fd\u5408\u7ea6\u7f16\u7a0b\u66f4\u6613\u4e8e\u8bbf\u95ee<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u3001\u66f4<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u5b89\u5168\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u63d0\u4f9b\u6709\u5173 Flow \u533a\u5757\u94fe\u4e0a Cadence \u548c\u667a\u80fd\u5408\u7ea6\u7f16\u7a0b\u7684\u901f\u6210\u8bfe\u7a0b\u3002\u6211\u4eec\u5c06\u4ecb\u7ecd Cadence \u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u5e76\u89e3\u91ca\u5982\u4f55\u5728 Flow \u7f51\u7edc\u4e0a\u7f16\u5199\u667a\u80fd\u5408\u7ea6\u3002\u6211\u4eec\u8fd8\u5c06\u8ba8\u8bba\u5c06 Flow \u7528\u4e8e DApp \u548c\u6570\u5b57\u8d44\u4ea7\u7684\u597d\u5904\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<h4><span style=\"color: #292929\">\u4ec0\u4e48\u662fCadence\uff1f<\/span><span style=\"color: #292929\"><\/span><\/h4>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">Cadence \u662f\u4e00\u79cd\u5b89\u5168\u53ef\u9760\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u4e13\u4e3a Flow \u533a\u5757\u94fe\u4e0a\u7684\u667a\u80fd\u5408\u7ea6\u548c DApp \u800c\u8bbe\u8ba1\u3002\u5b83\u662f\u4e00\u79cd\u9762\u5411\u8d44\u6e90\u7684\u8bed\u8a00\uff0c\u4e13\u6ce8\u4e8e\u63d0\u9ad8\u667a\u80fd\u5408\u7ea6\u7f16\u7a0b\u7684\u5b89\u5168\u6027\u548c\u6548\u7387\u3002Cadence \u4f7f\u7528\u4e00\u79cd\u6613\u4e8e\u9605\u8bfb\u548c\u7406\u89e3\u7684\u8bed\u6cd5\uff0c\u5373\u4f7f\u5bf9\u4e8e\u975e\u7a0b\u5e8f\u5458\u4e5f\u662f<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u4e00\u6837\u7b80\u5355<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">Cadence \u7684\u4e3b\u8981\u7279\u6027\u4e4b\u4e00\u662f\u9762\u5411\u8d44\u6e90\u7684\u7f16\u7a0b\u3002\u8d44\u6e90\u662f\u7a0b\u5e8f\u64cd\u4f5c\u7684\u4e3b\u8981\u5bf9\u8c61<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\uff0c<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u662f\u5177\u6709\u72b6\u6001\u5e76\u4e14\u53ef\u4ee5\u7531\u5e10\u6237\u62e5\u6709\u7684\u5bf9\u8c61\u3002Cadence \u8fd8\u652f\u6301\u5f15\u7528\u7c7b\u578b\u7684\u4f7f\u7528\uff0c\u5f15\u7528\u7c7b\u578b\u662f\u4e0d\u5c5e\u4e8e\u4efb\u4f55\u5e10\u6237\u7684\u5bf9\u8c61\uff0c\u53ef\u4ee5\u5728\u4e0d\u540c\u8d44\u6e90\u4e4b\u95f4\u5171\u4eab\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">Cadence \u7684<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u4e3b<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u8981\u7279\u6027<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u4e4b\u4e8c<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u662f\u7c7b\u578b\u7cfb\u7edf\u3002Cadence \u62e5\u6709\u5f3a\u5927\u7684\u7c7b\u578b\u7cfb\u7edf\uff0c\u53ef\u786e\u4fdd\u7c7b\u578b\u5b89\u5168\u5e76\u6d88\u9664\u5e38\u89c1\u7684\u7f16\u7a0b\u9519\u8bef<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\uff0c\u5982<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u9632\u6b62\u7a7a\u6307\u9488\u5f02\u5e38\u548c\u7c7b\u578b\u4e0d\u5339\u914d\u9519\u8bef\u7b49\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u4ee5\u4e0a\u4e24\u79cd\u7279\u6027<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u4f7f\u5f97\u7f16\u5199\u5b89\u5168\u9ad8\u6548\u7684\u667a\u80fd\u5408\u7ea6\u53d8\u5f97\u5bb9\u6613\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<h4><span style=\"color: #292929\">\u5728 Flow \u7f51\u7edc\u4e0a\u7f16\u5199\u667a\u80fd\u5408\u7ea6<\/span><span style=\"color: #292929\"><\/span><\/h4>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u8981\u5728 Flow \u7f51\u7edc\u4e0a\u7f16\u5199\u667a\u80fd\u5408\u7ea6\uff0c\u60a8\u9700\u8981\u5bf9 Cadence \u6709\u57fa\u672c\u7684\u4e86\u89e3\u3002\u5728\u672c\u8282\u4e2d\uff0c\u6211\u4eec\u5c06\u5f15\u5bfc\u60a8\u5b8c\u6210\u5728 Flow \u7f51\u7edc\u4e0a\u7f16\u5199\u7b80\u5355\u667a\u80fd\u5408\u7ea6\u7684\u6b65\u9aa4\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<h4><span style=\"color: #292929\">\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u667a\u80fd\u5408\u7ea6<\/span><span style=\"color: #292929\"><\/span><\/h4>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u5728 Flow \u7f51\u7edc\u4e0a\u7f16\u5199\u667a\u80fd\u5408\u7ea6\u7684\u7b2c\u4e00\u6b65\u662f\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u667a\u80fd\u5408\u7ea6\u3002\u4e3a\u6b64\uff0c\u60a8\u9700\u8981\u5728\u8ba1\u7b97\u673a\u4e0a\u8bbe\u7f6e\u5f00\u53d1\u73af\u5883\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u5f00\u53d1\u73af\u5883\u5728 Flow \u7f51\u7edc\u4e0a\u7f16\u5199\u667a\u80fd\u5408\u7ea6\uff0c\u5305\u62ec Visual Studio Code \u548c Atom\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u8bbe\u7f6e\u5f00\u53d1\u73af\u5883\u540e\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u667a\u80fd\u5408\u7ea6\u6587\u4ef6\u3002\u5728 Visual Studio Code \u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5355\u51fb\u8d44\u6e90\u7ba1\u7406\u5668\u7a97\u683c\u4e2d\u7684\u201c\u65b0\u5efa\u6587\u4ef6\u201d\u6309\u94ae\u6765\u521b\u5efa\u65b0\u6587\u4ef6\u3002\u5728 Atom \u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5355\u51fb\u6587\u4ef6\u6811\u4e2d\u7684\u201c\u65b0\u5efa\u6587\u4ef6\u201d\u6309\u94ae\u6765\u521b\u5efa\u65b0\u6587\u4ef6\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u5728\u60a8\u7684\u65b0\u667a\u80fd\u5408\u7ea6\u6587\u4ef6\u4e2d\uff0c\u60a8\u9700\u8981\u4f7f\u7528 Cadence \u8bed\u6cd5\u5b9a\u4e49\u5408\u7ea6\u3002Cadence\u4e2d\u5b9a\u4e49\u667a\u80fd\u5408\u7ea6\u7684\u57fa\u672c\u8bed\u6cd5\u5982\u4e0b\uff1a<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<pre><code>pub contract MyContract { \n\n\/\/ \u5b9a\u4e49\u5408\u7ea6\u53d8\u91cf\nvar myVariable: Int \n\n\/\/ \u5b9a\u4e49\u4e00\u4e2a\u8bfb\u53d6\u53d8\u91cf\u7684\u516c\u5171\u51fd\u6570\npub fun  getMyVariable () : Int { \nreturn myVariable \n} \n\n\/\/ \u5b9a\u4e49\u4e00\u4e2a\u8bbe\u7f6e\u53d8\u91cf\u7684\u516c\u5171\u51fd\u6570\npub fun  setMyVariable (newValue: Int ) { \nmyVariable = newValue \n} \n\n}<\/code><\/pre>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u540d\u4e3a\u201cMyContract\u201d\u7684\u65b0\u667a\u80fd\u5408\u7ea6\u3002\u6211\u4eec\u6b63\u5728\u5b9a\u4e49\u4e00\u4e2a\u540d\u4e3a\u201cmyVariable\u201d\u7684\u5b58\u50a8\u53d8\u91cf\uff0c\u5b83\u662f Int \u7c7b\u578b\u3002\u8be5\u5408\u7ea6\u8fd8\u5305\u62ec\u4e24\u4e2a\u516c\u5171\u51fd\u6570\uff1a\u201cgetMyVariable\u201d\u548c\u201csetMyVariable\u201d\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u201cgetMyVariable\u201d\u51fd\u6570\u662f\u4e00\u4e2a\u53ea\u8bfb\u51fd\u6570\uff0c\u8fd4\u56de\u201cmyVariable\u201d\u7684\u5f53\u524d\u503c\u3002\u8be5\u51fd\u6570\u4e0d\u4f1a\u4fee\u6539\u5408\u7ea6\u7684\u72b6\u6001\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u53e6\u4e00\u65b9\u9762\uff0c\u201csetMyVariable\u201d\u51fd\u6570\u662f\u901a\u8fc7\u5c06\u201cmyVariable\u201d\u7684\u503c\u8bbe\u7f6e\u4e3a\u8f93\u5165\u53c2\u6570\u201cnewValue\u201d\u6765\u4fee\u6539\u5408\u7ea6\u72b6\u6001\u7684\u51fd\u6570\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<h4><span style=\"color: #292929\">\u6570\u636e\u7c7b\u578b<\/span><span style=\"color: #292929\"><\/span><\/h4>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u4e0e Solidity \u4e00\u6837\uff0cCadence \u4e5f\u6709\u8bb8\u591a\u53d8\u91cf\u6570\u636e\u7c7b\u578b\u3002\u4e00\u4e9b\u6570\u636e\u7c7b\u578b\u5305\u62ec\uff1a<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<ol>\n<li><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">Int<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">- \u4efb\u610f\u5927\u5c0f\u7684\u6709\u7b26\u53f7\u6574\u6570<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/li>\n<li><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">UInt<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">- \u4efb\u610f\u5927\u5c0f\u7684\u65e0\u7b26\u53f7\u6574\u6570<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/li>\n<li><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">Bool<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">- \u5e03\u5c14\u503c<\/span><\/span><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">true<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u548c<\/span><\/span><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">false<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/li>\n<li><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">String<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">- \u4efb\u610f\u957f\u5ea6\u7684\u6587\u672c\u5b57\u7b26\u4e32<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/li>\n<li><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">Address<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">- \u4e00\u4e2a 20 \u5b57\u8282\u7684\u4ee5\u592a\u574a\u5f0f\u5730\u5740<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/li>\n<li><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">Character<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">- \u5355\u4e2a UTF-8 \u5b57\u7b26<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/li>\n<li><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">Array<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">- \u76f8\u540c\u7c7b\u578b\u7684\u5143\u7d20\u5217\u8868<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/li>\n<li><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">Dictionary<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">- \u952e\u503c\u5bf9\u7684\u96c6\u5408\uff0c\u5176\u4e2d\u952e\u662f\u4e00\u79cd\u7c7b\u578b\uff0c\u503c<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u53ef\u4ee5<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u662f\u53e6\u4e00\u79cd\u7c7b\u578b<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/li>\n<\/ol>\n<h4><span style=\"color: #292929\">Flow Playground<\/span><span style=\"color: #292929\"><\/span><\/h4>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">Flow Playground \u662f\u4e00\u4e2a\u5728\u7ebf\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u5141\u8bb8\u60a8\u7f16\u5199\u3001\u6d4b\u8bd5\u548c\u90e8\u7f72 Cadence \u667a\u80fd\u5408\u7ea6\uff0c\u65e0\u9700\u8bbe\u7f6e\u672c\u5730\u5f00\u53d1\u73af\u5883<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\uff0c<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u4f7f\u7528<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u66f4\u65b9\u4fbf<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u8981\u4f7f\u7528 Flow Playground\uff0c\u60a8\u9700\u8981\u4f7f\u7528 Flow \u521b\u5efa\u4e00\u4e2a\u5e10\u6237\u3002\u521b\u5efa\u5e10\u6237\u540e\uff0c\u60a8\u53ef\u4ee5\u8bbf\u95ee Flow Playground \u5e76\u521b\u5efa\u65b0\u9879\u76ee\u3002\u5728\u9879\u76ee\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4e3a\u60a8\u7684 Cadence \u667a\u80fd\u5408\u7ea6\u521b\u5efa\u4e00\u4e2a\u65b0\u6587\u4ef6\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u4e0b\u9762\u662f Cadence \u4e2d\u4e00\u4e2a\u7b80\u5355\u7684\u667a\u80fd\u5408\u7ea6\u793a\u4f8b\uff0c\u5b83\u5b58\u50a8\u4e00\u4e2a\u503c\u5e76\u5141\u8bb8\u68c0\u7d22\u5b83\uff1a<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<pre><code>pub contract SimpleStorage { \n \/\/ \u58f0\u660e\u4e00\u4e2a\u516c\u5171\u53d8\u91cf\u6765\u5b58\u50a8\u4e00\u4e2a\u6574\u6570\u503c\n pub var value: Int \n\n \/\/ \u516c\u5171\u51fd\u6570\u7528\u4e8e\u8bbe\u7f6e\u503c\n pub fun  setValue (newValue: Int ) { \n self.value = newValue \n } \n\n \/\/ \u516c\u5171\u51fd\u6570\u7528\u4e8e\u83b7\u53d6\u503c\n pub fun  getValue () : Int { \n return self.value \n } \n}<\/code><\/pre>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u5728\u8fd9\u4e2a\u667a\u80fd\u5408\u7ea6\u4e2d\uff0c\u6211\u4eec\u58f0\u660e\u4e86\u4e00\u4e2a<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u516c\u5171<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u7684\u53d8\u91cf<\/span><\/span><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">value<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u6765\u5b58\u50a8\u4e00\u4e2a\u6574\u6570\u503c\u3002\u6211\u4eec\u8fd8\u6709\u4e24\u4e2a\u516c\u5171\u51fd\u6570<\/span><\/span><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">setValue<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u548c<\/span><\/span><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">getValue<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\uff0c\u5b83\u4eec\u5141\u8bb8\u6211\u4eec\u8bbe\u7f6e\u548c\u68c0\u7d22\u503c\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<h4><span style=\"color: #292929\">\u90e8\u7f72 Cadence \u667a\u80fd\u5408\u7ea6<\/span><span style=\"color: #292929\"><\/span><\/h4>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u8981\u90e8\u7f72 Cadence \u667a\u80fd\u5408\u7ea6\uff0c\u60a8\u9700\u8981\u62e5\u6709 Flow \u5e10\u6237\u5e76\u8bbe\u7f6e\u5f00\u53d1\u73af\u5883\u3002\u60a8\u8fd8\u9700\u8981\u5b89\u88c5 Flow CLI\uff0c\u8fd9\u662f\u4e00\u4e2a\u7528\u4e8e\u4e0e Flow \u533a\u5757\u94fe\u4ea4\u4e92\u7684\u547d\u4ee4\u884c\u754c\u9762\u5de5\u5177\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u8bbe\u7f6e\u5f00\u53d1\u73af\u5883\u5e76\u5b89\u88c5 Flow CLI \u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c06\u667a\u80fd\u5408\u7ea6\u90e8\u7f72\u5230 Flow \u533a\u5757\u94fe\uff1a<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<pre><code>flow project deploy --network NETWORK_NAME<\/code><\/pre>\n<h4><span style=\"color: #292929\">\u5728 Flow \u4e0a\u7f16\u5199\u548c\u90e8\u7f72\u667a\u80fd\u5408\u7ea6<\/span><span style=\"color: #292929\"><\/span><\/h4>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u73b0\u5728\u6211\u4eec\u5df2\u7ecf\u4ecb\u7ecd\u4e86 Cadence \u7684\u57fa\u7840\u77e5\u8bc6\u548c Flow \u533a\u5757\u94fe\u4e0a\u7684\u667a\u80fd\u5408\u7ea6\u7f16\u7a0b\uff0c\u8ba9\u6211\u4eec\u6765\u770b\u770b\u5728 Flow \u4e0a\u7f16\u5199\u548c\u90e8\u7f72\u7b80\u5355\u667a\u80fd\u5408\u7ea6\u7684\u8fc7\u7a0b\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u5bf9\u4e8e\u8fd9\u4e2a\u4f8b\u5b50\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u5408\u7ea6\uff0c\u5141\u8bb8\u7528\u6237\u5b58\u50a8\u548c\u68c0\u7d22\u5b57\u7b26\u4e32\u6d88\u606f\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u9996\u5148\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u9879\u76ee\u76ee\u5f55\u5e76\u4f7f\u7528 npm \u5bf9\u5176\u8fdb\u884c\u521d\u59cb\u5316\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<pre><code>mkdir  my-project\ncd my-project\nnpm init -y<\/code><\/pre>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u5b89\u88c5 Flow CLI \u5e76\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 Flow \u9879\u76ee\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<pre><code>npm install -g @onflow \/cli\nflow init<\/code><\/pre>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u8fd9\u5c06\u521b\u5efa\u4e00\u4e2a\u65b0 Flow \u9879\u76ee<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\uff0c\u5e76\u521b\u5efa<\/span><\/span><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">flow.json<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\uff0c\u8be5\u6587\u4ef6\u6307\u5b9a\u7f51\u7edc\u914d\u7f6e\u548c\u5408\u7ea6\u8def\u5f84\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u4e0b\u9762<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\uff0c\u8ba9\u6211\u4eec\u5728<\/span><\/span><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">cadence<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5408\u7ea6\u6587\u4ef6<\/span><\/span><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">Message.cdc<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<pre><code>mkdir cadence\ntouch cadence\/Message.cdc<\/code><\/pre>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u6211\u4eec\u5c06\u5b9a\u4e49\u4e00\u4e2a\u7b80\u5355\u7684\u5408\u7ea6\u6765\u5b58\u50a8\u548c\u68c0\u7d22\u6d88\u606f\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<pre><code>\/\/ cadence\/Message.cdc\n\n pub contract Message { \n \/\/ \u5b9a\u4e49\u516c\u5171\u5b57\u6bb5\u6765\u5b58\u50a8\u6d88\u606f\n pub var message: String \n\n \/\/ \u8bbe\u7f6e\u6d88\u606f\u7684\u516c\u5171\u51fd\u6570\n pub fun  setMessage (_message: String ) { \n self.message = _message \n } \n\n \/\/ \u8bfb\u53d6\u6d88\u606f\u7684\u516c\u5171\u51fd\u6570\n pub fun  getMessage () : String { \n return self.message \n } \n}<\/code><\/pre>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u8be5\u5408\u7ea6\u5b9a\u4e49\u4e86\u4e00\u4e2a\u516c\u5171\u5b57\u6bb5<\/span><\/span><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">message<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u6765\u5b58\u50a8\u6d88\u606f\uff0c\u4ee5\u53ca\u4e24\u4e2a\u516c\u5171\u51fd\u6570<\/span><\/span><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">setMessage<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\uff0c<\/span><\/span><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">getMessage<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u5206\u522b\u8bbe\u7f6e\u548c\u68c0\u7d22\u6d88\u606f\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u628a\u5408\u7ea6\u90e8\u7f72\u5230 Flow \u6a21\u62df\u5668\u4e0a\u8fdb\u884c\u6d4b\u8bd5\u3002\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u542f\u52a8\u6a21\u62df\u5668\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<pre><code>flow emulator start<\/code><\/pre>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u8fd9\u5c06\u5728<\/span><\/span><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">localhost:3569<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u542f\u52a8\u6a21\u62df\u5668\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4f7f\u7528 Flow CLI \u90e8\u7f72\u5408\u7ea6\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<pre><code>flow project deploy --network emulator<\/code><\/pre>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u8fd9\u5c06\u7f16\u8bd1\u5408\u7ea6\u5e76\u5c06\u5176\u90e8\u7f72\u5230\u6a21\u62df\u5668\u3002CLI \u5c06\u8f93\u51fa\u5408\u7ea6\u5730\u5740\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u8be5\u5730\u5740\u4e0e\u5408\u7ea6\u8fdb\u884c\u4ea4\u4e92\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u73b0\u5728\uff0c\u8ba9\u6211\u4eec\u4f7f\u7528 Flow CLI \u4e0e\u5408\u7ea6\u8fdb\u884c\u4ea4\u4e92\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u9996\u5148\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u8be5\u51fd\u6570\u8bbe\u7f6e\u4e00\u6761\u6d88\u606f<\/span><\/span><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">setMessage<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<pre><code>flow transactions send .\/cadence\/transactions\/set-message.cdc --signer emulator-account<\/code><\/pre>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u8fd9\u5c06\u5411\u5408\u7ea6\u53d1\u9001\u6d88\u606f\u4ee5\u8bbe\u7f6e\u4ea4\u6613\u3002CLI \u5c06\u63d0\u793a\u6211\u4eec\u8f93\u5165\u6d88\u606f\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u8be5\u51fd\u6570\u68c0\u7d22\u6d88\u606f<\/span><\/span><span style=\"font-size: 15px\"><span style=\"color: #292929\"><span style=\"background-color: #f2f2f2\">getMessage<\/span><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<pre><code>flow scripts execute .\/cadence\/scripts\/get-message.cdc --signer emulator-account<\/code><\/pre>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u8fd9\u5c06\u6267\u884c\u4e00\u4e2a\u811a\u672c\u6765\u68c0\u7d22\u6d88\u606f\u3002CLI \u5c06\u8f93\u51fa\u6d88\u606f\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u606d\u559c\uff01\u60a8\u521a\u521a\u4f7f\u7528 Cadence \u5728 Flow \u533a\u5757\u94fe\u4e0a\u7f16\u5199\u5e76\u90e8\u7f72\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u667a\u80fd\u5408\u7ea6\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<h3><span style=\"color: #292929\">\u7ed3\u8bba<\/span><span style=\"color: #292929\"><\/span><\/h3>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u4ecb\u7ecd\u4e86 Cadence \u7684\u57fa\u7840\u77e5\u8bc6\u548c Flow \u533a\u5757\u94fe\u4e0a\u7684\u667a\u80fd\u5408\u7ea6\u7f16\u7a0b\u3002\u6211\u4eec\u8ba8\u8bba\u4e86\u4f7f\u7528 Cadence \u8fdb\u884c\u667a\u80fd\u5408\u7ea6\u7f16\u7a0b\u7684\u597d\u5904\uff0c\u5e76\u63a2\u8ba8\u4e86\u8be5\u8bed\u8a00\u7684\u5173\u952e\u6982\u5ff5\u548c\u8bed\u6cd5\u3002\u6211\u4eec\u8fd8\u4ecb\u7ecd\u4e86\u5728 Flow \u4e0a\u7f16\u5199\u548c\u90e8\u7f72\u7b80\u5355\u667a\u80fd\u5408\u7ea6\u7684\u8fc7\u7a0b\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u968f\u7740 Flow \u751f\u6001\u7cfb\u7edf\u7684\u4e0d\u65ad\u53d1\u5c55\uff0cCadence \u6b63\u6210\u4e3a\u5e0c\u671b\u5728\u5e73\u53f0\u4e0a\u6784\u5efa\u53bb\u4e2d\u5fc3\u5316\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u4eba\u5458\u8d8a\u6765\u8d8a\u91cd\u8981\u7684\u5de5\u5177\u3002\u65e0\u8bba\u60a8\u662f\u7ecf\u9a8c\u4e30\u5bcc\u7684\u533a\u5757\u94fe\u5f00\u53d1\u4eba\u5458\u8fd8\u662f\u521a\u521a\u5f00\u59cb\u667a\u80fd\u5408\u7ea6\u7f16\u7a0b\uff0c\u5b66\u4e60 Cadence \u90fd\u662f\u60a8\u5de5\u5177\u5305\u4e2d\u7684\u4e00\u9879\u5b9d\u8d35\u6280\u80fd\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u6211\u4eec\u5e0c\u671b\u672c\u6b21\u901f\u6210\u8bfe\u7a0b\u4e3a\u60a8\u63d0\u4f9b\u4e86 Cadence \u548c Flow \u667a\u80fd\u5408\u7ea6\u7f16\u7a0b\u7684\u575a\u5b9e\u57fa\u7840\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<h4><span style=\"color: #292929\">\u8bd1\u8005\u4ecb\u7ecd<\/span><span style=\"color: #292929\"><\/span><\/h4>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\">\u5f20\u4e1a\u8d35\uff0cIDC.NET\u793e\u533a\u7f16\u8f91\uff0c\u4ece\u4e8b\u4f01\u4e1a\u4fe1\u606f\u5316\u5efa\u8bbe\u591a\u5e74\uff0c\u81f4\u529b\u4e8e\u4fe1\u606f\u96c6\u6210\u3001\u6570\u636e\u6cbb\u7406\u548c\u4eba\u5de5\u667a\u80fd\u5e94\u7528\u7b49\u3002<\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><\/span><\/span><\/p>\n<p><span style=\"font-size: 20px\"><span style=\"color: #292929\"><strong>\u539f\u6587\u6807\u9898\uff1a<\/strong><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><strong>A Beginner\u2019s Guide to Smart Contract Programming on the Flow Blockchain with Cadence<\/strong><\/span><\/span><span style=\"font-size: 20px\"><span style=\"color: #292929\"><strong>\uff0c\u4f5c\u8005\uff1aLea Lobanov<\/strong><\/span><\/span><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u4e8e\u53bb\u4e2d\u5fc3\u5316\u5e94\u7528\u7a0b\u5e8f (DApps) \u7684\u9700\u6c42\u4e0d\u65ad\u589e\u957f\uff0c\u667a\u80fd\u5408\u7ea6\u7f16\u7a0b\u6700\u8fd1\u4e5f\u83b7\u5f97\u4e86\u6781\u5927\u7684\u6b22\u8fce\u3002\u667a\u80fd\u5408\u7ea6\u662f\u5728\u533a\u5757\u94fe\u7f51 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":244709,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[200988],"tags":[],"class_list":["post-244708","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-200988"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/244708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=244708"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/244708\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media\/244709"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=244708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=244708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=244708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}