{"id":491391,"date":"2026-08-19T08:25:32","date_gmt":"2026-08-19T08:25:32","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=491391"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2026-08-19T08:25:32","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=491391","title":{"rendered":"\u041f\u0435\u0440\u0432\u0430\u044f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u0432 Ethereum \u0438\u0437 TypeScript: 20 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430 \u0438 \u0442\u0440\u0438 \u0433\u0440\u0430\u0431\u043b\u0438 \u043f\u043e \u0434\u043e\u0440\u043e\u0433\u0435"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 <a href=\"https:\/\/habr.com\/ru\/articles\/1067392\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u044f \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043b \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d \u043a\u0430\u043a append-only \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 &#8212; \u0441\u043f\u043b\u043e\u0448\u043d\u0430\u044f \u0442\u0435\u043e\u0440\u0438\u044f \u0438 \u043e\u0434\u043d\u0430 read-only \u043a\u043e\u043c\u0430\u043d\u0434\u0430. \u0414\u043e\u043b\u0433 \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439 \u043e\u0441\u0442\u0430\u043b\u0441\u044f, \u0438 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0435\u0433\u043e \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e: \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043c \u0432 Ethereum \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0443\u044e \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u0438\u0437 TypeScript-\u0441\u043a\u0440\u0438\u043f\u0442\u0430.<\/p>\n<p>\u0421\u0430\u043c \u043a\u043e\u0434 &#8212; 20 \u0441\u0442\u0440\u043e\u043a \u0438 10 \u043c\u0438\u043d\u0443\u0442. \u041d\u043e \u043f\u043e \u0434\u043e\u0440\u043e\u0433\u0435 \u0432\u0430\u0441 \u0436\u0434\u0443\u0442 \u0442\u0440\u0438 \u0433\u0440\u0430\u0431\u043b\u0438. \u042f \u043d\u0430 \u043d\u0438\u0445 \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u043b \u0441\u0430\u043c, \u043a\u043e\u0433\u0434\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0445\u043e\u0434\u0438\u043b \u0432 web3, \u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u044e, \u043a\u0430\u043a \u043d\u0430 \u0442\u0435 \u0436\u0435 \u0441\u0430\u043c\u044b\u0435 \u0433\u0440\u0430\u0431\u043b\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u044e\u0442 \u043c\u043e\u0438 \u043c\u0435\u043d\u0442\u0438 &#8212; \u0441 \u0437\u0430\u0432\u0438\u0434\u043d\u044b\u043c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u0441\u0442\u0432\u043e\u043c, \u0432 \u043e\u0434\u043d\u043e\u043c \u0438 \u0442\u043e\u043c \u0436\u0435 \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u0420\u0430\u0437\u0431\u0435\u0440\u0443 \u0432\u0441\u0435 \u0442\u0440\u0438 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 &#8212; \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u043b\u044e \u0432\u0430\u043c \u0447\u0430\u0441 \u043e\u0442\u043b\u0430\u0434\u043a\u0438.<\/p>\n<p>\u0412\u0441\u0451 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0435\u0442\u0438 Sepolia: \u044d\u0444\u0438\u0440 \u0442\u0430\u043c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439, \u043e\u0448\u0438\u0431\u043a\u0438 \u0431\u0435\u0437\u0431\u043e\u043b\u0435\u0437\u043d\u0435\u043d\u043d\u044b, \u0430 \u043c\u0435\u0445\u0430\u043d\u0438\u043a\u0430 &#8212; \u0431\u0430\u0439\u0442 \u0432 \u0431\u0430\u0439\u0442 \u043a\u0430\u043a \u0432 \u043c\u0435\u0439\u043d\u043d\u0435\u0442\u0435. \u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u044d\u0444\u0438\u0440 \u0440\u0430\u0437\u0434\u0430\u044e\u0442 \u0444\u043e\u0441\u0435\u0442\u044b-\u00ab\u043a\u0440\u0430\u043d\u0438\u043a\u0438\u00bb, \u0438 \u043e\u043d\u0438 \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u0438\u0432\u044b\u0447\u043a\u0443 \u0443\u043c\u0438\u0440\u0430\u0442\u044c &#8212; \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0436\u0438\u0432\u044b\u0435 \u044f \u0441\u043e\u0431\u0438\u0440\u0430\u044e \u0432 <a href=\"https:\/\/github.com\/blockwright\/kopilka\/blob\/main\/docs\/faucets.md\" rel=\"noopener noreferrer nofollow\">\u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0435<\/a> \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u041a\u043e\u043f\u0438\u043b\u043a\u0438: \u044d\u0442\u043e \u0443\u0447\u0435\u0431\u043d\u044b\u0439 dApp, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u0443\u044e \u043f\u043e \u0445\u043e\u0434\u0443 \u0441\u0435\u0440\u0438\u0438 <a href=\"https:\/\/t.me\/blockwright_dev\" rel=\"noopener noreferrer nofollow\">\u00abWeb3 \u0434\u043b\u044f JS-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432\u00bb<\/a> \u0432 Telegram. \u042d\u0442\u043e\u0442 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b &#8212; \u0435\u0451 \u043f\u044f\u0442\u0430\u044f \u0447\u0430\u0441\u0442\u044c, \u0434\u0430\u043b\u044c\u0448\u0435 \u0441\u0435\u0440\u0438\u044f \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 Solidity.<\/p>\n<h3>\u0427\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f<\/h3>\n<ul>\n<li>\n<p>Node.js 20+ (\u043d\u0443\u0436\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 <code>--env-file<\/code>)<\/p>\n<\/li>\n<li>\n<p>\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043a\u043e\u0448\u0435\u043b\u0451\u043a &#8212; <strong>\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439<\/strong>, \u043d\u0435 \u0442\u043e\u0442, \u0433\u0434\u0435 \u043b\u0435\u0436\u0430\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u043d\u044c\u0433\u0438. \u041f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 \u0441\u0432\u0435\u0436\u0435\u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 MetaMask<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435\u043c\u043d\u043e\u0433\u043e Sepolia ETH &#8212; \u0438\u0437 \u043b\u044e\u0431\u043e\u0433\u043e \u0444\u043e\u0441\u0435\u0442\u0430 \u043f\u043e \u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0435 \u0432\u044b\u0448\u0435; \u0435\u0441\u043b\u0438 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u043d\u0435\u0442 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0430\u0434\u0440\u0435\u0441\u0435, \u0431\u0435\u0440\u0438\u0442\u0435 PoW-\u0444\u043e\u0441\u0435\u0442 pk910 &#8212; \u043e\u043d \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e, \u043a\u0440\u043e\u043c\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0438<\/p>\n<\/li>\n<\/ul>\n<h3>\u0428\u0430\u0433 1. \u041f\u0440\u043e\u0435\u043a\u0442<\/h3>\n<pre><code>mkdir first-tx &amp;&amp; cd first-txnpm init -y &amp;&amp; npm pkg set type=modulenpm i viem &amp;&amp; npm i -D tsx typescript @types\/node<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>type=module<\/code> \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d: \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c top-level await, \u0430 \u0432 CommonJS \u0435\u0433\u043e \u043d\u0435\u0442 &#8212; \u0431\u0435\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 esbuild \u0443\u043f\u0430\u0434\u0451\u0442 \u0441 \u00abTop-level await is currently not supported with the &#171;cjs&#187; output format\u00bb.<\/p>\n<p>viem &#8212; \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 TypeScript-\u043a\u043b\u0438\u0435\u043d\u0442 Ethereum, \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a ethers.js: \u0441\u0442\u0440\u043e\u0433\u0438\u0435 \u0442\u0438\u043f\u044b \u0438 \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043c\u0430\u0433\u0438\u0438.<\/p>\n<h3>\u0428\u0430\u0433 2. \u041a\u043b\u044e\u0447 &#8212; \u0438 \u0433\u0440\u0430\u0431\u043b\u044f \u21161<\/h3>\n<p>\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 (MetaMask: \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432 \u2192 \u0442\u0440\u0438 \u0442\u043e\u0447\u043a\u0438 \u0443 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u2192 Account details \u2192 Private keys) \u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435 \u0435\u0433\u043e \u0432 <code>.env<\/code> \u0432 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<\/p>\n<pre><code>SEPOLIA_PRIVATE_KEY=0x&lt;64 hex-\u0441\u0438\u043c\u0432\u043e\u043b\u0430&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0413\u0440\u0430\u0431\u043b\u044f \u21161: MetaMask \u043e\u0442\u0434\u0430\u0451\u0442 \u043a\u043b\u044e\u0447 \u0431\u0435\u0437 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430 <\/strong><code><strong>0x<\/strong><\/code> &#8212; \u043f\u0440\u043e\u0441\u0442\u043e 64 hex-\u0441\u0438\u043c\u0432\u043e\u043b\u0430. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0436\u0435 \u0436\u0434\u0443\u0442 \u043a\u043b\u044e\u0447 \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c. \u041d\u0435 \u0434\u043e\u043f\u0438\u0448\u0435\u0442\u0435 <code>0x<\/code> \u0441\u0430\u043c\u0438 &#8212; \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0437\u0430\u0433\u0430\u0434\u043e\u0447\u043d\u043e\u0435 \u00abinvalid private key, expected hex or 32 bytes, got string\u00bb \u0438\u0437 \u0433\u043b\u0443\u0431\u0438\u043d \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438.<\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u0436\u0435 &#8212; \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u043e\u0431\u0430 \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430: \u043a\u043b\u044e\u0447 \u0436\u0438\u0432\u0451\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 <code>.env<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043b\u0435\u0436\u0438\u0442 \u0432 <code>.gitignore<\/code>; \u0438 \u044d\u0442\u043e \u043a\u043b\u044e\u0447 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430, \u041d\u0418\u041a\u041e\u0413\u0414\u0410 &#8212; \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e.<\/p>\n<p><strong>\u0413\u0440\u0430\u0431\u043b\u044f \u21162: Node \u043d\u0435 \u0447\u0438\u0442\u0430\u0435\u0442 <\/strong><code><strong>.env<\/strong><\/code><strong> \u0441\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435.<\/strong> \u0424\u0430\u0439\u043b \u043c\u043e\u0436\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u0432 \u043a\u043e\u0440\u043d\u0435 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0433\u043e\u0434\u043d\u043e &#8212; <code>process.env.SEPOLIA_PRIVATE_KEY<\/code> \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f undefined, \u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0437\u0430\u0433\u0430\u0434\u043e\u0447\u043d\u043e\u0435 \u00abCannot read properties of undefined (reading &#8216;slice&#8217;)\u00bb. \u0424\u0430\u0439\u043b \u043d\u0443\u0436\u043d\u043e \u044f\u0432\u043d\u043e \u0441\u043a\u043e\u0440\u043c\u0438\u0442\u044c \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0443 \u0444\u043b\u0430\u0433\u043e\u043c <code>--env-file<\/code> (\u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 Node 20.6) &#8212; \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u0438\u0436\u0435.<\/p>\n<h3>\u0428\u0430\u0433 3. \u041a\u043e\u0434 \u0446\u0435\u043b\u0438\u043a\u043e\u043c<\/h3>\n<pre><code class=\"typescript\">\/\/ send.tsimport { createWalletClient, createPublicClient, http,         parseEther, formatEther } from 'viem';import { privateKeyToAccount } from 'viem\/accounts';import { sepolia } from 'viem\/chains';const pk = process.env.SEPOLIA_PRIVATE_KEY;if (!pk) throw new Error('SEPOLIA_PRIVATE_KEY \u043d\u0435 \u0437\u0430\u0434\u0430\u043d. \u0417\u0430\u043f\u0443\u0441\u043a: npx tsx --env-file=.env send.ts');const account = privateKeyToAccount(pk as `0x${string}`);\/\/ \u0433\u0440\u0430\u0431\u043b\u044f \u21163 \u0436\u0438\u0432\u0451\u0442 \u0432 \u044d\u0442\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0435 \u2014 \u043e \u043d\u0435\u0439 \u043d\u0438\u0436\u0435const RPC = 'https:\/\/ethereum-sepolia-rpc.publicnode.com';const publicClient = createPublicClient({ chain: sepolia, transport: http(RPC) });const wallet = createWalletClient({ account, chain: sepolia, transport: http(RPC) });const balance = await publicClient.getBalance({ address: account.address });console.log('\u0411\u0430\u043b\u0430\u043d\u0441:', formatEther(balance), 'ETH');\/\/ \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c 0.001 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e ETH... \u0441\u0430\u043c\u043e\u043c\u0443 \u0441\u0435\u0431\u0435 \u2014 \u0434\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0430 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043econst hash = await wallet.sendTransaction({  to: account.address,  value: parseEther('0.001'),});console.log('\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430:', hash);console.log('\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c: https:\/\/sepolia.etherscan.io\/tx\/' + hash);const receipt = await publicClient.waitForTransactionReceipt({ hash });console.log('\u0412 \u0431\u043b\u043e\u043a\u0435:', receipt.blockNumber, '\u00b7 \u0441\u0442\u0430\u0442\u0443\u0441:', receipt.status);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a:<\/p>\n<pre><code class=\"bash\">npx tsx --env-file=.env send.ts<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0413\u0440\u0430\u0431\u043b\u044f \u21163: \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f \u043d\u043e\u0434\u0430.<\/strong> \u0415\u0441\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442 \u043a\u0430\u043a <code>http()<\/code> \u0431\u0435\u0437 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430, viem \u043f\u043e\u0439\u0434\u0451\u0442 \u043d\u0430 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 RPC \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e &#8212; \u0438 \u0443 \u0442\u043e\u0433\u043e \u0442\u0430\u043a\u043e\u0439 rate-limit, \u0447\u0442\u043e \u0447\u0442\u0435\u043d\u0438\u0435 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0435\u0449\u0451 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442, \u0430 <code>eth_sendRawTransaction<\/code> \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 429. \u041c\u043e\u0440\u0430\u043b\u044c \u0432\u043f\u043e\u043b\u043d\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u0430\u044f: \u043d\u0435 \u0432\u044b\u0431\u0440\u0430\u043b \u043d\u043e\u0434\u0443 \u0441\u0430\u043c &#8212; \u0437\u0430 \u0442\u0435\u0431\u044f \u0432\u044b\u0431\u0440\u0430\u043b\u0438, \u0438 \u043f\u043b\u043e\u0445\u043e. \u0412 \u043a\u043e\u0434\u0435 \u043d\u043e\u0434\u0430 \u0437\u0430\u0434\u0430\u043d\u0430 \u044f\u0432\u043d\u043e (publicnode &#8212; \u0431\u0435\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u043a\u043b\u044e\u0447\u0435\u0439); \u0441\u043f\u0438\u0441\u043e\u043a \u0436\u0438\u0432\u044b\u0445 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0445 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u043e\u0432 &#8212; \u0432 \u0442\u043e\u0439 \u0436\u0435 <a href=\"https:\/\/github.com\/blockwright\/kopilka\/blob\/main\/docs\/rpc.md\" rel=\"noopener noreferrer nofollow\">\u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0435<\/a>.<\/p>\n<h3>\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e \u0437\u0430 \u044d\u0442\u0438 12 \u0441\u0435\u043a\u0443\u043d\u0434<\/h3>\n<p>\u0412\u044b\u0432\u043e\u0434 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0431\u0443\u0434\u043d\u0438\u0447\u043d\u043e, \u043d\u043e \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u0430\u044f \u0446\u0435\u043f\u043e\u0447\u043a\u0430:<\/p>\n<ol>\n<li>\n<p><strong>\u041f\u043e\u0434\u043f\u0438\u0441\u044c &#8212; \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e.<\/strong> viem \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043b \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c \u043f\u0440\u044f\u043c\u043e \u043d\u0430 \u0432\u0430\u0448\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u0435. \u041a\u043b\u044e\u0447 \u043d\u0435 \u0443\u0448\u0451\u043b \u043d\u0438\u043a\u0443\u0434\u0430: \u0432 \u0441\u0435\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0431\u0430\u0439\u0442\u044b. \u0412 \u044d\u0442\u043e\u043c \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u00ab\u043f\u0430\u0440\u043e\u043b\u044f\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u0443.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0431\u0430\u0439\u0442\u044b \u0443\u043b\u0435\u0442\u0435\u043b\u0438 \u043d\u0430 \u043d\u043e\u0434\u0443 \u0432\u044b\u0437\u043e\u0432\u043e\u043c <code>eth_sendRawTransaction<\/code> &#8212; \u044d\u0442\u043e JSON-RPC, \u0442\u043e\u0442 \u0436\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0445\u043e\u0434\u0438\u0442 MetaMask \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u0435\u0441\u044c web3.<\/p>\n<\/li>\n<li>\n<p>\u0422\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u043b\u0430 \u0432 <a href=\"https:\/\/t.me\/blockwright_dev\/19\" rel=\"noopener noreferrer nofollow\"><strong>\u043c\u0435\u043c\u043f\u0443\u043b\u0435<\/strong><\/a> &#8212; \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432, \u043e\u0442\u043a\u0443\u0434\u0430 \u0432\u0430\u043b\u0438\u0434\u0430\u0442\u043e\u0440\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442 \u0431\u043b\u043e\u043a\u0438, \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0437\u0438\u0440\u0443\u044f \u043f\u043e \u0446\u0435\u043d\u0435 \u0433\u0430\u0437\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0412\u0430\u043b\u0438\u0434\u0430\u0442\u043e\u0440 \u0432\u043a\u043b\u044e\u0447\u0438\u043b \u0435\u0451 \u0432 \u0431\u043b\u043e\u043a &#8212; \u043d\u043e\u0432\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0432 append-only \u043b\u043e\u0433\u0435 \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438. \u041d\u0430\u0432\u0441\u0435\u0433\u0434\u0430.<\/p>\n<\/li>\n<li>\n<p><code>waitForTransactionReceipt<\/code> \u0434\u043e\u0436\u0434\u0430\u043b\u0441\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u0432\u0435\u0440\u043d\u0443\u043b \u043a\u0432\u0438\u0442\u0430\u043d\u0446\u0438\u044e: \u043d\u043e\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430, \u0441\u0442\u0430\u0442\u0443\u0441, \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0433\u0430\u0437.<\/p>\n<\/li>\n<\/ol>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u0438\u0437 \u0432\u044b\u0432\u043e\u0434\u0430: \u0432\u0430\u0448\u0430 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043b\u0435\u0436\u0438\u0442 \u0432 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e\u043c \u043b\u043e\u0433\u0435 &#8212; \u0431\u043b\u043e\u043a, \u0433\u0430\u0437, \u043f\u043e\u0434\u043f\u0438\u0441\u044c, \u0432\u0441\u0451 \u043d\u0430 \u0432\u0438\u0442\u0440\u0438\u043d\u0435. \u042d\u0442\u043e \u0443\u0436\u0435 \u043d\u0435 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b, \u044d\u0442\u043e \u043e\u043d\u0447\u0435\u0439\u043d-\u0444\u0430\u043a\u0442.<\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u043f\u0440\u043e \u00ab\u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u0430\u043c\u043e\u043c\u0443 \u0441\u0435\u0431\u0435\u00bb: \u044d\u0442\u043e \u043d\u0435 \u0442\u0440\u044e\u043a, \u0430 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0430\u044f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f. \u0421\u0435\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c, \u0441\u043f\u0438\u0441\u0430\u043b\u0430 \u0433\u0430\u0437 \u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u043b\u0430 \u0435\u0451 \u0432 \u0432\u0435\u0447\u043d\u043e\u0441\u0442\u044c \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c \u0441\u043e\u0432\u043f\u0430\u043b\u0438. \u0418\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u0448\u0430\u0433: \u043f\u0440\u043e\u043c\u0430\u0445\u043d\u0443\u0442\u044c\u0441\u044f \u0430\u0434\u0440\u0435\u0441\u043e\u043c \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.<\/p>\n<h3>\u0427\u0435\u043a\u043b\u0438\u0441\u0442 \u0433\u0440\u0430\u0431\u043b\u0435\u0439<\/h3>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0421\u0438\u043c\u043f\u0442\u043e\u043c<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041f\u0440\u0438\u0447\u0438\u043d\u0430<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041b\u0435\u0447\u0435\u043d\u0438\u0435<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>invalid private key, expected hex or 32 bytes<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043a\u043b\u044e\u0447 \u0438\u0437 MetaMask \u0431\u0435\u0437 <code>0x<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c <code>0x<\/code> \u0432 \u043d\u0430\u0447\u0430\u043b\u043e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>Cannot read properties of undefined (reading 'slice')<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">Node \u043d\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b <code>.env<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>npx tsx --env-file=.env send.ts<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>HTTP request failed. Status: 429<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0434\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0430\u044f \u043d\u043e\u0434\u0430 viem<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u044f\u0432\u043d\u044b\u0439 RPC: <code>http('<\/code><a href=\"https:\/\/ethereum-sepolia-rpc.publicnode.com\" rel=\"noopener noreferrer nofollow\"><code>https:\/\/ethereum-sepolia-rpc.publicnode.com<\/code><\/a><code>')<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>Top-level await is currently not supported<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043f\u0440\u043e\u0435\u043a\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a CommonJS<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>npm pkg set type=module<\/code><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435<\/h3>\n<p>\u042d\u0442\u043e \u043f\u044f\u0442\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u0435\u0440\u0438\u0438 \u00abWeb3 \u0434\u043b\u044f JS-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432\u00bb, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u044f \u0432\u0435\u0434\u0443 \u0432 Telegram: \u0434\u0432\u0430 \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e \u043f\u043b\u044e\u0441 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432 \u043f\u043e \u0431\u0443\u0434\u043d\u044f\u043c, \u0432\u0441\u0451 \u0447\u0435\u0440\u0435\u0437 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0438\u0437 \u043c\u0438\u0440\u0430 web2 &#8212; Postgres, Kafka, git. \u041f\u043e \u0445\u043e\u0434\u0443 \u0441\u0435\u0440\u0438\u0438 \u0441\u0442\u0440\u043e\u0438\u043c \u041a\u043e\u043f\u0438\u043b\u043a\u0443 &#8212; \u0443\u0447\u0435\u0431\u043d\u044b\u0439 dApp \u0441 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u043e\u043c \u043d\u0430 Solidity \u0438 React-\u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u043e\u043c, \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u043e\u0442\u043a\u0440\u044b\u0442, \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u043e\u0441\u0442 &#8212; git-\u0442\u0435\u0433.<\/p>\n<ul>\n<li>\n<p>\u0421\u0435\u0440\u0438\u044f: <a href=\"https:\/\/t.me\/blockwright_dev\" rel=\"noopener noreferrer nofollow\">t.me\/blockwright_dev<\/a><\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u0434 \u044d\u0442\u043e\u0433\u043e \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430: <a href=\"https:\/\/github.com\/blockwright\/kopilka\" rel=\"noopener noreferrer nofollow\">github.com\/blockwright\/kopilka<\/a>, \u0442\u0435\u0433 <code>post-05<\/code><\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u043e \u043f\u043b\u0430\u043d\u0443 &#8212; Solidity: \u043f\u0438\u0448\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442<\/p>\n<\/li>\n<\/ul>\n<p><em>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440: \u0432\u0441\u0451 \u0432\u044b\u0448\u0435 &#8212; \u0443\u0447\u0435\u0431\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0435\u0442\u0438. \u041d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u043d\u044c\u0433\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 &#8212; \u0434\u0430\u0436\u0435 \u0438\u0437 \u044d\u0442\u043e\u0439.<\/em><\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1071936\/\">https:\/\/habr.com\/ru\/articles\/1071936\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043b \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d \u043a\u0430\u043a append-only \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 &#8212; \u0441\u043f\u043b\u043e\u0448\u043d\u0430\u044f \u0442\u0435\u043e\u0440\u0438\u044f \u0438 \u043e\u0434\u043d\u0430 read-only \u043a\u043e\u043c\u0430\u043d\u0434\u0430. \u0414\u043e\u043b\u0433 \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439 \u043e\u0441\u0442\u0430\u043b\u0441\u044f, \u0438 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0435\u0433\u043e \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e: \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043c \u0432 Ethereum \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0443\u044e \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u0438\u0437 TypeScript-\u0441\u043a\u0440\u0438\u043f\u0442\u0430.\u0421\u0430\u043c \u043a\u043e\u0434 &#8212; 20 \u0441\u0442\u0440\u043e\u043a \u0438 10 \u043c\u0438\u043d\u0443\u0442. \u041d\u043e \u043f\u043e \u0434\u043e\u0440\u043e\u0433\u0435 \u0432\u0430\u0441 \u0436\u0434\u0443\u0442 \u0442\u0440\u0438 \u0433\u0440\u0430\u0431\u043b\u0438. \u042f \u043d\u0430 \u043d\u0438\u0445 \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u043b \u0441\u0430\u043c, \u043a\u043e\u0433\u0434\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0445\u043e\u0434\u0438\u043b \u0432 web3, \u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u044e, \u043a\u0430\u043a \u043d\u0430 \u0442\u0435 \u0436\u0435 \u0441\u0430\u043c\u044b\u0435 \u0433\u0440\u0430\u0431\u043b\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u044e\u0442 \u043c\u043e\u0438 \u043c\u0435\u043d\u0442\u0438 &#8212; \u0441 \u0437\u0430\u0432\u0438\u0434\u043d\u044b\u043c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u0441\u0442\u0432\u043e\u043c, \u0432 \u043e\u0434\u043d\u043e\u043c \u0438 \u0442\u043e\u043c \u0436\u0435 \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u0420\u0430\u0437\u0431\u0435\u0440\u0443 \u0432\u0441\u0435 \u0442\u0440\u0438 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 &#8212; \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u043b\u044e \u0432\u0430\u043c \u0447\u0430\u0441 \u043e\u0442\u043b\u0430\u0434\u043a\u0438.\u0412\u0441\u0451 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0435\u0442\u0438 Sepolia: \u044d\u0444\u0438\u0440 \u0442\u0430\u043c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439, \u043e\u0448\u0438\u0431\u043a\u0438 \u0431\u0435\u0437\u0431\u043e\u043b\u0435\u0437\u043d\u0435\u043d\u043d\u044b, \u0430 \u043c\u0435\u0445\u0430\u043d\u0438\u043a\u0430 &#8212; \u0431\u0430\u0439\u0442 \u0432 \u0431\u0430\u0439\u0442 \u043a\u0430\u043a \u0432 \u043c\u0435\u0439\u043d\u043d\u0435\u0442\u0435. \u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u044d\u0444\u0438\u0440 \u0440\u0430\u0437\u0434\u0430\u044e\u0442 \u0444\u043e\u0441\u0435\u0442\u044b-\u00ab\u043a\u0440\u0430\u043d\u0438\u043a\u0438\u00bb, \u0438 \u043e\u043d\u0438 \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u0438\u0432\u044b\u0447\u043a\u0443 \u0443\u043c\u0438\u0440\u0430\u0442\u044c &#8212; \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0436\u0438\u0432\u044b\u0435 \u044f \u0441\u043e\u0431\u0438\u0440\u0430\u044e \u0432 \u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0435 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u041a\u043e\u043f\u0438\u043b\u043a\u0438: \u044d\u0442\u043e \u0443\u0447\u0435\u0431\u043d\u044b\u0439 dApp, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u0443\u044e \u043f\u043e \u0445\u043e\u0434\u0443 \u0441\u0435\u0440\u0438\u0438 \u00abWeb3 \u0434\u043b\u044f JS-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432\u00bb \u0432 Telegram. \u042d\u0442\u043e\u0442 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b &#8212; \u0435\u0451 \u043f\u044f\u0442\u0430\u044f \u0447\u0430\u0441\u0442\u044c, \u0434\u0430\u043b\u044c\u0448\u0435 \u0441\u0435\u0440\u0438\u044f \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 Solidity.\u0427\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044fNode.js 20+ (\u043d\u0443\u0436\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 &#8212;env-file)\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043a\u043e\u0448\u0435\u043b\u0451\u043a &#8212; \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439, \u043d\u0435 \u0442\u043e\u0442, \u0433\u0434\u0435 \u043b\u0435\u0436\u0430\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u043d\u044c\u0433\u0438. \u041f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 \u0441\u0432\u0435\u0436\u0435\u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 MetaMask\u041d\u0435\u043c\u043d\u043e\u0433\u043e Sepolia ETH &#8212; \u0438\u0437 \u043b\u044e\u0431\u043e\u0433\u043e \u0444\u043e\u0441\u0435\u0442\u0430 \u043f\u043e \u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0435 \u0432\u044b\u0448\u0435; \u0435\u0441\u043b\u0438 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u043d\u0435\u0442 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0430\u0434\u0440\u0435\u0441\u0435, \u0431\u0435\u0440\u0438\u0442\u0435 PoW-\u0444\u043e\u0441\u0435\u0442 pk910 &#8212; \u043e\u043d \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e, \u043a\u0440\u043e\u043c\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0438\u0428\u0430\u0433 1. \u041f\u0440\u043e\u0435\u043a\u0442mkdir first-tx &amp;&amp; cd first-txnpm init -y &amp;&amp; npm pkg set type=modulenpm i viem &amp;&amp; npm i -D tsx typescript @types\/nodetype=module \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d: \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c top-level await, \u0430 \u0432 CommonJS \u0435\u0433\u043e \u043d\u0435\u0442 &#8212; \u0431\u0435\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 esbuild \u0443\u043f\u0430\u0434\u0451\u0442 \u0441 \u00abTop-level await is currently not supported with the &#171;cjs&#187; output format\u00bb.viem &#8212; \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 TypeScript-\u043a\u043b\u0438\u0435\u043d\u0442 Ethereum, \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a ethers.js: \u0441\u0442\u0440\u043e\u0433\u0438\u0435 \u0442\u0438\u043f\u044b \u0438 \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043c\u0430\u0433\u0438\u0438.\u0428\u0430\u0433 2. \u041a\u043b\u044e\u0447 &#8212; \u0438 \u0433\u0440\u0430\u0431\u043b\u044f \u21161\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 (MetaMask: \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432 \u2192 \u0442\u0440\u0438 \u0442\u043e\u0447\u043a\u0438 \u0443 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u2192 Account details \u2192 Private keys) \u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435 \u0435\u0433\u043e \u0432 .env \u0432 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:SEPOLIA_PRIVATE_KEY=0x&lt;64 hex-\u0441\u0438\u043c\u0432\u043e\u043b\u0430&gt;\u0413\u0440\u0430\u0431\u043b\u044f \u21161: MetaMask \u043e\u0442\u0434\u0430\u0451\u0442 \u043a\u043b\u044e\u0447 \u0431\u0435\u0437 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430 0x &#8212; \u043f\u0440\u043e\u0441\u0442\u043e 64 hex-\u0441\u0438\u043c\u0432\u043e\u043b\u0430. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0436\u0435 \u0436\u0434\u0443\u0442 \u043a\u043b\u044e\u0447 \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c. \u041d\u0435 \u0434\u043e\u043f\u0438\u0448\u0435\u0442\u0435 0x \u0441\u0430\u043c\u0438 &#8212; \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0437\u0430\u0433\u0430\u0434\u043e\u0447\u043d\u043e\u0435 \u00abinvalid private key, expected hex or 32 bytes, got string\u00bb \u0438\u0437 \u0433\u043b\u0443\u0431\u0438\u043d \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438.\u0421\u0440\u0430\u0437\u0443 \u0436\u0435 &#8212; \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u043e\u0431\u0430 \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430: \u043a\u043b\u044e\u0447 \u0436\u0438\u0432\u0451\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 .env, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043b\u0435\u0436\u0438\u0442 \u0432 .gitignore; \u0438 \u044d\u0442\u043e \u043a\u043b\u044e\u0447 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430, \u041d\u0418\u041a\u041e\u0413\u0414\u0410 &#8212; \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e.\u0413\u0440\u0430\u0431\u043b\u044f \u21162: Node \u043d\u0435 \u0447\u0438\u0442\u0430\u0435\u0442 .env \u0441\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435. \u0424\u0430\u0439\u043b \u043c\u043e\u0436\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u0432 \u043a\u043e\u0440\u043d\u0435 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0433\u043e\u0434\u043d\u043e &#8212; process.env.SEPOLIA_PRIVATE_KEY \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f undefined, \u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0437\u0430\u0433\u0430\u0434\u043e\u0447\u043d\u043e\u0435 \u00abCannot read properties of undefined (reading &#8216;slice&#8217;)\u00bb. \u0424\u0430\u0439\u043b \u043d\u0443\u0436\u043d\u043e \u044f\u0432\u043d\u043e \u0441\u043a\u043e\u0440\u043c\u0438\u0442\u044c \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0443 \u0444\u043b\u0430\u0433\u043e\u043c &#8212;env-file (\u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 Node 20.6) &#8212; \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u0438\u0436\u0435.\u0428\u0430\u0433 3. \u041a\u043e\u0434 \u0446\u0435\u043b\u0438\u043a\u043e\u043c\/\/ send.tsimport { createWalletClient, createPublicClient, http,         parseEther, formatEther } from &#8216;viem&#8217;;import { privateKeyToAccount } from &#8216;viem\/accounts&#8217;;import { sepolia } from &#8216;viem\/chains&#8217;;const pk = process.env.SEPOLIA_PRIVATE_KEY;if (!pk) throw new Error(&#8216;SEPOLIA_PRIVATE_KEY \u043d\u0435 \u0437\u0430\u0434\u0430\u043d. \u0417\u0430\u043f\u0443\u0441\u043a: npx tsx &#8212;env-file=.env send.ts&#8217;);const account = privateKeyToAccount(pk as `0x${string}`);\/\/ \u0433\u0440\u0430\u0431\u043b\u044f \u21163 \u0436\u0438\u0432\u0451\u0442 \u0432 \u044d\u0442\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0435 \u2014 \u043e \u043d\u0435\u0439 \u043d\u0438\u0436\u0435const RPC = &#8216;https:\/\/ethereum-sepolia-rpc.publicnode.com&#8217;;const publicClient = createPublicClient({ chain: sepolia, transport: http(RPC) });const wallet = createWalletClient({ account, chain: sepolia, transport: http(RPC) });const balance = await publicClient.getBalance({ address: account.address });console.log(&#8216;\u0411\u0430\u043b\u0430\u043d\u0441:&#8217;, formatEther(balance), &#8216;ETH&#8217;);\/\/ \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c 0.001 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e ETH&#8230; \u0441\u0430\u043c\u043e\u043c\u0443 \u0441\u0435\u0431\u0435 \u2014 \u0434\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0430 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043econst hash = await wallet.sendTransaction({  to: account.address,  value: parseEther(&#8216;0.001&#8217;),});console.log(&#8216;\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430:&#8217;, hash);console.log(&#8216;\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c: https:\/\/sepolia.etherscan.io\/tx\/&#8217; + hash);const receipt = await publicClient.waitForTransactionReceipt({ hash });console.log(&#8216;\u0412 \u0431\u043b\u043e\u043a\u0435:&#8217;, receipt.blockNumber, &#8216;\u00b7 \u0441\u0442\u0430\u0442\u0443\u0441:&#8217;, receipt.status);\u0417\u0430\u043f\u0443\u0441\u043a:npx tsx &#8212;env-file=.env send.ts\u0413\u0440\u0430\u0431\u043b\u044f \u21163: \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f \u043d\u043e\u0434\u0430. \u0415\u0441\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442 \u043a\u0430\u043a http() \u0431\u0435\u0437 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430, viem \u043f\u043e\u0439\u0434\u0451\u0442 \u043d\u0430 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 RPC \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e &#8212; \u0438 \u0443 \u0442\u043e\u0433\u043e \u0442\u0430\u043a\u043e\u0439 rate-limit, \u0447\u0442\u043e \u0447\u0442\u0435\u043d\u0438\u0435 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0435\u0449\u0451 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442, \u0430 eth_sendRawTransaction \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 429. \u041c\u043e\u0440\u0430\u043b\u044c \u0432\u043f\u043e\u043b\u043d\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u0430\u044f: \u043d\u0435 \u0432\u044b\u0431\u0440\u0430\u043b \u043d\u043e\u0434\u0443 \u0441\u0430\u043c &#8212; \u0437\u0430 \u0442\u0435\u0431\u044f \u0432\u044b\u0431\u0440\u0430\u043b\u0438, \u0438 \u043f\u043b\u043e\u0445\u043e. \u0412 \u043a\u043e\u0434\u0435 \u043d\u043e\u0434\u0430 \u0437\u0430\u0434\u0430\u043d\u0430 \u044f\u0432\u043d\u043e (publicnode &#8212; \u0431\u0435\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u043a\u043b\u044e\u0447\u0435\u0439); \u0441\u043f\u0438\u0441\u043e\u043a \u0436\u0438\u0432\u044b\u0445 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0445 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u043e\u0432 &#8212; \u0432 \u0442\u043e\u0439 \u0436\u0435 \u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0435.\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e \u0437\u0430 \u044d\u0442\u0438 12 \u0441\u0435\u043a\u0443\u043d\u0434\u0412\u044b\u0432\u043e\u0434 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0431\u0443\u0434\u043d\u0438\u0447\u043d\u043e, \u043d\u043e \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u0430\u044f \u0446\u0435\u043f\u043e\u0447\u043a\u0430:\u041f\u043e\u0434\u043f\u0438\u0441\u044c &#8212; \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e. viem \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043b \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c \u043f\u0440\u044f\u043c\u043e \u043d\u0430 \u0432\u0430\u0448\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u0435. \u041a\u043b\u044e\u0447 \u043d\u0435 \u0443\u0448\u0451\u043b \u043d\u0438\u043a\u0443\u0434\u0430: \u0432 \u0441\u0435\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0431\u0430\u0439\u0442\u044b. \u0412 \u044d\u0442\u043e\u043c \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u00ab\u043f\u0430\u0440\u043e\u043b\u044f\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u0443.\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0431\u0430\u0439\u0442\u044b \u0443\u043b\u0435\u0442\u0435\u043b\u0438 \u043d\u0430 \u043d\u043e\u0434\u0443 \u0432\u044b\u0437\u043e\u0432\u043e\u043c eth_sendRawTransaction &#8212; \u044d\u0442\u043e JSON-RPC, \u0442\u043e\u0442 \u0436\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0445\u043e\u0434\u0438\u0442 MetaMask \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u0435\u0441\u044c web3.\u0422\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u043b\u0430 \u0432 \u043c\u0435\u043c\u043f\u0443\u043b\u0435 &#8212; \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432, \u043e\u0442\u043a\u0443\u0434\u0430 \u0432\u0430\u043b\u0438\u0434\u0430\u0442\u043e\u0440\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442 \u0431\u043b\u043e\u043a\u0438, \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0437\u0438\u0440\u0443\u044f \u043f\u043e \u0446\u0435\u043d\u0435 \u0433\u0430\u0437\u0430.\u0412\u0430\u043b\u0438\u0434\u0430\u0442\u043e\u0440 \u0432\u043a\u043b\u044e\u0447\u0438\u043b \u0435\u0451 \u0432 \u0431\u043b\u043e\u043a &#8212; \u043d\u043e\u0432\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0432 append-only \u043b\u043e\u0433\u0435 \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438. \u041d\u0430\u0432\u0441\u0435\u0433\u0434\u0430.waitForTransactionReceipt \u0434\u043e\u0436\u0434\u0430\u043b\u0441\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u0432\u0435\u0440\u043d\u0443\u043b \u043a\u0432\u0438\u0442\u0430\u043d\u0446\u0438\u044e: \u043d\u043e\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430, \u0441\u0442\u0430\u0442\u0443\u0441, \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0433\u0430\u0437.\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u0438\u0437 \u0432\u044b\u0432\u043e\u0434\u0430: \u0432\u0430\u0448\u0430 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043b\u0435\u0436\u0438\u0442 \u0432 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e\u043c \u043b\u043e\u0433\u0435 &#8212; \u0431\u043b\u043e\u043a, \u0433\u0430\u0437, \u043f\u043e\u0434\u043f\u0438\u0441\u044c, \u0432\u0441\u0451 \u043d\u0430 \u0432\u0438\u0442\u0440\u0438\u043d\u0435. \u042d\u0442\u043e \u0443\u0436\u0435 \u043d\u0435 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b, \u044d\u0442\u043e \u043e\u043d\u0447\u0435\u0439\u043d-\u0444\u0430\u043a\u0442.\u041a\u0441\u0442\u0430\u0442\u0438, \u043f\u0440\u043e \u00ab\u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u0430\u043c\u043e\u043c\u0443 \u0441\u0435\u0431\u0435\u00bb: \u044d\u0442\u043e \u043d\u0435 \u0442\u0440\u044e\u043a, \u0430 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0430\u044f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f. \u0421\u0435\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c, \u0441\u043f\u0438\u0441\u0430\u043b\u0430 \u0433\u0430\u0437 \u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u043b\u0430 \u0435\u0451 \u0432 \u0432\u0435\u0447\u043d\u043e\u0441\u0442\u044c \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c \u0441\u043e\u0432\u043f\u0430\u043b\u0438. \u0418\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u0448\u0430\u0433: \u043f\u0440\u043e\u043c\u0430\u0445\u043d\u0443\u0442\u044c\u0441\u044f \u0430\u0434\u0440\u0435\u0441\u043e\u043c \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.\u0427\u0435\u043a\u043b\u0438\u0441\u0442 \u0433\u0440\u0430\u0431\u043b\u0435\u0439\u0421\u0438\u043c\u043f\u0442\u043e\u043c\u041f\u0440\u0438\u0447\u0438\u043d\u0430\u041b\u0435\u0447\u0435\u043d\u0438\u0435invalid private key, expected hex or 32 bytes\u043a\u043b\u044e\u0447 \u0438\u0437 MetaMask \u0431\u0435\u0437 0x\u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c 0x \u0432 \u043d\u0430\u0447\u0430\u043b\u043eCannot read properties of undefined (reading &#8216;slice&#8217;)Node \u043d\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b .envnpx tsx &#8212;env-file=.env send.tsHTTP request failed. Status: 429\u0434\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0430\u044f \u043d\u043e\u0434\u0430 viem\u044f\u0432\u043d\u044b\u0439 RPC: http(&#8216;https:\/\/ethereum-sepolia-rpc.publicnode.com&#8217;)Top-level await is currently not supported\u043f\u0440\u043e\u0435\u043a\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a CommonJSnpm pkg set type=module\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435\u042d\u0442\u043e \u043f\u044f\u0442\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u0435\u0440\u0438\u0438 \u00abWeb3 \u0434\u043b\u044f JS-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432\u00bb, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u044f \u0432\u0435\u0434\u0443 \u0432 Telegram: \u0434\u0432\u0430 \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e \u043f\u043b\u044e\u0441 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432 \u043f\u043e \u0431\u0443\u0434\u043d\u044f\u043c, \u0432\u0441\u0451 \u0447\u0435\u0440\u0435\u0437 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0438\u0437 \u043c\u0438\u0440\u0430 web2 &#8212; Postgres, Kafka, git. \u041f\u043e \u0445\u043e\u0434\u0443 \u0441\u0435\u0440\u0438\u0438 \u0441\u0442\u0440\u043e\u0438\u043c \u041a\u043e\u043f\u0438\u043b\u043a\u0443 &#8212; \u0443\u0447\u0435\u0431\u043d\u044b\u0439 dApp \u0441 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u043e\u043c \u043d\u0430 Solidity \u0438 React-\u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u043e\u043c, \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u043e\u0442\u043a\u0440\u044b\u0442, \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u043e\u0441\u0442 &#8212; git-\u0442\u0435\u0433.\u0421\u0435\u0440\u0438\u044f: t.me\/blockwright_dev\u041a\u043e\u0434 \u044d\u0442\u043e\u0433\u043e \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430: github.com\/blockwright\/kopilka, \u0442\u0435\u0433 post-05\u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u043e \u043f\u043b\u0430\u043d\u0443 &#8212; Solidity: \u043f\u0438\u0448\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440: \u0432\u0441\u0451 \u0432\u044b\u0448\u0435 &#8212; \u0443\u0447\u0435\u0431\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0435\u0442\u0438. \u041d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u043d\u044c\u0433\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 &#8212; \u0434\u0430\u0436\u0435 \u0438\u0437 \u044d\u0442\u043e\u0439.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1071936\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-491391","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/491391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=491391"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/491391\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=491391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=491391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=491391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}