{"id":36810,"date":"2025-05-12T16:02:42","date_gmt":"2025-05-12T08:02:42","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/36810.html"},"modified":"2025-05-12T16:02:42","modified_gmt":"2025-05-12T08:02:42","slug":"%e5%8c%ba%e5%9d%97%e9%93%be%e8%8a%82%e7%82%b9-rpc-%e6%b5%8b%e8%af%95%e7%ac%94%e8%ae%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/36810.html","title":{"rendered":"\u533a\u5757\u94fe\u8282\u70b9 &amp; RPC \u6d4b\u8bd5\u7b14\u8bb0"},"content":{"rendered":"<h2>\u533a\u5757\u94fe\u8282\u70b9 &amp; RPC \u6d4b\u8bd5\u6307\u5357<\/h2>\n<p>\u533a\u5757\u94fe\u5e94\u7528&#xff08;DApp&#xff09;\u5728\u8fd0\u884c\u65f6&#xff0c;\u9700\u8981\u901a\u8fc7 \u533a\u5757\u94fe\u8282\u70b9&#xff08;Node&#xff09; \u4e0e\u533a\u5757\u94fe\u8fdb\u884c\u4ea4\u4e92&#xff0c;\u800c RPC&#xff08;\u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528&#xff0c;Remote Procedure Call&#xff09; \u662f\u524d\u7aef\u4e0e\u533a\u5757\u94fe\u8282\u70b9\u901a\u4fe1\u7684\u6865\u6881\u3002<\/p>\n<p>\u4f5c\u4e3a\u4e00\u540d\u6d4b\u8bd5\u5de5\u7a0b\u5e08&#xff0c;\u6211\u4eec\u9700\u8981\u786e\u4fdd\u533a\u5757\u94fe\u8282\u70b9 &amp; RPC \u670d\u52a1\u7684 \u7a33\u5b9a\u6027\u3001\u53ef\u9760\u6027\u3001\u517c\u5bb9\u6027\u548c\u5b89\u5168\u6027\u3002\u672c\u6307\u5357\u5c06\u4ece\u57fa\u7840\u6982\u5ff5\u5230\u5b9e\u6218\u6d4b\u8bd5&#xff0c;\u5e2e\u52a9\u5c0f\u767d\u7406\u89e3\u5e76\u638c\u63e1\u533a\u5757\u94fe RPC \u7684\u6d4b\u8bd5\u65b9\u6cd5\u3002<\/p>\n<hr \/>\n<h3>1. \u4ec0\u4e48\u662f\u533a\u5757\u94fe\u8282\u70b9 &amp; RPC&#xff1f;<\/h3>\n<h4>1.1 \u533a\u5757\u94fe\u8282\u70b9&#xff08;Blockchain Node&#xff09;<\/h4>\n<p>\u533a\u5757\u94fe\u662f\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u7684\u5206\u5e03\u5f0f\u7f51\u7edc&#xff0c;\u6240\u6709\u6570\u636e\u90fd\u5b58\u50a8\u5728\u591a\u4e2a \u8282\u70b9&#xff08;Node&#xff09; \u4e0a\u3002\u6bcf\u4e2a\u8282\u70b9\u90fd\u53ef\u4ee5\u5b58\u50a8\u533a\u5757\u94fe\u6570\u636e&#xff0c;\u5e76\u5904\u7406\u4ea4\u6613\u3002<\/p>\n<p>\u8282\u70b9\u7684\u4e3b\u8981\u7c7b\u578b&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5168\u8282\u70b9&#xff08;Full Node&#xff09;&#xff1a;\u5b58\u50a8\u5b8c\u6574\u7684\u533a\u5757\u94fe\u6570\u636e&#xff0c;\u9a8c\u8bc1\u6240\u6709\u4ea4\u6613\u3002<\/p>\n<\/li>\n<li>\n<p>\u8f7b\u8282\u70b9&#xff08;Light Node&#xff09;&#xff1a;\u4ec5\u5b58\u50a8\u533a\u5757\u5934&#xff0c;\u4f9d\u8d56\u5168\u8282\u70b9\u83b7\u53d6\u8be6\u7ec6\u6570\u636e\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f52\u6863\u8282\u70b9&#xff08;Archive Node&#xff09;&#xff1a;\u5b58\u50a8\u5b8c\u6574\u7684\u5386\u53f2\u4ea4\u6613\u6570\u636e\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>1.2 RPC&#xff08;\u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528&#xff09;<\/h4>\n<p>RPC \u662f\u524d\u7aef\u3001\u540e\u7aef\u4e0e\u533a\u5757\u94fe\u8282\u70b9\u4ea4\u4e92\u7684\u63a5\u53e3&#xff0c;\u5141\u8bb8\u5e94\u7528\u7a0b\u5e8f\u67e5\u8be2\u533a\u5757\u6570\u636e\u3001\u53d1\u9001\u4ea4\u6613\u3002<\/p>\n<p>\u5e38\u89c1\u7684\u533a\u5757\u94fe RPC \u63d0\u4f9b\u5546&#xff1a;<\/p>\n<ul>\n<li>\n<p>Infura&#xff1a;\u4ee5\u592a\u574a\u6700\u6d41\u884c\u7684 RPC \u63d0\u4f9b\u5546\u4e4b\u4e00\u3002<\/p>\n<\/li>\n<li>\n<p>Alchemy&#xff1a;\u6027\u80fd\u4f18\u5316&#xff0c;\u9002\u5408\u9ad8\u541e\u5410\u91cf DApp\u3002<\/p>\n<\/li>\n<li>\n<p>\u672c\u5730 Geth \/ Erigon \/ Besu&#xff1a;\u81ea\u5efa\u533a\u5757\u94fe\u8282\u70b9&#xff0c;\u63d0\u4f9b\u66f4\u9ad8\u7684\u9690\u79c1\u6027\u3002<\/p>\n<\/li>\n<\/ul>\n<p>&#x1f4cc; \u793a\u4f8b&#xff1a;\u4f7f\u7528 Ethers.js \u901a\u8fc7 RPC \u8bfb\u53d6\u6700\u65b0\u533a\u5757<\/p>\n<p>import { ethers } from &#034;ethers&#034;;<br \/>\nconst provider &#061; new ethers.JsonRpcProvider(&#034;https:\/\/mainnet.infura.io\/v3\/YOUR_INFURA_KEY&#034;);<\/p>\n<p>async function getLatestBlock() {<br \/>\n  const block &#061; await provider.getBlockNumber();<br \/>\n  console.log(&#034;Latest block number:&#034;, block);<br \/>\n}<br \/>\ngetLatestBlock(); <\/p>\n<hr \/>\n<h3>2. \u533a\u5757\u94fe RPC \u76f8\u5173\u7684\u6d4b\u8bd5\u65b9\u6cd5<\/h3>\n<h4>2.1 \u529f\u80fd\u6d4b\u8bd5&#xff08;Functional Testing&#xff09;<\/h4>\n<p>\u2705 \u6d4b\u8bd5\u70b9&#xff1a;<\/p>\n<ul>\n<li>\n<p>RPC \u662f\u5426\u80fd\u6b63\u786e\u8fde\u63a5&#xff1f;<\/p>\n<\/li>\n<li>\n<p>\u662f\u5426\u53ef\u4ee5\u83b7\u53d6\u533a\u5757\u6570\u636e&#xff1f;<\/p>\n<\/li>\n<li>\n<p>\u662f\u5426\u53ef\u4ee5\u53d1\u9001\u4ea4\u6613&#xff1f;<\/p>\n<\/li>\n<li>\n<p>\u662f\u5426\u80fd\u6b63\u786e\u89e3\u6790\u667a\u80fd\u5408\u7ea6\u4e8b\u4ef6&#xff1f;<\/p>\n<\/li>\n<\/ul>\n<p>\u2705 \u6d4b\u8bd5\u65b9\u6cd5&#xff1a;<\/p>\n<li>\n<p>\u8fde\u63a5\u6d4b\u8bd5&#xff1a;\u5c1d\u8bd5\u8fde\u63a5\u4e0d\u540c RPC \u63d0\u4f9b\u5546&#xff08;Infura\u3001Alchemy\u3001\u672c\u5730 Geth&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u533a\u5757\u67e5\u8be2\u6d4b\u8bd5&#xff1a;\u8c03\u7528 eth_getBlockByNumber&#xff0c;\u9a8c\u8bc1\u6570\u636e\u8fd4\u56de\u662f\u5426\u6b63\u786e\u3002<\/p>\n<\/li>\n<li>\n<p>\u4ea4\u6613\u6d4b\u8bd5&#xff1a;\u53d1\u9001\u4e00\u7b14\u4ea4\u6613&#xff0c;\u68c0\u67e5\u662f\u5426\u6210\u529f\u4e0a\u94fe\u3002<\/p>\n<\/li>\n<li>\n<p>\u65e5\u5fd7 &amp; \u4e8b\u4ef6\u76d1\u542c&#xff1a;\u76d1\u542c\u667a\u80fd\u5408\u7ea6\u4e8b\u4ef6&#xff0c;\u786e\u4fdd\u6b63\u786e\u89e3\u6790\u3002<\/p>\n<\/li>\n<p>&#x1f4cc; \u793a\u4f8b&#xff1a;\u6d4b\u8bd5 Infura RPC \u662f\u5426\u7a33\u5b9a<\/p>\n<p>it(&#034;\u5e94\u8fd4\u56de\u6709\u6548\u7684\u533a\u5757\u6570\u636e&#034;, async () &#061;&gt; {<br \/>\n  const provider &#061; new ethers.JsonRpcProvider(&#034;https:\/\/mainnet.infura.io\/v3\/YOUR_INFURA_KEY&#034;);<br \/>\n  const block &#061; await provider.getBlockNumber();<br \/>\n  expect(block).toBeGreaterThan(0);<br \/>\n}); <\/p>\n<hr \/>\n<h4>2.2 \u517c\u5bb9\u6027\u6d4b\u8bd5&#xff08;Compatibility Testing&#xff09;<\/h4>\n<p>\u2705 \u6d4b\u8bd5\u70b9&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u662f\u5426\u652f\u6301\u4e0d\u540c\u7f51\u7edc&#xff08;Ethereum\u3001Polygon\u3001BSC&#xff09;&#xff1f;<\/p>\n<\/li>\n<li>\n<p>\u662f\u5426\u517c\u5bb9\u4e0d\u540c RPC \u4f9b\u5e94\u5546&#xff1f;<\/p>\n<\/li>\n<li>\n<p>\u5728\u9ad8\u5e76\u53d1\u60c5\u51b5\u4e0b\u662f\u5426\u7a33\u5b9a&#xff1f;<\/p>\n<\/li>\n<\/ul>\n<p>\u2705 \u6d4b\u8bd5\u65b9\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u9010\u4e2a\u6d4b\u8bd5\u4e0d\u540c\u7f51\u7edc&#xff08;Infura \u2192 Ethereum&#xff0c;Alchemy \u2192 Polygon&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728\u4e0d\u540c\u94b1\u5305\u73af\u5883&#xff08;MetaMask\u3001Trust Wallet&#xff09;\u4e0b\u6d4b\u8bd5\u4ea4\u6613\u53d1\u9001\u3002<\/p>\n<\/li>\n<li>\n<p>\u8fdb\u884c 1000&#043; \u5e76\u53d1 RPC \u8bf7\u6c42&#xff0c;\u68c0\u67e5\u7a33\u5b9a\u6027\u3002<\/p>\n<\/li>\n<\/ul>\n<p>&#x1f4cc; \u793a\u4f8b&#xff1a;\u6d4b\u8bd5\u4e0d\u540c RPC \u4f9b\u5e94\u5546\u7684\u54cd\u5e94\u65f6\u95f4<\/p>\n<p>async function testRPCPerformance(rpcUrl) {<br \/>\n  const provider &#061; new ethers.JsonRpcProvider(rpcUrl);<br \/>\n  const start &#061; Date.now();<br \/>\n  await provider.getBlockNumber();<br \/>\n  console.log(&#096;RPC ${rpcUrl} \u54cd\u5e94\u65f6\u95f4:&#096;, Date.now() &#8211; start, &#034;ms&#034;);<br \/>\n}<br \/>\ntestRPCPerformance(&#034;https:\/\/mainnet.infura.io\/v3\/YOUR_INFURA_KEY&#034;);<br \/>\ntestRPCPerformance(&#034;https:\/\/polygon-mainnet.alchemyapi.io\/v2\/YOUR_ALCHEMY_KEY&#034;); <\/p>\n<hr \/>\n<h4>2.3 \u5b89\u5168\u6d4b\u8bd5&#xff08;Security Testing&#xff09;<\/h4>\n<p>\u2705 \u6d4b\u8bd5\u70b9&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u662f\u5426\u5b58\u5728\u672a\u6388\u6743\u8bbf\u95ee&#xff1f;<\/p>\n<\/li>\n<li>\n<p>\u662f\u5426\u80fd\u9632\u6b62\u4e2d\u95f4\u4eba\u653b\u51fb&#xff08;MITM&#xff09;&#xff1f;<\/p>\n<\/li>\n<li>\n<p>\u662f\u5426\u9632\u6b62 RPC \u52ab\u6301&#xff1f;<\/p>\n<\/li>\n<\/ul>\n<p>\u2705 \u6d4b\u8bd5\u65b9\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u4f7f\u7528 Wireshark \u6293\u5305&#xff0c;\u68c0\u67e5\u662f\u5426\u6709\u660e\u6587\u4f20\u8f93\u7684\u79c1\u94a5\u3002<\/p>\n<\/li>\n<li>\n<p>\u6d4b\u8bd5 Web3.js \u662f\u5426\u4f1a\u81ea\u52a8\u8fde\u63a5\u6076\u610f RPC URL\u3002<\/p>\n<\/li>\n<li>\n<p>\u786e\u4fdd\u524d\u7aef\u4e0d\u4f1a\u66b4\u9732\u79c1\u94a5\u3001\u52a9\u8bb0\u8bcd\u3002<\/p>\n<\/li>\n<\/ul>\n<p>&#x1f4cc; \u793a\u4f8b&#xff1a;\u68c0\u67e5\u662f\u5426\u66b4\u9732\u654f\u611f\u6570\u636e<\/p>\n<p>const provider &#061; new ethers.JsonRpcProvider(&#034;https:\/\/malicious-rpc.com&#034;);<br \/>\nprovider.getBalance(&#034;0xYourAddress&#034;).then(console.log); \/\/ \u68c0\u67e5\u662f\u5426\u8fd4\u56de\u5f02\u5e38\u6570\u636e <\/p>\n<hr \/>\n<h4>2.4 \u6027\u80fd\u6d4b\u8bd5&#xff08;Performance Testing&#xff09;<\/h4>\n<p>\u2705 \u6d4b\u8bd5\u70b9&#xff1a;<\/p>\n<ul>\n<li>\n<p>RPC \u54cd\u5e94\u65f6\u95f4\u662f\u5426\u7a33\u5b9a&#xff1f;<\/p>\n<\/li>\n<li>\n<p>\u9ad8\u5e76\u53d1\u4e0b\u662f\u5426\u6709\u5ef6\u8fdf&#xff1f;<\/p>\n<\/li>\n<li>\n<p>\u4ea4\u6613\u63d0\u4ea4\u901f\u5ea6\u662f\u5426\u53ef\u63a5\u53d7&#xff1f;<\/p>\n<\/li>\n<\/ul>\n<p>\u2705 \u6d4b\u8bd5\u65b9\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u53d1\u9001 1000 \u6b21 eth_call&#xff0c;\u7edf\u8ba1\u5e73\u5747\u54cd\u5e94\u65f6\u95f4\u3002<\/p>\n<\/li>\n<li>\n<p>\u89c2\u5bdf\u9ad8\u5e76\u53d1\u4e0b\u7684 TPS&#xff08;\u6bcf\u79d2\u4e8b\u52a1\u6570&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<p>&#x1f4cc; \u793a\u4f8b&#xff1a;\u6279\u91cf\u53d1\u9001 RPC \u8bf7\u6c42\u6d4b\u8bd5\u541e\u5410\u91cf<\/p>\n<p>async function stressTestRPC(rpcUrl, count) {<br \/>\n  const provider &#061; new ethers.JsonRpcProvider(rpcUrl);<br \/>\n  const promises &#061; [];<br \/>\n  for (let i &#061; 0; i &lt; count; i&#043;&#043;) {<br \/>\n    promises.push(provider.getBlockNumber());<br \/>\n  }<br \/>\n  const results &#061; await Promise.all(promises);<br \/>\n  console.log(&#096;\u6267\u884c ${count} \u6b21\u8bf7\u6c42&#xff0c;\u5e73\u5747\u54cd\u5e94\u65f6\u95f4&#xff1a;&#096;, results.length \/ count, &#034;ms&#034;);<br \/>\n}<br \/>\nstressTestRPC(&#034;https:\/\/mainnet.infura.io\/v3\/YOUR_INFURA_KEY&#034;, 1000); <\/p>\n<hr \/>\n<h3>3. \u7ed3\u8bba &amp; \u6700\u4f73\u5b9e\u8df5<\/h3>\n<p>\u2705 \u63a8\u8350\u7684 Web3 \u6d4b\u8bd5\u6d41\u7a0b&#xff1a;<\/p>\n<li>\n<p>\u529f\u80fd\u6d4b\u8bd5&#xff08;\u57fa\u672c RPC \u64cd\u4f5c&#xff0c;\u5982\u83b7\u53d6\u533a\u5757\u3001\u53d1\u9001\u4ea4\u6613&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u517c\u5bb9\u6027\u6d4b\u8bd5&#xff08;\u4e0d\u540c\u7f51\u7edc &amp; \u4f9b\u5e94\u5546&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b89\u5168\u6d4b\u8bd5&#xff08;\u9632\u6b62\u672a\u6388\u6743\u8bbf\u95ee &amp; \u6570\u636e\u6cc4\u9732&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u6027\u80fd\u6d4b\u8bd5&#xff08;\u9ad8\u5e76\u53d1 &amp; \u4ea4\u6613\u541e\u5410\u91cf&#xff09;\u3002<\/p>\n<\/li>\n<p>&#x1f4a1; \u6700\u4f73\u5b9e\u8df5&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u907f\u514d\u4f7f\u7528\u514d\u8d39 RPC&#xff0c;\u53ef\u80fd\u4f1a\u9650\u6d41\u3002<\/p>\n<\/li>\n<li>\n<p>\u4ea4\u6613\u53d1\u9001\u524d&#xff0c;\u68c0\u67e5 gasPrice &amp; gasLimit \u8ba1\u7b97\u662f\u5426\u5408\u7406\u3002<\/p>\n<\/li>\n<li>\n<p>\u76d1\u63a7 RPC \u8bf7\u6c42\u65e5\u5fd7&#xff0c;\u53d1\u73b0\u5f02\u5e38\u53ca\u65f6\u5207\u6362\u8282\u70b9\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u533a\u5757\u94fe RPC \u662f DApp \u7684\u6838\u5fc3\u7ec4\u4ef6&#xff0c;\u6d4b\u8bd5\u5de5\u7a0b\u5e08\u9700\u8981\u786e\u4fdd\u5176 \u7a33\u5b9a\u6027\u3001\u5b89\u5168\u6027\u548c\u517c\u5bb9\u6027\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u5e2e\u4f60\u5feb\u901f\u4e0a\u624b Web3 RPC \u6d4b\u8bd5&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.6k\u6b21\uff0c\u70b9\u8d5e54\u6b21\uff0c\u6536\u85cf42\u6b21\u3002\u533a\u5757\u94fe\u662f\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u7684\u5206\u5e03\u5f0f\u7f51\u7edc\uff0c\u6240\u6709\u6570\u636e\u90fd\u5b58\u50a8\u5728\u591a\u4e2a\u8282\u70b9\uff08Node\uff09\u4e0a\u3002\u6bcf\u4e2a\u8282\u70b9\u90fd\u53ef\u4ee5\u5b58\u50a8\u533a\u5757\u94fe\u6570\u636e\uff0c\u5e76\u5904\u7406\u4ea4\u6613\u3002\u8282\u70b9\u7684\u4e3b\u8981\u7c7b\u578b\uff1a\u5168\u8282\u70b9\uff08Full Node\uff09\uff1a\u5b58\u50a8\u5b8c\u6574\u7684\u533a\u5757\u94fe\u6570\u636e\uff0c\u9a8c\u8bc1\u6240\u6709\u4ea4\u6613\u3002\u8f7b\u8282\u70b9\uff08Light Node\uff09\uff1a\u4ec5\u5b58\u50a8\u533a\u5757\u5934\uff0c\u4f9d\u8d56\u5168\u8282\u70b9\u83b7\u53d6\u8be6\u7ec6\u6570\u636e\u3002\u5f52\u6863\u8282\u70b9\uff08Archive Node\uff09\uff1a\u5b58\u50a8\u5b8c\u6574\u7684\u5386\u53f2\u4ea4\u6613\u6570\u636e\u3002_rpc\u8282\u70b9<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1416,3179],"topic":[],"class_list":["post-36810","post","type-post","status-publish","format-standard","hentry","category-server","tag-web3","tag-3179"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u533a\u5757\u94fe\u8282\u70b9 &amp; RPC \u6d4b\u8bd5\u7b14\u8bb0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/36810.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u533a\u5757\u94fe\u8282\u70b9 &amp; RPC \u6d4b\u8bd5\u7b14\u8bb0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.6k\u6b21\uff0c\u70b9\u8d5e54\u6b21\uff0c\u6536\u85cf42\u6b21\u3002\u533a\u5757\u94fe\u662f\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u7684\u5206\u5e03\u5f0f\u7f51\u7edc\uff0c\u6240\u6709\u6570\u636e\u90fd\u5b58\u50a8\u5728\u591a\u4e2a\u8282\u70b9\uff08Node\uff09\u4e0a\u3002\u6bcf\u4e2a\u8282\u70b9\u90fd\u53ef\u4ee5\u5b58\u50a8\u533a\u5757\u94fe\u6570\u636e\uff0c\u5e76\u5904\u7406\u4ea4\u6613\u3002\u8282\u70b9\u7684\u4e3b\u8981\u7c7b\u578b\uff1a\u5168\u8282\u70b9\uff08Full Node\uff09\uff1a\u5b58\u50a8\u5b8c\u6574\u7684\u533a\u5757\u94fe\u6570\u636e\uff0c\u9a8c\u8bc1\u6240\u6709\u4ea4\u6613\u3002\u8f7b\u8282\u70b9\uff08Light Node\uff09\uff1a\u4ec5\u5b58\u50a8\u533a\u5757\u5934\uff0c\u4f9d\u8d56\u5168\u8282\u70b9\u83b7\u53d6\u8be6\u7ec6\u6570\u636e\u3002\u5f52\u6863\u8282\u70b9\uff08Archive Node\uff09\uff1a\u5b58\u50a8\u5b8c\u6574\u7684\u5386\u53f2\u4ea4\u6613\u6570\u636e\u3002_rpc\u8282\u70b9\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/36810.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-12T08:02:42+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36810.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/36810.html\",\"name\":\"\u533a\u5757\u94fe\u8282\u70b9 &amp; RPC \u6d4b\u8bd5\u7b14\u8bb0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-12T08:02:42+00:00\",\"dateModified\":\"2025-05-12T08:02:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/36810.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/36810.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36810.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u533a\u5757\u94fe\u8282\u70b9 &amp; RPC \u6d4b\u8bd5\u7b14\u8bb0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u533a\u5757\u94fe\u8282\u70b9 &amp; RPC \u6d4b\u8bd5\u7b14\u8bb0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/36810.html","og_locale":"zh_CN","og_type":"article","og_title":"\u533a\u5757\u94fe\u8282\u70b9 &amp; RPC \u6d4b\u8bd5\u7b14\u8bb0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.6k\u6b21\uff0c\u70b9\u8d5e54\u6b21\uff0c\u6536\u85cf42\u6b21\u3002\u533a\u5757\u94fe\u662f\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u7684\u5206\u5e03\u5f0f\u7f51\u7edc\uff0c\u6240\u6709\u6570\u636e\u90fd\u5b58\u50a8\u5728\u591a\u4e2a\u8282\u70b9\uff08Node\uff09\u4e0a\u3002\u6bcf\u4e2a\u8282\u70b9\u90fd\u53ef\u4ee5\u5b58\u50a8\u533a\u5757\u94fe\u6570\u636e\uff0c\u5e76\u5904\u7406\u4ea4\u6613\u3002\u8282\u70b9\u7684\u4e3b\u8981\u7c7b\u578b\uff1a\u5168\u8282\u70b9\uff08Full Node\uff09\uff1a\u5b58\u50a8\u5b8c\u6574\u7684\u533a\u5757\u94fe\u6570\u636e\uff0c\u9a8c\u8bc1\u6240\u6709\u4ea4\u6613\u3002\u8f7b\u8282\u70b9\uff08Light Node\uff09\uff1a\u4ec5\u5b58\u50a8\u533a\u5757\u5934\uff0c\u4f9d\u8d56\u5168\u8282\u70b9\u83b7\u53d6\u8be6\u7ec6\u6570\u636e\u3002\u5f52\u6863\u8282\u70b9\uff08Archive Node\uff09\uff1a\u5b58\u50a8\u5b8c\u6574\u7684\u5386\u53f2\u4ea4\u6613\u6570\u636e\u3002_rpc\u8282\u70b9","og_url":"https:\/\/www.wsisp.com\/helps\/36810.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-12T08:02:42+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/36810.html","url":"https:\/\/www.wsisp.com\/helps\/36810.html","name":"\u533a\u5757\u94fe\u8282\u70b9 &amp; RPC \u6d4b\u8bd5\u7b14\u8bb0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-12T08:02:42+00:00","dateModified":"2025-05-12T08:02:42+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/36810.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/36810.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/36810.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u533a\u5757\u94fe\u8282\u70b9 &amp; RPC \u6d4b\u8bd5\u7b14\u8bb0"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/36810","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=36810"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/36810\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=36810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=36810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=36810"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=36810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}