{"id":1922,"date":"2023-04-28T10:46:20","date_gmt":"2023-04-28T01:46:20","guid":{"rendered":"https:\/\/edu.ujhb.org\/?p=1922"},"modified":"2023-04-28T10:46:20","modified_gmt":"2023-04-28T01:46:20","slug":"web3-js%e5%85%a5%e9%96%80%ef%bc%88%e6%97%a5%e6%9c%ac%e8%aa%9e%e7%89%88%ef%bc%89","status":"publish","type":"post","link":"https:\/\/edu.ujhb.org\/?p=1922","title":{"rendered":"web3.js\u5165\u9580\uff08\u65e5\u672c\u8a9e\u7248\uff09"},"content":{"rendered":"\n<p>\u307e\u3059\u304b\u3002web3.js \u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u304b\u3089\u59cb\u3081\u307e\u3057\u3087\u3046\u3002\u307e\u305a\u3001\u8aac\u660e\u3059\u308b\u5185\u5bb9\u306e\u30ea\u30b9\u30c8\u3092\u6e21\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3082\u3061\u308d\u3093\uff01\u4ee5\u4e0b\u306f\u3001\u57fa\u672c\u7684\u306a web3.js \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u5185\u5bb9\u306e\u6982\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>web3.js \u3068 Ethereum \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u7d39\u4ecb\n<ul class=\"wp-block-list\">\n<li>web3.js\u3068\u306f\uff1f<\/li>\n\n\n\n<li>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3068\u306f?<\/li>\n\n\n\n<li>web3.js \u3068\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u95a2\u4fc2<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>web3.js \u306e\u69cb\u6210\u3068\u521d\u671f\u5316\n<ul class=\"wp-block-list\">\n<li>web3.js \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30a4\u30f3\u30dd\u30fc\u30c8<\/li>\n\n\n\n<li>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3059\u308b<\/li>\n\n\n\n<li>web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u30a2\u30ab\u30a6\u30f3\u30c8\n<ul class=\"wp-block-list\">\n<li>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u30a2\u30c9\u30ec\u30b9\u3068\u79d8\u5bc6\u9375<\/li>\n\n\n\n<li>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/li>\n\n\n\n<li>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u53e3\u5ea7\u6b8b\u9ad8\u3092\u53d6\u5f97\u3059\u308b<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u53d6\u5f15\n<ul class=\"wp-block-list\">\n<li>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u69cb\u9020<\/li>\n\n\n\n<li>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3066\u7f72\u540d\u3059\u308b<\/li>\n\n\n\n<li>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092 Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u9001\u4fe1\u3059\u308b<\/li>\n\n\n\n<li>\u53d6\u5f15\u72b6\u6cc1\u306e\u76e3\u8996<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u30b9\u30de\u30fc\u30c8\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\n<ul class=\"wp-block-list\">\n<li>\u30b9\u30de\u30fc\u30c8\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3068\u306f\uff1f<\/li>\n\n\n\n<li>Solidity \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e<\/li>\n\n\n\n<li>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b<\/li>\n\n\n\n<li>\u30b9\u30de\u30fc\u30c8\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>web3.js API\n<ul class=\"wp-block-list\">\n<li>web3.js \u304c\u63d0\u4f9b\u3059\u308b API \u3068\u30e1\u30bd\u30c3\u30c9<\/li>\n\n\n\n<li>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u30ce\u30fc\u30c9\u306e\u7ba1\u7406<\/li>\n\n\n\n<li>\u53d6\u5f15\u30fb\u5951\u7d04\u51e6\u7406<\/li>\n\n\n\n<li>\u30a4\u30d9\u30f3\u30c8\u3068\u30d5\u30a3\u30eb\u30bf\u30fc<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u4ee5\u4e0a\u304c\u57fa\u672c\u7684\u306aweb3.js\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u5185\u5bb9\u6982\u8981\u3067\u3042\u308a\u3001\u3053\u306e\u6982\u8981\u306b\u5f93\u3063\u3066\u52d5\u753b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u30c6\u30ad\u30b9\u30c8\u5185\u5bb9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30cb\u30fc\u30ba\u3084\u30bf\u30fc\u30b2\u30c3\u30c8 \u30e6\u30fc\u30b6\u30fc\u306b\u5408\u308f\u305b\u3066\u8abf\u6574\u304a\u3088\u3073\u62e1\u5f35\u3067\u304d\u308b\u57fa\u672c\u7684\u306a\u6982\u8981\u306b\u3059\u304e\u306a\u3044\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>web3.js\u3068\u306f\u4f55\u304b\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Web3.js \u306f\u3001Ethereum \u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3068\u3084\u308a\u53d6\u308a\u3059\u308b\u305f\u3081\u306e JavaScript \u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u958b\u767a\u8005\u304c JavaScript \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067 Ethereum \u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3\u3068\u5bfe\u8a71\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u4e00\u9023\u306e API \u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002Web3.js \u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3\u3067\u306e DApp \u958b\u767a\u306e\u30b3\u30a2 \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e 1 \u3064\u3067\u3042\u308a\u3001\u958b\u767a\u8005\u306f\u5206\u6563\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 (DApps) \u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Web3.js \u306b\u306f\u3001\u6b21\u306e\u4e3b\u306a\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Ethereum \u30ce\u30fc\u30c9\u3068\u306e\u901a\u4fe1: Web3.js \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Ethereum \u30ce\u30fc\u30c9\u3068\u7c21\u5358\u306b\u901a\u4fe1\u3067\u304d\u307e\u3059.\u958b\u767a\u8005\u306f Web3.js \u3092\u4f7f\u7528\u3057\u3066\u3001Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3057\u3001\u30ce\u30fc\u30c9\u3068\u901a\u4fe1\u3057\u3001\u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3\u4e0a\u306e\u30c7\u30fc\u30bf\u3092\u30af\u30a8\u30ea\u3067\u304d\u307e\u3059.<\/li>\n\n\n\n<li>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u64cd\u4f5c: Web3.js \u3092\u4f7f\u7528\u3057\u3066\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304b\u3089\u53e3\u5ea7\u6b8b\u9ad8\u3084\u53d6\u5f15\u5c65\u6b74\u3092\u53d6\u5f97\u3057\u305f\u308a\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u3092\u9001\u4fe1\u3057\u305f\u308a\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u547c\u3073\u51fa\u3057\u305f\u308a\u3057\u3066\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u304a\u3088\u3073\u7ba1\u7406\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3068\u306e\u5bfe\u8a71: Web3.js \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u958b\u767a\u8005\u306f Ethereum \u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3068\u5bfe\u8a71\u3057\u305f\u308a\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u5c55\u958b\u3057\u305f\u308a\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u305f\u308a\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u30ea\u30c3\u30b9\u30f3\u3057\u305f\u308a\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30e2\u30c7\u30eb: Web3.js \u306f\u3001\u30a4\u30d9\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3\u306e\u72b6\u614b\u5909\u5316\u3092\u8868\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u958b\u767a\u8005\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u30dd\u30fc\u30ea\u30f3\u30b0\u305b\u305a\u306b\u72b6\u614b\u306e\u5909\u5316\u306b\u5fdc\u7b54\u3059\u308b\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001Web3.js \u306f\u958b\u767a\u8005\u306b JavaScript \u3092\u4f7f\u7528\u3057\u3066 Ethereum \u30d9\u30fc\u30b9\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u30b7\u30f3\u30d7\u30eb\u3067\u5f37\u529b\u306a\u65b9\u6cd5\u3092\u63d0\u4f9b\u3057\u3001\u5206\u6563\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u7bc9\u3092\u5bb9\u6613\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3068\u306f\u4f55\u304b\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306f\u3001\u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3 \u30c6\u30af\u30ce\u30ed\u30b8\u3068\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u3001\u958b\u767a\u8005\u304c\u5206\u6563\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 (DApps) \u3092\u4f5c\u6210\u304a\u3088\u3073\u5c55\u958b\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u30aa\u30fc\u30d7\u30f3 \u30bd\u30fc\u30b9\u306e\u5206\u6563\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3059\u3002\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u4e0a\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30c7\u30b8\u30bf\u30eb\u901a\u8ca8\u3001\u91d1\u878d\u53d6\u5f15\u3001\u672c\u4eba\u78ba\u8a8d\u3001\u30e2\u30ce\u306e\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u3001\u305d\u306e\u4ed6\u306e\u5206\u91ce\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u76ee\u7684\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306f\u3001\u30d3\u30c3\u30c8\u30b3\u30a4\u30f3\u306a\u3069\u306e\u7d14\u7c8b\u306a\u6697\u53f7\u901a\u8ca8\u3068\u306f\u7570\u306a\u308a\u307e\u3059. \u958b\u767a\u8005\u304c\u305d\u306e\u4e0a\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u5206\u6563\u578b\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059. \u3053\u308c\u3089\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u4e2d\u592e\u306e\u30b5\u30fc\u30d0\u30fc\u3084\u6a5f\u95a2\u306b\u4f9d\u5b58\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u81ea\u7531\u306b\u3001\u5b89\u5168\u306b\u3001\u900f\u904e\u7684\u306b\u5b9f\u884c\u3067\u304d\u307e\u3059.&nbsp;\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u8ca1\u56e3\u306b\u3088\u3063\u3066\u958b\u767a\u304a\u3088\u3073\u7dad\u6301\u3055\u308c\u3066\u304a\u308a\u3001\u305d\u306e\u30b3\u30a2 \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u4eee\u60f3\u30de\u30b7\u30f3 (EVM)\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 (ETH)\u3001\u304a\u3088\u3073\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u4eee\u60f3\u30de\u30b7\u30f3\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u3067\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u5b9f\u884c\u3067\u304d\u308b\u4eee\u60f3\u30de\u30b7\u30f3\u3067\u3059\u3002\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306f\u3001\u5951\u7d04\u3092\u81ea\u52d5\u7684\u306b\u5b9f\u884c\u304a\u3088\u3073\u7ba1\u7406\u3067\u304d\u308b\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc \u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u3042\u308a\u3001\u30c7\u30b8\u30bf\u30eb\u901a\u8ca8\u3001\u8cc7\u7523\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3001\u672c\u4eba\u78ba\u8a8d\u306a\u3069\u306e\u3055\u307e\u3056\u307e\u306a\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u5f93\u6765\u306e\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3068\u306f\u7570\u306a\u308a\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306f\u81ea\u5df1\u5b9f\u884c\u578b\u3067\u5206\u6563\u5316\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u5358\u4e00\u306e\u6a5f\u95a2\u304c\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u5236\u5fa1\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u3088\u308a\u5b89\u5168\u3067\u900f\u660e\u6027\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30fc\u30b5\u306f\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30cd\u30a4\u30c6\u30a3\u30d6\u6697\u53f7\u901a\u8ca8\u3067\u3042\u308a\u3001\u53d6\u5f15\u624b\u6570\u6599\u3092\u652f\u6255\u3044\u3001\u30de\u30a4\u30cb\u30f3\u30b0\u306e\u30de\u30a4\u30ca\u30fc\u306b\u5831\u916c\u3092\u4e0e\u3048\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u4fa1\u683c\u306f\u5927\u304d\u304f\u5909\u52d5\u3057\u3001\u305d\u306e\u4fa1\u683c\u306f\u5e02\u5834\u306e\u9700\u7d66\u306b\u3088\u3063\u3066\u6c7a\u5b9a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306f\u3001\u3088\u308a\u5b89\u5168\u3067\u900f\u904e\u7684\u3067\u4fe1\u983c\u6027\u306e\u9ad8\u3044\u5206\u6563\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3092\u958b\u767a\u8005\u306b\u63d0\u4f9b\u3057\u307e\u3059\u3002\u540c\u6642\u306b\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u3082\u91cd\u8981\u306a\u6697\u53f7\u901a\u8ca8\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3042\u308a\u3001\u305d\u306e\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306f\u30c7\u30b8\u30bf\u30eb\u901a\u8ca8\u5e02\u5834\u3067\u91cd\u8981\u306a\u30c8\u30fc\u30af\u30f3\u306e 1 \u3064\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>web3.js\u3068\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u95a2\u4fc2\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Web3.js \u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3068\u3084\u308a\u53d6\u308a\u3059\u308b\u305f\u3081\u306e JavaScript \u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308a\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306e DApp \u958b\u767a\u306e\u30b3\u30a2 \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e 1 \u3064\u3067\u3059\u3002Web3.js \u306f\u3001\u958b\u767a\u8005\u304c JavaScript \u3092\u4f7f\u7528\u3057\u3066\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3078\u306e\u63a5\u7d9a\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u64cd\u4f5c\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u547c\u3073\u51fa\u3057\u306a\u3069\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u3084\u308a\u53d6\u308a\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u4e00\u9023\u306e API \u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306f\u3001\u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3 \u30c6\u30af\u30ce\u30ed\u30b8\u3068\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u3001\u958b\u767a\u8005\u304c\u5206\u6563\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 (DApps) \u3092\u4f5c\u6210\u304a\u3088\u3073\u5c55\u958b\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u5206\u6563\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3059\u3002Web3.js \u3068\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u95a2\u4fc2\u306f\u3001Java \u3068 Android \u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0 \u30b7\u30b9\u30c6\u30e0\u306e\u95a2\u4fc2\u306b\u4f3c\u3066\u3044\u307e\u3059. Web3.js \u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u7528\u306e JavaScript \u958b\u767a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u63d0\u4f9b\u3057\u3001\u958b\u767a\u8005\u304c JavaScript \u3092\u4f7f\u7528\u3057\u3066\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059.<\/p>\n\n\n\n<p>Web3.js \u306f\u3001\u958b\u767a\u8005\u304c Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u3084\u308a\u53d6\u308a\u3057\u3066\u3001DApp \u958b\u767a\u30d7\u30ed\u30bb\u30b9\u4e2d\u306b\u6b21\u306e\u6a5f\u80fd\u3092\u5b9f\u73fe\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3059\u308b: Web3.js \u3092\u4f7f\u7528\u3057\u3066\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u7c21\u5358\u306b\u63a5\u7d9a\u3057\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30ce\u30fc\u30c9\u3068\u901a\u4fe1\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u64cd\u4f5c: Web3.js \u306f\u3001\u53e3\u5ea7\u6b8b\u9ad8\u3084\u53d6\u5f15\u5c65\u6b74\u306e\u53d6\u5f97\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u9001\u4fe1\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u547c\u3073\u51fa\u3057\u306a\u3069\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u7c21\u5358\u306b\u4f5c\u6210\u304a\u3088\u3073\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u4e00\u9023\u306e API \u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3068\u306e\u5bfe\u8a71: Web3.js \u306f\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u5c55\u958b\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u547c\u3073\u51fa\u3057\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u30a4\u30d9\u30f3\u30c8\u306e\u30ea\u30c3\u30b9\u30f3\u306a\u3069\u3001\u958b\u767a\u8005\u304c Ethereum \u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3068\u5bfe\u8a71\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u4e00\u9023\u306e API \u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4e00\u822c\u306b\u3001Web3.js \u306f\u3001\u958b\u767a\u8005\u304c JavaScript \u3092\u4f7f\u7528\u3057\u3066\u5206\u6563\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u91cd\u8981\u306a\u90e8\u5206\u3067\u3042\u308a\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u306e\u958b\u767a\u3068\u63a8\u9032\u306b\u91cd\u8981\u306a\u8ca2\u732e\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>web3.js\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30a4\u30f3\u30dd\u30fc\u30c8\u306e\u65b9\u6cd5\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Web3.js \u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u6700\u521d\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4e00\u822c\u7684\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30a4\u30f3\u30dd\u30fc\u30c8\u306e\u65b9\u6cd5\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>CDN \u3092\u4f7f\u7528\u3057\u3066\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>CDN (Content Delivery Network) \u3092\u4f7f\u7528\u3057\u3066\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304a\u3088\u3073\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u305b\u305a\u306b\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u304b\u3089 Web3.js \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u30b3\u30fc\u30c9\u3092 HTML \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">html\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>&lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/web3@1.5.0\/dist\/web3.min.js\"&gt;&lt;\/script&gt;\n<\/code><\/pre>\n\n\n\n<p>\u4f7f\u7528\u3057\u3066\u3044\u308b Web3.js \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u5408\u308f\u305b\u3066\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>npm \u3092\u4f7f\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>Node.js \u307e\u305f\u306f\u540c\u69d8\u306e JavaScript \u30e9\u30f3\u30bf\u30a4\u30e0\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001npm (Node.js \u30d1\u30c3\u30b1\u30fc\u30b8 \u30de\u30cd\u30fc\u30b8\u30e3\u30fc) \u3092\u4f7f\u7528\u3057\u3066 Web3.js \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002\u30bf\u30fc\u30df\u30ca\u30eb\u307e\u305f\u306f\u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 \u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3059\u308b<code>npm install web3\n<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>Web3.js \u306e\u30a4\u30f3\u30dd\u30fc\u30c8<\/li>\n<\/ol>\n\n\n\n<p>Web3.js \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001\u305d\u308c\u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30d6\u30e9\u30a6\u30b6\u30fc\u74b0\u5883\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066 Web3.js \u3092 JavaScript \u30d5\u30a1\u30a4\u30eb\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>import Web3 from 'web3';\n<\/code><\/pre>\n\n\n\n<p>Node.js \u74b0\u5883\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066 Web3.js \u3092 JavaScript \u30d5\u30a1\u30a4\u30eb\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>const Web3 = require('web3');\n<\/code><\/pre>\n\n\n\n<p>\u6ce8: Web3.js v1.x \u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u6b21\u306e\u5f62\u5f0f\u306b\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>const Web3 = require('web3');\nconst web3 = new Web3('https:\/\/mainnet.infura.io\/v3\/your_project_id');\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306f\u3001Infura API \u3092\u4f7f\u7528\u3057\u3066 Ethereum \u30e1\u30a4\u30f3\u30cd\u30c3\u30c8\u306b\u63a5\u7d9a\u3059\u308b web3 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002your_project_id \u3092\u3001Infura Web \u30b5\u30a4\u30c8\u3067\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8 ID \u306b\u7f6e\u304d\u63db\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30ed\u30fc\u30ab\u30eb \u30ce\u30fc\u30c9\u3084\u4ed6\u306e\u30d1\u30d6\u30ea\u30c3\u30af \u30ce\u30fc\u30c9\u306a\u3069\u3001\u4ed6\u306e Ethereum \u30ce\u30fc\u30c9\u306e URL \u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001Web3.js \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30a4\u30f3\u30dd\u30fc\u30c8\u306f\u975e\u200b\u200b\u5e38\u306b\u7c21\u5358\u3067\u3059\u3002\u30cb\u30fc\u30ba\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u3001\u9069\u5207\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30a4\u30f3\u30dd\u30fc\u30c8\u306e\u65b9\u6cd5\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3078\u306e\u63a5\u7d9a\u65b9\u6cd5\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Web3.js \u3092\u4f7f\u7528\u3057\u3066\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u5bfe\u8a71\u3059\u308b\u306b\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Infura API \u3092\u4f7f\u7528\u3057\u3066 Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>Infura \u306f Ethereum \u30ce\u30fc\u30c9 \u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3042\u308a\u3001Infura \u304c\u63d0\u4f9b\u3059\u308b API \u3092\u4f7f\u7528\u3057\u3066 Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3067\u304d\u307e\u3059\u3002\u7121\u6599\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7\u3057\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3001Infura \u30ce\u30fc\u30c9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e API \u30ad\u30fc\u3092\u53d6\u5f97\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u305d\u306e\u5f8c\u3001\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066 Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>const Web3 = require('web3');\nconst web3 = new Web3('https:\/\/mainnet.infura.io\/v3\/your_project_id');\n<\/code><\/pre>\n\n\n\n<p>your_project_id \u3092\u3001Infura Web \u30b5\u30a4\u30c8\u3067\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8 ID \u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>\u30ed\u30fc\u30ab\u30eb \u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30ce\u30fc\u30c9\u306b\u63a5\u7d9a\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>\u30ed\u30fc\u30ab\u30eb \u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306b Ethereum \u30ce\u30fc\u30c9\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30ed\u30fc\u30ab\u30eb \u30ce\u30fc\u30c9\u306b\u63a5\u7d9a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>const Web3 = require('web3');\nconst web3 = new Web3('http:\/\/localhost:8545');\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306f\u3001\u30ed\u30fc\u30ab\u30eb \u30de\u30b7\u30f3\u306b Ethereum \u30ce\u30fc\u30c9\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u304a\u308a\u3001\u30dd\u30fc\u30c8 8545 \u3067\u30ea\u30c3\u30b9\u30f3\u3057\u3066\u3044\u308b\u3068\u60f3\u5b9a\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5225\u306e\u30dd\u30fc\u30c8\u307e\u305f\u306f\u5225\u306e\u30ce\u30fc\u30c9\u69cb\u6210\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u305d\u308c\u306b\u5fdc\u3058\u3066\u30dd\u30fc\u30c8\u3068 URL \u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>\u4ed6\u306e Ethereum \u30ce\u30fc\u30c9\u306b\u63a5\u7d9a\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>Infura \u3068\u30ed\u30fc\u30ab\u30eb \u30ce\u30fc\u30c9\u306b\u52a0\u3048\u3066\u3001\u4ed6\u306b\u3082\u591a\u304f\u306e\u516c\u958b Ethereum \u30ce\u30fc\u30c9\u304b\u3089\u9078\u629e\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u4ed6\u306e\u30d1\u30d6\u30ea\u30c3\u30af \u30ce\u30fc\u30c9\u306b\u63a5\u7d9a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>const Web3 = require('web3');\nconst web3 = new Web3('https:\/\/some-other-node-url.com');\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e URL \u3092\u3001\u63a5\u7d9a\u3057\u305f\u3044\u30ce\u30fc\u30c9\u306e URL \u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3078\u306e\u63a5\u7d9a\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3059\u3002\u30cb\u30fc\u30ba\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u3001\u9069\u5207\u306a\u63a5\u7d9a\u65b9\u6cd5\u3092\u9078\u629e\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>web3.js\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4f5c\u308a\u65b9\u3092\u8a73\u3057\u304f\u6559\u3048\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4f5c\u6210\u306f\u3001Web3.js \u3092\u4f7f\u7528\u3057\u305f Ethereum \u958b\u767a\u306e\u6700\u521d\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u3059\u3002Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3044\u304f\u3064\u304b\u306e\u65b9\u6cd5\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Infura API \u3092\u4f7f\u7528\u3057\u3066 Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>Infura API \u3092\u4f7f\u7528\u3057\u3066 Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066 Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>const Web3 = require('web3');\nconst web3 = new Web3('https:\/\/mainnet.infura.io\/v3\/your_project_id');\n<\/code><\/pre>\n\n\n\n<p>your_project_id \u3092\u3001Infura Web \u30b5\u30a4\u30c8\u3067\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8 ID \u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>\u30ed\u30fc\u30ab\u30eb \u30ce\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066 Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>\u30ed\u30fc\u30ab\u30eb \u30ce\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066 Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066 Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>const Web3 = require('web3');\nconst web3 = new Web3('http:\/\/localhost:8545');\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306f\u3001\u30ed\u30fc\u30ab\u30eb \u30de\u30b7\u30f3\u306b Ethereum \u30ce\u30fc\u30c9\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u304a\u308a\u3001\u30dd\u30fc\u30c8 8545 \u3067\u30ea\u30c3\u30b9\u30f3\u3057\u3066\u3044\u308b\u3068\u60f3\u5b9a\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5225\u306e\u30dd\u30fc\u30c8\u307e\u305f\u306f\u5225\u306e\u30ce\u30fc\u30c9\u69cb\u6210\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u305d\u308c\u306b\u5fdc\u3058\u3066\u30dd\u30fc\u30c8\u3068 URL \u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>Provider \u3092\u4f7f\u7528\u3057\u3066 Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>Web3.js \u306f\u3001\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u5225\u306e\u65b9\u6cd5\u3082\u63d0\u4f9b\u3057\u307e\u3059\u3002Provider \u306f\u3001Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u5bfe\u8a71\u3059\u308b\u65b9\u6cd5\u3092\u6307\u5b9a\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u3066 Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>const Web3 = require('web3');\nconst provider = new Web3.providers.HttpProvider('https:\/\/mainnet.infura.io\/v3\/your_project_id');\nconst web3 = new Web3(provider);\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001HTTP \u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u4f7f\u7528\u3057\u3066 Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u5bfe\u8a71\u3059\u308b\u3053\u3068\u3092\u6307\u5b9a\u3059\u308b HttpProvider \u3092\u6700\u521d\u306b\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001\u3053\u306e\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u3066 Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4f5c\u6210\u306f\u3001Web3.js \u3092\u4f7f\u7528\u3057\u305f Ethereum \u958b\u767a\u306e\u91cd\u8981\u306a\u30b9\u30c6\u30c3\u30d7\u306e 1 \u3064\u3067\u3059\u3002\u30cb\u30fc\u30ba\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u3001Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u9069\u5207\u306a\u65b9\u6cd5\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u30a2\u30c9\u30ec\u30b9\u3068\u79d8\u5bc6\u9375\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30c9\u30ec\u30b9\u3068\u79d8\u5bc6\u9375\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u7ba1\u7406\u306b\u4f7f\u7528\u3055\u308c\u308b 2 \u3064\u306e\u91cd\u8981\u306a\u6982\u5ff5\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30c9\u30ec\u30b9\u306f\u3001\u9280\u884c\u53e3\u5ea7\u306e\u53e3\u5ea7\u756a\u53f7\u306b\u4f3c\u305f 40 \u6587\u5b57\u306e 16 \u9032\u6570\u306e\u6587\u5b57\u5217\u3067\u3059\u3002\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30c9\u30ec\u30b9\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4e00\u610f\u306b\u8b58\u5225\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u3084\u305d\u306e\u4ed6\u306e\u30c8\u30fc\u30af\u30f3\u3092\u53d7\u4fe1\u3057\u305f\u308a\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u9001\u53d7\u4fe1\u3057\u305f\u308a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002Ethereum \u30a2\u30c9\u30ec\u30b9\u306f\u516c\u958b\u9375\u304b\u3089\u30cf\u30c3\u30b7\u30e5\u3055\u308c\u3001\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9 0x \u304c\u8ffd\u52a0\u3055\u308c\u3066\u300116 \u9032\u6587\u5b57\u5217\u3067\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u79d8\u5bc6\u9375\u306f 64 \u6587\u5b57\u306e 16 \u9032\u6570\u306e\u6587\u5b57\u5217\u3067\u3001\u9280\u884c\u53e3\u5ea7\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u4f3c\u3066\u3044\u307e\u3059\u3002\u79d8\u5bc6\u9375\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u7ba1\u7406\u306b\u4f7f\u7528\u3055\u308c\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u7f72\u540d\u3068\u30a4\u30fc\u30b5\u306e\u9001\u4fe1\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u5404\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u30a2\u30c9\u30ec\u30b9\u306b\u306f\u5bfe\u5fdc\u3059\u308b\u79d8\u5bc6\u9375\u304c\u3042\u308a\u30011 \u5bfe 1 \u3067\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u79d8\u5bc6\u9375\u306e\u6240\u6709\u8005\u306f\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u8cc7\u7523\u3092\u5b8c\u5168\u306b\u5236\u5fa1\u3067\u304d\u308b\u305f\u3081\u3001\u79d8\u5bc6\u9375\u306f\u901a\u5e38\u3001\u53b3\u91cd\u306b\u6a5f\u5bc6\u306b\u4fdd\u3064\u5fc5\u8981\u304c\u3042\u308a\u3001\u79d8\u5bc6\u9375\u304c\u6f0f\u6d29\u307e\u305f\u306f\u7d1b\u5931\u3057\u305f\u5834\u5408\u3001\u8cc7\u7523\u306f\u56de\u5fa9\u3055\u308c\u307e\u305b\u3093\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2 \u30a6\u30a9\u30ec\u30c3\u30c8\u3084\u5b89\u5168\u306a\u30aa\u30d5\u30e9\u30a4\u30f3 \u30b9\u30c8\u30ec\u30fc\u30b8 \u30c7\u30d0\u30a4\u30b9\u306b\u683c\u7d0d\u3059\u308b\u306a\u3069\u3001\u79d8\u5bc6\u9375\u3092\u5b89\u5168\u306a\u65b9\u6cd5\u3067\u683c\u7d0d\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u306f\u3001\u53d6\u5f15\u304c\u30a2\u30ab\u30a6\u30f3\u30c8\u6240\u6709\u8005\u306b\u3088\u3063\u3066\u627f\u8a8d\u3055\u308c\u305f\u3053\u3068\u3092\u8a3c\u660e\u3059\u308b\u305f\u3081\u306b\u3001\u79d8\u5bc6\u9375\u3092\u4f7f\u7528\u3057\u3066\u53d6\u5f15\u304c\u7f72\u540d\u3055\u308c\u307e\u3059\u3002\u79d8\u5bc6\u9375\u3068\u30a2\u30c9\u30ec\u30b9\u306e\u95a2\u4fc2\u306f\u6697\u53f7\u5316\u306b\u3088\u3063\u3066\u5b9f\u73fe\u3055\u308c\u308b\u305f\u3081\u3001\u79d8\u5bc6\u9375\u3092\u6301\u3063\u3066\u3044\u308b\u4eba\u3060\u3051\u304c\u6709\u52b9\u306a\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u9001\u4fe1\u3057\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001Ethereum \u30a2\u30c9\u30ec\u30b9\u3068\u79d8\u5bc6\u9375\u306f\u3001Ethereum \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u7ba1\u7406\u306b\u4f7f\u7528\u3055\u308c\u308b 2 \u3064\u306e\u91cd\u8981\u306a\u6982\u5ff5\u3067\u3059\u3002\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30c9\u30ec\u30b9\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4e00\u610f\u306b\u8b58\u5225\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u9001\u53d7\u4fe1\u3067\u304d\u307e\u3059\u3002\u79d8\u5bc6\u9375\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u7ba1\u7406\u3057\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u7f72\u540d\u3057\u3066\u30a4\u30fc\u30b5\u3092\u9001\u4fe1\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4f5c\u308a\u65b9\u3092\u8a73\u3057\u304f\u6559\u3048\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u306f\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u516c\u958b\u9375\u3068\u79d8\u5bc6\u9375\u306e\u30da\u30a2\u3092\u751f\u6210\u3057\u3001\u516c\u958b\u9375\u3092\u30cf\u30c3\u30b7\u30e5\u3057\u3066\u30a2\u30c9\u30ec\u30b9\u3092\u8a08\u7b97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u4e00\u822c\u7684\u306a\u65b9\u6cd5\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a6\u30a9\u30ec\u30c3\u30c8\u3067\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a6\u30a9\u30ec\u30c3\u30c8\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4f5c\u6210\u3068\u7ba1\u7406\u306b\u4f7f\u7528\u3067\u304d\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a6\u30a9\u30ec\u30c3\u30c8\u306f\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2 \u30a6\u30a9\u30ec\u30c3\u30c8\u3068\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2 \u30a6\u30a9\u30ec\u30c3\u30c8\u306e 2 \u7a2e\u985e\u306b\u5206\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2 \u30a6\u30a9\u30ec\u30c3\u30c8\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4f5c\u6210\u3068\u7ba1\u7406\u306b\u4f7f\u7528\u3067\u304d\u308b\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u307e\u305f\u306f\u30e2\u30d0\u30a4\u30eb \u30c7\u30d0\u30a4\u30b9\u3067\u5b9f\u884c\u3055\u308c\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002Ethereum \u30a6\u30a9\u30ec\u30c3\u30c8\u306f\u901a\u5e38\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u30a2\u30d7\u30ea\u3067 [Create New Account] \u3092\u9078\u629e\u3057\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u306e\u5fc5\u8981\u306a\u60c5\u5831\u3092\u5165\u529b\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2 \u30a6\u30a9\u30ec\u30c3\u30c8\u306f\u3001\u79d8\u5bc6\u9375\u3092\u5b89\u5168\u306b\u4fdd\u7ba1\u3057\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u30aa\u30d5\u30e9\u30a4\u30f3\u3067\u751f\u6210\u304a\u3088\u3073\u7ba1\u7406\u3067\u304d\u308b\u30c7\u30d0\u30a4\u30b9\u3067\u3059\u3002\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u307e\u305f\u306f\u30e2\u30d0\u30a4\u30eb \u30c7\u30d0\u30a4\u30b9\u306b\u63a5\u7d9a\u3055\u308c\u305f\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2 \u30a6\u30a9\u30ec\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u3001\u30c7\u30d0\u30a4\u30b9\u306e\u6307\u793a\u306b\u5f93\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>Web3.js \u3092\u4f7f\u7528\u3057\u3066\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>Web3.js \u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001JavaScript \u30b3\u30fc\u30c9\u3067 Ethereum \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b\u4e00\u9023\u306e API \u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002Web3.js \u3092\u4f7f\u7528\u3057\u3066\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u4f8b\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>const Web3 = require('web3');\nconst web3 = new Web3('http:\/\/localhost:8545');\nconst account = web3.eth.accounts.create();\nconsole.log(account.address); \/\/ \u8f93\u51fa\u8d26\u6237\u5730\u5740\nconsole.log(account.privateKey); \/\/ \u8f93\u51fa\u8d26\u6237\u79c1\u94a5\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001\u6700\u521d\u306b Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u3001\u6b21\u306b Web3.js \u304c\u63d0\u4f9b\u3059\u308b eth.accounts.create() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066 Ethereum \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u6700\u5f8c\u306b\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30a2\u30c9\u30ec\u30b9\u3068\u79d8\u5bc6\u9375\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>\u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u306f\u3001\u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001Ethereum \u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9 (geth) \u3067\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3059\u308b<code>geth account new\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001geth \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u65b0\u3057\u3044\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002geth \u306f\u3001\u79d8\u5bc6\u9375\u3092\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306e\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u306e\u5165\u529b\u3092\u6c42\u3081\u307e\u3059\u3002geth \u306f\u65b0\u3057\u3044\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u51fa\u529b\u3057\u3001\u79d8\u5bc6\u9375\u3092\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a6\u30a9\u30ec\u30c3\u30c8 \u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4f5c\u6210\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u958b\u767a\u3068\u53d6\u5f15\u306b\u304a\u3051\u308b\u91cd\u8981\u306a\u30b9\u30c6\u30c3\u30d7\u306e 1 \u3064\u3067\u3059\u3002\u30cb\u30fc\u30ba\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u9069\u5207\u306a\u65b9\u6cd5\u3092\u9078\u629e\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u53e3\u5ea7\u6b8b\u9ad8\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Ethereum \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u6b8b\u9ad8\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001Web3.js \u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u308b API \u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u6b8b\u9ad8\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Web3.js API \u3092\u4f7f\u7528\u3057\u3066\u30d0\u30e9\u30f3\u30b9\u3092\u53d6\u308b<\/li>\n<\/ol>\n\n\n\n<p>Web3.js API \u3092\u4f7f\u7528\u3057\u3066 Ethereum \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u6b8b\u9ad8\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u304c\u4e00\u822c\u7684\u3067\u3059\u3002\u4ee5\u4e0b\u306f\u3001Web3.js API \u3092\u4f7f\u7528\u3057\u3066\u6b8b\u9ad8\u3092\u53d6\u5f97\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>const Web3 = require('web3');\nconst web3 = new Web3('https:\/\/mainnet.infura.io\/v3\/your_project_id');\nconst address = '0x123456...'; \/\/ \u8981\u67e5\u8be2\u4f59\u989d\u7684\u4ee5\u592a\u574a\u5730\u5740\nweb3.eth.getBalance(address, (err, wei) =&gt; {\n  const balance = web3.utils.fromWei(wei, 'ether');\n  console.log(`\u8d26\u6237\u4f59\u989d\u4e3a\uff1a${balance} ETH`);\n});\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001\u6700\u521d\u306b Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u3001Ethereum \u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\u3057\u3066\u6b8b\u9ad8\u3092\u7167\u4f1a\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001Web3.js \u304c\u63d0\u4f9b\u3059\u308b eth.getBalance() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30c9\u30ec\u30b9\u306e\u6b8b\u9ad8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u3063\u3066\u8fd4\u3055\u308c\u308b\u6b8b\u9ad8\u5358\u4f4d\u306f wei \u3067\u3042\u308a\u3001web3.utils.fromWei() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u5358\u4f4d (ETH) \u306b\u5909\u63db\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d6\u30ed\u30c3\u30af \u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u3092\u4f7f\u7528\u3057\u3066\u6b8b\u9ad8\u3092\u53d6\u5f97\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>Web3.js API \u3092\u4f7f\u7528\u3057\u3066\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u6b8b\u9ad8\u3092\u53d6\u5f97\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d6\u30ed\u30c3\u30af \u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u3092\u4f7f\u7528\u3057\u3066\u6b8b\u9ad8\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d6\u30ed\u30c3\u30af \u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u306e\u30d6\u30ed\u30c3\u30af\u3068\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3067\u304d\u308b Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002\u4ee5\u4e0b\u306f\u3001Etherscan \u306a\u3069\u306e Ethereum \u30d6\u30ed\u30c3\u30af \u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u3067\u6b8b\u9ad8\u3092\u53d6\u5f97\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Etherscan \u306e Web \u30b5\u30a4\u30c8\u3092\u958b\u304d\u3001\u691c\u7d22\u30dc\u30c3\u30af\u30b9\u306b\u6b8b\u9ad8\u3092\u78ba\u8a8d\u3057\u305f\u3044 Ethereum \u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u305d\u306e\u4f4f\u6240\u306e\u30da\u30fc\u30b8\u3092\u898b\u3064\u3051\u3066\u3001\u305d\u306e\u30da\u30fc\u30b8\u3067\u6b8b\u9ad8\u60c5\u5831\u3092\u63a2\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d6\u30ed\u30c3\u30af \u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u3067\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u53d6\u5f15\u5c65\u6b74\u3001\u30c8\u30fc\u30af\u30f3\u6b8b\u9ad8\u3001\u304a\u3088\u3073\u305d\u306e\u4ed6\u306e\u6709\u7528\u306a\u60c5\u5831\u3092\u8868\u793a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e00\u822c\u306b\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u53e3\u5ea7\u6b8b\u9ad8\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u958b\u767a\u3068\u53d6\u5f15\u306e\u91cd\u8981\u306a\u30b9\u30c6\u30c3\u30d7\u306e 1 \u3064\u3067\u3059\u3002\u30cb\u30fc\u30ba\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u3001\u30d0\u30e9\u30f3\u30b9\u3092\u53d6\u5f97\u3059\u308b\u9069\u5207\u306a\u65b9\u6cd5\u3092\u9078\u629e\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u69cb\u9020\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u304a\u3051\u308b\u57fa\u672c\u7684\u306a\u64cd\u4f5c\u3067\u3042\u308a\u3001\u30a4\u30fc\u30b5\u307e\u305f\u306f\u305d\u306e\u4ed6\u306e\u30c8\u30fc\u30af\u30f3\u3092\u9001\u4fe1\u3057\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u306b\u3088\u3063\u3066\u5b9f\u88c5\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u69cb\u9020\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30cf\u30c3\u30b7\u30e5<\/li>\n<\/ol>\n\n\n\n<p>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30cf\u30c3\u30b7\u30e5\u306f\u3001Ethereum \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4e00\u610f\u306b\u8b58\u5225\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u4e00\u610f\u306e 32 \u30d0\u30a4\u30c8\u306e\u8b58\u5225\u5b50\u3067\u3059\u3002\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30cf\u30c3\u30b7\u30e5\u306f\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30c7\u30fc\u30bf\u304a\u3088\u3073\u305d\u306e\u4ed6\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u304b\u3089\u8a08\u7b97\u3055\u308c\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u4e00\u610f\u306e\u8b58\u5225\u5b50\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>\u5dee\u51fa\u4eba\u4f4f\u6240<\/li>\n<\/ol>\n\n\n\n<p>\u9001\u4fe1\u8005\u30a2\u30c9\u30ec\u30b9\u306f\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u9001\u4fe1\u3057\u305f Ethereum \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u3057\u307e\u3059\u3002\u9001\u4fe1\u8005\u306f\u3001\u6709\u52b9\u306a\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u9001\u4fe1\u3059\u308b\u305f\u3081\u306b\u3001\u305d\u306e\u30a2\u30c9\u30ec\u30b9\u306e\u79d8\u5bc6\u9375\u3092\u6301\u3063\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>\u53d7\u53d6\u4eba\u4f4f\u6240<\/li>\n<\/ol>\n\n\n\n<p>\u53d7\u4fe1\u8005\u30a2\u30c9\u30ec\u30b9\u306f\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u53d7\u4fe1\u3059\u308b Ethereum \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u3057\u307e\u3059\u3002\u3053\u306e\u30a2\u30c9\u30ec\u30b9\u306f\u3001\u5225\u306e Ethereum \u30a2\u30ab\u30a6\u30f3\u30c8\u307e\u305f\u306f\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8 \u30a2\u30c9\u30ec\u30b9\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>\u53d6\u5f15\u984d<\/li>\n<\/ol>\n\n\n\n<p>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u91d1\u984d\u306f\u3001\u9001\u4fe1\u3055\u308c\u305f\u30a4\u30fc\u30b5\u307e\u305f\u306f\u305d\u306e\u4ed6\u306e\u30c8\u30fc\u30af\u30f3\u306e\u91d1\u984d\u3092\u6307\u3057\u307e\u3059\u3002\u30a6\u30a7\u30a4\u3067\u8868\u3055\u308c\u30011 \u30a8\u30fc\u30c6\u30eb\u306f 10^18 \u30a6\u30a7\u30a4\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u547c\u3073\u51fa\u3059\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u5834\u5408\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u91d1\u984d\u306f\u901a\u5e38 0 \u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li>\u53d6\u5f15\u624b\u6570\u6599<\/li>\n<\/ol>\n\n\n\n<p>\u53d6\u5f15\u624b\u6570\u6599\u3068\u306f\u3001\u53d6\u5f15\u3092\u9001\u4fe1\u3057\u305f\u4eba\u304c\u30de\u30a4\u30ca\u30fc\u306b\u652f\u6255\u3046\u5fc5\u8981\u304c\u3042\u308b\u624b\u6570\u6599\u306e\u3053\u3068\u3067\u3059\u3002\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u306f\u3001\u53d6\u5f15\u624b\u6570\u6599\u306f\u30ac\u30b9\u5358\u4f4d\u3067\u8a08\u7b97\u3055\u308c\u3001\u5404\u64cd\u4f5c\u306b\u306f\u4e00\u5b9a\u306e\u30ac\u30b9\u6d88\u8cbb\u91cf\u304c\u3042\u308a\u307e\u3059\u3002\u30de\u30a4\u30ca\u30fc\u304c\u53d7\u3051\u53d6\u308b\u624b\u6570\u6599\u306f\u3001\u6d88\u8cbb\u3055\u308c\u305f\u30ac\u30b9\u306e\u91cf\u306b\u73fe\u5728\u306e\u30ac\u30b9\u4fa1\u683c\u3092\u639b\u3051\u305f\u3082\u306e\u306b\u7b49\u3057\u3044\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"6\">\n<li>\u30ac\u30b9\u30ea\u30df\u30c3\u30c8\uff08\u30ac\u30b9\u30ea\u30df\u30c3\u30c8\uff09<\/li>\n<\/ol>\n\n\n\n<p>\u30ac\u30b9\u5236\u9650\u3068\u306f\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u9001\u4fe1\u6642\u306b\u4f7f\u7528\u3067\u304d\u308b\u30ac\u30b9\u306e\u6700\u5927\u91cf\u3092\u6307\u3057\u307e\u3059\u3002\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u4e2d\u306b\u6d88\u8cbb\u3055\u308c\u305f\u30ac\u30b9\u306e\u91cf\u304c\u3053\u306e\u5236\u9650\u3092\u8d85\u3048\u305f\u5834\u5408\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306f\u7121\u52b9\u3068\u898b\u306a\u3055\u308c\u3001\u3059\u3079\u3066\u306e\u64cd\u4f5c\u304c\u53d6\u308a\u6d88\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"7\">\n<li>\u30ac\u30b9\u4fa1\u683c\uff08Gas Price\uff09<\/li>\n<\/ol>\n\n\n\n<p>\u30ac\u30b9\u4fa1\u683c\u306f\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u9001\u4fe1\u3059\u308b\u3068\u304d\u306b\u652f\u6255\u3046\u30ac\u30b9\u306e\u5358\u4f4d\u3042\u305f\u308a\u306e\u4fa1\u683c\u3067\u3059\u3002\u30de\u30a4\u30ca\u30fc\u306f\u901a\u5e38\u3001\u30ac\u30b9\u4fa1\u683c\u306e\u9ad8\u3044\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u512a\u5148\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306f\u3001\u3088\u308a\u9ad8\u3044\u624b\u6570\u6599\u53ce\u5165\u3092\u3082\u305f\u3089\u3059\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"8\">\n<li>\u30c7\u30fc\u30bf<\/li>\n<\/ol>\n\n\n\n<p>\u30c7\u30fc\u30bf\u306f\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u547c\u3073\u51fa\u3057\u3084\u305d\u306e\u4ed6\u306e\u64cd\u4f5c\u306e\u5b9f\u884c\u306b\u4f7f\u7528\u3055\u308c\u308b\u8ffd\u52a0\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30c7\u30fc\u30bf\u3067\u3059\u3002\u8ee2\u9001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u5834\u5408\u3001\u30c7\u30fc\u30bf \u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u901a\u5e38\u7a7a\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4e00\u822c\u306b\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306f\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30cf\u30c3\u30b7\u30e5\u3001\u9001\u4fe1\u8005\u30a2\u30c9\u30ec\u30b9\u3001\u53d7\u4fe1\u8005\u30a2\u30c9\u30ec\u30b9\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u91d1\u984d\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u6599\u91d1\u3001\u30ac\u30b9\u5236\u9650\u3001\u30ac\u30b9\u4fa1\u683c\u3001\u304a\u3088\u3073\u30c7\u30fc\u30bf\u306a\u3069\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u3067\u69cb\u6210\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u77e5\u308b\u3053\u3068\u306f\u3001Ethereum \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u69cb\u9020\u3068\u30d7\u30ed\u30bb\u30b9\u3092\u3088\u308a\u3088\u304f\u7406\u89e3\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u3068\u7f72\u540d\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Ethereum \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3066\u7f72\u540d\u3059\u308b\u306b\u306f\u3001Web3.js \u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u308b API \u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002Ethereum \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3066\u7f72\u540d\u3059\u308b\u4f8b\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>const Web3 = require('web3');\nconst web3 = new Web3('https:\/\/mainnet.infura.io\/v3\/your_project_id');\nconst privateKey = '0x123456...'; \/\/ \u53d1\u9001\u8005\u7684\u79c1\u94a5\nconst senderAddress = '0x123456...'; \/\/ \u53d1\u9001\u8005\u7684\u4ee5\u592a\u574a\u5730\u5740\nconst recipientAddress = '0x654321...'; \/\/ \u63a5\u6536\u8005\u7684\u4ee5\u592a\u574a\u5730\u5740\nconst amount = '1'; \/\/ \u4ee5\u592a\u5e01\u6570\u91cf\n\nweb3.eth.getTransactionCount(senderAddress, (err, txCount) =&gt; {\n  \/\/ \u521b\u5efa\u4ea4\u6613\u5bf9\u8c61\n  const txObject = {\n    nonce: web3.utils.toHex(txCount),\n    to: recipientAddress,\n    value: web3.utils.toHex(web3.utils.toWei(amount, 'ether')),\n    gasLimit: web3.utils.toHex(21000),\n    gasPrice: web3.utils.toHex(web3.utils.toWei('10', 'gwei'))\n  };\n\n  \/\/ \u5bf9\u4ea4\u6613\u8fdb\u884c\u7b7e\u540d\n  const tx = new Tx(txObject);\n  const privateKeyBuffer = Buffer.from(privateKey, 'hex');\n  tx.sign(privateKeyBuffer);\n\n  \/\/ \u5c06\u4ea4\u6613\u53d1\u9001\u5230\u4ee5\u592a\u574a\u7f51\u7edc\n  const serializedTx = tx.serialize();\n  const raw = '0x' + serializedTx.toString('hex');\n  web3.eth.sendSignedTransaction(raw, (err, txHash) =&gt; {\n    console.log('\u4ea4\u6613\u54c8\u5e0c\uff1a', txHash);\n  });\n});\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001\u6700\u521d\u306b Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u3001\u4f7f\u7528\u3059\u308b Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001\u9001\u4fe1\u8005\u30a2\u30c9\u30ec\u30b9\u3001\u53d7\u4fe1\u8005\u30a2\u30c9\u30ec\u30b9\u3001\u53d6\u5f15\u91d1\u984d\u306a\u3069\u306e\u5fc5\u8981\u306a\u60c5\u5831\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u6b21\u306b\u3001Web3.js \u304c\u63d0\u4f9b\u3059\u308b eth.getTransactionCount() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u9001\u4fe1\u8005\u30a2\u30c9\u30ec\u30b9\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u6570\u3092\u53d6\u5f97\u3057\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u306b\u3001\u300ctx\u300d\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u7f72\u540d\u3057\u307e\u3059 (\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059)\u3002\u6700\u521d\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092 Tx \u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u306b\u6e21\u3057\u3001\u79d8\u5bc6\u9375\u3092 Buffer \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5909\u63db\u3057\u307e\u3059\u3002\u6b21\u306b\u3001tx.sign() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u7f72\u540d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u5f8c\u306b\u3001\u7f72\u540d\u6e08\u307f\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092 Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u9001\u4fe1\u3057\u3001web3.eth.sendSignedTransaction() \u30e1\u30bd\u30c3\u30c9\u3092\u4ecb\u3057\u3066\u7f72\u540d\u6e08\u307f\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u9001\u4fe1\u3057\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3067\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30cf\u30c3\u30b7\u30e5\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u3068\u7f72\u540d\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u958b\u767a\u3068\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u304a\u3051\u308b\u91cd\u8981\u306a\u30b9\u30c6\u30c3\u30d7\u306e 1 \u3064\u3067\u3059\u3002\u30cb\u30fc\u30ba\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u304a\u3088\u3073\u7f72\u540d\u3059\u308b\u9069\u5207\u306a\u65b9\u6cd5\u3092\u9078\u629e\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3078\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u9001\u4fe1\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u9001\u4fe1\u3059\u308b\u306b\u306f\u3001Web3.js \u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u308b API \u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002Ethereum \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u9001\u4fe1\u3059\u308b\u4f8b\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>const Web3 = require('web3');\nconst web3 = new Web3('https:\/\/mainnet.infura.io\/v3\/your_project_id');\nconst privateKey = '0x123456...'; \/\/ \u53d1\u9001\u8005\u7684\u79c1\u94a5\nconst senderAddress = '0x123456...'; \/\/ \u53d1\u9001\u8005\u7684\u4ee5\u592a\u574a\u5730\u5740\nconst recipientAddress = '0x654321...'; \/\/ \u63a5\u6536\u8005\u7684\u4ee5\u592a\u574a\u5730\u5740\nconst amount = '1'; \/\/ \u4ee5\u592a\u5e01\u6570\u91cf\n\nweb3.eth.getTransactionCount(senderAddress, (err, txCount) =&gt; {\n  \/\/ \u521b\u5efa\u4ea4\u6613\u5bf9\u8c61\n  const txObject = {\n    nonce: web3.utils.toHex(txCount),\n    to: recipientAddress,\n    value: web3.utils.toHex(web3.utils.toWei(amount, 'ether')),\n    gasLimit: web3.utils.toHex(21000),\n    gasPrice: web3.utils.toHex(web3.utils.toWei('10', 'gwei'))\n  };\n\n  \/\/ \u5bf9\u4ea4\u6613\u8fdb\u884c\u7b7e\u540d\n  const tx = new Tx(txObject);\n  const privateKeyBuffer = Buffer.from(privateKey, 'hex');\n  tx.sign(privateKeyBuffer);\n\n  \/\/ \u5c06\u4ea4\u6613\u53d1\u9001\u5230\u4ee5\u592a\u574a\u7f51\u7edc\n  const serializedTx = tx.serialize();\n  const raw = '0x' + serializedTx.toString('hex');\n  web3.eth.sendSignedTransaction(raw, (err, txHash) =&gt; {\n    console.log('\u4ea4\u6613\u54c8\u5e0c\uff1a', txHash);\n  });\n});\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001\u6700\u521d\u306b Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u3001\u4f7f\u7528\u3059\u308b Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001\u9001\u4fe1\u8005\u30a2\u30c9\u30ec\u30b9\u3001\u53d7\u4fe1\u8005\u30a2\u30c9\u30ec\u30b9\u3001\u53d6\u5f15\u91d1\u984d\u306a\u3069\u306e\u5fc5\u8981\u306a\u60c5\u5831\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u6b21\u306b\u3001Web3.js \u304c\u63d0\u4f9b\u3059\u308b eth.getTransactionCount() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u9001\u4fe1\u8005\u30a2\u30c9\u30ec\u30b9\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u6570\u3092\u53d6\u5f97\u3057\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u306b\u3001\u300ctx\u300d\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u7f72\u540d\u3057\u307e\u3059 (\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059)\u3002\u6700\u521d\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092 Tx \u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u306b\u6e21\u3057\u3001\u79d8\u5bc6\u9375\u3092 Buffer \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5909\u63db\u3057\u307e\u3059\u3002\u6b21\u306b\u3001tx.sign() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u7f72\u540d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u5f8c\u306b\u3001\u7f72\u540d\u6e08\u307f\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092 web3.eth.sendSignedTransaction() \u30e1\u30bd\u30c3\u30c9\u3092\u4ecb\u3057\u3066 Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u9001\u4fe1\u3057\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3067\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30cf\u30c3\u30b7\u30e5\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u306f\u3001Ethereum \u306e\u958b\u767a\u3068\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u884c\u3046\u4e0a\u3067\u91cd\u8981\u306a\u30b9\u30c6\u30c3\u30d7\u306e 1 \u3064\u3067\u3059\u3002\u30cb\u30fc\u30ba\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u9001\u4fe1\u3059\u308b\u9069\u5207\u306a\u65b9\u6cd5\u3092\u9078\u629e\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u53d6\u5f15\u72b6\u6cc1\u306e\u76e3\u8996\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Ethereum \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u76e3\u8996\u3059\u308b\u306b\u306f\u3001Web3.js \u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u308b API \u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u30ea\u30c3\u30b9\u30f3\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>const Web3 = require('web3');\nconst web3 = new Web3('https:\/\/mainnet.infura.io\/v3\/your_project_id');\nconst txHash = '0x123456...'; \/\/ \u8981\u76d1\u542c\u7684\u4ea4\u6613\u54c8\u5e0c\n\nconst confirmationCallback = (confirmationNumber, receipt) =&gt; {\n  console.log(`\u786e\u8ba4\u6b21\u6570\uff1a${confirmationNumber}`);\n  console.log(`\u4ea4\u6613\u6536\u636e\uff1a`, receipt);\n};\n\nweb3.eth.getTransactionReceipt(txHash, (err, receipt) =&gt; {\n  if (receipt) {\n    console.log('\u4ea4\u6613\u5df2\u786e\u8ba4');\n    confirmationCallback(null, receipt);\n  } else {\n    console.log('\u7b49\u5f85\u4ea4\u6613\u786e\u8ba4');\n    const confirmationListener = web3.eth.subscribe('newBlockHeaders', (err, header) =&gt; {\n      web3.eth.getTransactionReceipt(txHash, (err, receipt) =&gt; {\n        if (receipt &amp;&amp; receipt.blockNumber) {\n          confirmationListener.unsubscribe();\n          console.log('\u4ea4\u6613\u5df2\u786e\u8ba4');\n          confirmationCallback(null, receipt);\n        }\n      });\n    });\n  }\n});\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001\u6700\u521d\u306b Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u3001\u4f7f\u7528\u3059\u308b Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001\u30ea\u30c3\u30b9\u30f3\u3059\u308b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30cf\u30c3\u30b7\u30e5\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u306b\u3001Web3.js \u304c\u63d0\u4f9b\u3059\u308b eth.getTransactionReceipt() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u9818\u53ce\u66f8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u30ec\u30b7\u30fc\u30c8\u304c\u65e2\u306b\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3092\u76f4\u63a5\u547c\u3073\u51fa\u3057\u3066\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u9818\u53ce\u66f8\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408, \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306f\u307e\u3060\u78ba\u8a8d\u3055\u308c\u308b\u306e\u3092\u5f85\u3063\u3066\u3044\u307e\u3059. web3.eth.subscribe() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u65b0\u3057\u3044\u30d6\u30ed\u30c3\u30af\u30d8\u30c3\u30c0\u30fc\u30a4\u30d9\u30f3\u30c8\u3092\u30ea\u30c3\u30b9\u30f3\u3057\u307e\u3059. \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u78ba\u8a8d\u3055\u308c\u308b\u3068\u3001\u30a4\u30d9\u30f3\u30c8\u306e\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3092\u89e3\u9664\u3057\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u547c\u3073\u51fa\u3057\u307e\u3059.\u95a2\u6570\u3002<\/p>\n\n\n\n<p>\u4e00\u822c\u306b\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u76e3\u8996\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u958b\u767a\u3068\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u304a\u3051\u308b\u91cd\u8981\u306a\u30b9\u30c6\u30c3\u30d7\u306e 1 \u3064\u3067\u3059\u3002\u30cb\u30fc\u30ba\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u76e3\u8996\u3059\u308b\u9069\u5207\u306a\u65b9\u6cd5\u3092\u9078\u629e\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u30b9\u30de\u30fc\u30c8\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3068\u306f\u4f55\u304b\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8 (Smart Contract) \u306f\u3001\u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3\u6280\u8853\u306b\u57fa\u3065\u304f\u81ea\u52d5\u5316\u3055\u308c\u305f\u5951\u7d04\u3067\u3042\u308a\u3001\u7b2c\u4e09\u8005\u306e\u4ecb\u5165\u306a\u3057\u306b\u5951\u7d04\u6761\u4ef6\u3092\u81ea\u52d5\u7684\u306b\u5b9f\u884c\u304a\u3088\u3073\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306f\u3001\u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3\u4e0a\u306b\u5b58\u5728\u3057\u3001\u5171\u6709\u5206\u6563\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5185\u306e\u8907\u6570\u306e\u53c2\u52a0\u8005\u304c\u5b9f\u884c\u3067\u304d\u308b\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc \u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u3057\u3066\u8a18\u8ff0\u3055\u308c\u305f\u30b3\u30fc\u30c9\u3067\u3059\u3002\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306f\u30eb\u30fc\u30eb\u3068\u6761\u4ef6\u3092\u5b9a\u7fa9\u3067\u304d\u3001\u3053\u308c\u3089\u306e\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u308b\u3068\u3001\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u304c\u81ea\u52d5\u7684\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3\u4e0a\u3067\u5b9f\u884c\u3055\u308c\u308b\u305f\u3081\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306f\u4e0d\u5909\u3067\u900f\u660e\u6027\u304c\u3042\u308a\u5b89\u5168\u3067\u3042\u308a\u3001\u30c7\u30b8\u30bf\u30eb\u901a\u8ca8\u3001\u30c7\u30b8\u30bf\u30eb\u8cc7\u7523\u3001\u96fb\u5b50\u6295\u7968\u3001\u30b5\u30d7\u30e9\u30a4 \u30c1\u30a7\u30fc\u30f3\u7ba1\u7406\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u30b7\u30ca\u30ea\u30aa\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b9\u30de\u30fc\u30c8\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u6838\u3068\u306a\u308b\u8003\u3048\u65b9\u306f\u5206\u6563\u5316\u3067\u3042\u308a\u3001\u5f93\u6765\u306e\u6cd5\u5236\u5ea6\u3084\u4ef2\u4ecb\u8005\u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u305f\u3081\u3001\u30b3\u30b9\u30c8\u3092\u5927\u5e45\u306b\u524a\u6e1b\u3057\u3001\u52b9\u7387\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306f\u3001\u53c2\u52a0\u8005\u9593\u306e\u76f8\u4e92\u4f5c\u7528\u3068\u4fe1\u983c\u306b\u57fa\u3065\u3044\u3066\u3001\u5951\u7d04\u3092\u81ea\u52d5\u7684\u306b\u5b9f\u884c\u304a\u3088\u3073\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306f\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u8ab0\u3067\u3082\u30b3\u30fc\u30c9\u3084\u64cd\u4f5c\u3092\u78ba\u8a8d\u3067\u304d\u308b\u305f\u3081\u3001\u900f\u660e\u6027\u3068\u4fe1\u983c\u6027\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001\u30b9\u30de\u30fc\u30c8\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306f\u3001\u4e2d\u9593\u696d\u8005\u3092\u6392\u9664\u3057\u3001\u30b3\u30b9\u30c8\u3092\u524a\u6e1b\u3057\u3001\u52b9\u7387\u3092\u9ad8\u3081\u308b\u3053\u3068\u3067\u3001\u591a\u304f\u306e\u5f93\u6765\u306e\u7523\u696d\u3092\u5909\u9769\u3067\u304d\u308b\u9769\u65b0\u7684\u306a\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u3067\u3059\u3002\u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3\u6280\u8853\u306e\u767a\u5c55\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b7\u30ca\u30ea\u30aa\u306e\u7d99\u7d9a\u7684\u306a\u5897\u52a0\u306b\u3088\u308a\u3001\u30b9\u30de\u30fc\u30c8\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u898b\u901a\u3057\u306f\u307e\u3059\u307e\u3059\u5e83\u7bc4\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Solidity\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Solidity \u306f\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u8a2d\u8a08\u3055\u308c\u305f\u3001JavaScript \u3068 C++ \u306b\u57fa\u3065\u304f\u9ad8\u30ec\u30d9\u30eb\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u516c\u5f0f\u8a00\u8a9e\u3067\u3042\u308a\u3001\u6700\u3082\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3 \u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8 \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e 1 \u3064\u3067\u3059\u3002<\/p>\n\n\n\n<p>Solidity \u306f\u3001\u7d99\u627f\u3001\u62bd\u8c61\u30af\u30e9\u30b9\u3001\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0\u3001\u30a4\u30d9\u30f3\u30c8\u306a\u3069\u306e\u4e00\u822c\u7684\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u6a5f\u80fd\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u4ed6\u306e\u8a00\u8a9e\u3068\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u305f\u3081\u306e\u30a4\u30f3\u30e9\u30a4\u30f3 \u30a2\u30bb\u30f3\u30d6\u30ea\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002Solidity \u3092\u4f7f\u7528\u3057\u3066\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30c7\u30b8\u30bf\u30eb\u901a\u8ca8\u3001\u6295\u7968\u30b7\u30b9\u30c6\u30e0\u3001\u30b5\u30d7\u30e9\u30a4 \u30c1\u30a7\u30fc\u30f3\u8ffd\u8de1\u306a\u3069\u306e\u3055\u307e\u3056\u307e\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092 Ethereum \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Solidity \u3067\u8a18\u8ff0\u3055\u308c\u305f\u5358\u7d14\u306a\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u4f8b\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">solidity\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3059\u308b<code>pragma solidity ^0.8.0;\n\ncontract MyContract {\n  string public message;\n\n  constructor(string memory _message) {\n    message = _message;\n  }\n\n  function setMessage(string memory _message) public {\n    message = _message;\n  }\n}\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001\u30d1\u30d6\u30ea\u30c3\u30af\u5909\u6570 message \u3068\u66f8\u304d\u8fbc\u307f\u53ef\u80fd\u306a\u95a2\u6570 setMessage \u3092\u542b\u3080 MyContract \u3068\u3044\u3046\u540d\u524d\u306e\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u5b9a\u7fa9\u3057\u307e\u3057\u305f\u3002\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u304c\u4f5c\u6210\u3055\u308c\u305f\u3089\u3001\u6700\u521d\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u3057\u3066\u6587\u5b57\u5217\u3092\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>Solidity \u3067\u306f\u3001\u30d7\u30e9\u30b0\u30de \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u30010.8.0 \u3088\u308a\u4e0a\u306e Solidity \u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002\u307e\u305f\u3001memory \u3068\u3044\u3046\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u5909\u6570\u304c\u30e1\u30e2\u30ea\u306b\u683c\u7d0d\u3055\u308c\u308b\u3053\u3068\u3092\u5ba3\u8a00\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001Solidity \u306f\u5f37\u529b\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3042\u308a\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u7c21\u5358\u3067\u5b89\u5168\u304b\u3064\u4fe1\u983c\u3067\u304d\u308b\u65b9\u6cd5\u3092\u958b\u767a\u8005\u306b\u63d0\u4f9b\u3057\u307e\u3059\u3002\u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3\u6280\u8853\u306e\u767a\u5c55\u306b\u4f34\u3044\u3001Solidity \u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u898b\u901a\u3057\u306f\u307e\u3059\u307e\u3059\u5e83\u7bc4\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3078\u306e\u30b9\u30de\u30fc\u30c8\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u5c55\u958b\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092 Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u624b\u9806\u306b\u5f93\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8 \u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3059\u308b: Solidity \u306a\u3069\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8 \u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306f\u3001Solidity IDE \u3084 Remix \u306a\u3069\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u8a18\u8ff0\u304a\u3088\u3073\u30c6\u30b9\u30c8\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8 \u30b3\u30fc\u30c9\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b: Solidity \u30b3\u30f3\u30d1\u30a4\u30e9\u3092\u4f7f\u7528\u3057\u3066\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8 \u30b3\u30fc\u30c9\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u30d0\u30a4\u30c8\u30b3\u30fc\u30c9\u3068 ABI (Application Binary Interface) \u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u5c55\u958b\u3059\u308b: Web3.js \u307e\u305f\u306f\u305d\u306e\u4ed6\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092 Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u5c55\u958b\u3057\u307e\u3059\u3002\u5fc5\u8981\u306a\u30ac\u30b9\u6599\u91d1\u3068\u53d6\u5f15\u624b\u6570\u6599\u3092\u63d0\u4f9b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u3001Web3.js \u3092\u4f7f\u7528\u3057\u3066\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>const Web3 = require('web3');\nconst web3 = new Web3('https:\/\/mainnet.infura.io\/v3\/your_project_id');\nconst bytecode = '0x123456...'; \/\/ \u667a\u80fd\u5408\u7ea6\u7684\u5b57\u8282\u7801\nconst abi = [...]; \/\/ \u667a\u80fd\u5408\u7ea6\u7684ABI\n\nconst myContract = new web3.eth.Contract(abi);\n\nconst deployContract = async () =&gt; {\n  const accounts = await web3.eth.getAccounts();\n  const result = await myContract.deploy({\n    data: bytecode\n  }).send({\n    from: accounts[0],\n    gas: 1500000,\n    gasPrice: '30000000000'\n  });\n  console.log('\u5408\u7ea6\u5730\u5740\uff1a', result.options.address);\n};\n\ndeployContract();\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001\u6700\u521d\u306b Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u3001\u4f7f\u7528\u3059\u308b Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u30d0\u30a4\u30c8\u30b3\u30fc\u30c9\u3068 ABI \u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u6b21\u306b\u3001web3.eth.Contract() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066 myContract \u3068\u3044\u3046\u30b3\u30f3\u30c8\u30e9\u30af\u30c8 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u5f8c\u306b\u3001myContract.deploy() \u30e1\u30bd\u30c3\u30c9\u3068 send() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092 Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3067\u30b3\u30f3\u30c8\u30e9\u30af\u30c8 \u30a2\u30c9\u30ec\u30b9\u3092\u51fa\u529b\u3057\u307e\u3059\u3002\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u5c55\u958b\u306b\u306f\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u8907\u96d1\u3055\u3068\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u73fe\u5728\u306e\u72b6\u614b\u306b\u5fdc\u3058\u3066\u3001\u7279\u5b9a\u306e\u30ac\u30b9\u6599\u91d1\u3068\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u6599\u91d1\u304c\u5fc5\u8981\u306b\u306a\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u5c55\u958b\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u958b\u767a\u3068\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u91cd\u8981\u306a\u30b9\u30c6\u30c3\u30d7\u306e 1 \u3064\u3067\u3059\u3002\u30cb\u30fc\u30ba\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u5c55\u958b\u3059\u308b\u9069\u5207\u306a\u65b9\u6cd5\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u30b9\u30de\u30fc\u30c8\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u95a2\u6570\u306e\u547c\u3073\u51fa\u3057\u65b9\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u306b\u306f\u3001Web3.js \u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u308b API \u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>const Web3 = require('web3');\nconst web3 = new Web3('https:\/\/mainnet.infura.io\/v3\/your_project_id');\nconst abi = [...]; \/\/ \u667a\u80fd\u5408\u7ea6\u7684ABI\nconst contractAddress = '0x123456...'; \/\/ \u667a\u80fd\u5408\u7ea6\u7684\u5730\u5740\n\nconst myContract = new web3.eth.Contract(abi, contractAddress);\n\nconst callFunction = async () =&gt; {\n  const result = await myContract.methods.myFunction(param1, param2).call();\n  console.log('\u51fd\u6570\u8c03\u7528\u7ed3\u679c\uff1a', result);\n};\n\ncallFunction();\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001\u6700\u521d\u306b Web3.js \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u3001\u4f7f\u7528\u3059\u308b Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e ABI \u3068\u30a2\u30c9\u30ec\u30b9\u3092\u5b9a\u7fa9\u3057\u3001web3.eth.Contract() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066 myContract \u3068\u3044\u3046\u540d\u524d\u306e\u30b3\u30f3\u30c8\u30e9\u30af\u30c8 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u306b\u3001callFunction \u3068\u3044\u3046\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u3001myContract.methods.myFunction() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u3001\u5fc5\u8981\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u6e21\u3057\u307e\u3059\u3002\u6b21\u306b\u3001call() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u95a2\u6570\u547c\u3073\u51fa\u3057\u306e\u7d50\u679c\u3092\u53d6\u5f97\u3057\u3001\u305d\u306e\u7d50\u679c\u3092\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u306b\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u306b\u306f\u3001call() \u307e\u305f\u306f send() \u30e1\u30bd\u30c3\u30c9\u304c\u5fc5\u8981\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u72b6\u614b\u3092\u5909\u66f4\u305b\u305a\u306b\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u72b6\u614b\u306e\u307f\u3092\u8aad\u307f\u53d6\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001call() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u72b6\u614b\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001send() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u5fc5\u8981\u306a\u30ac\u30b9\u6599\u91d1\u3068\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u6599\u91d1\u3092\u63d0\u4f9b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e00\u822c\u306b\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u95a2\u6570\u306e\u547c\u3073\u51fa\u3057\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u958b\u767a\u3068\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u304a\u3051\u308b\u91cd\u8981\u306a\u30b9\u30c6\u30c3\u30d7\u306e 1 \u3064\u3067\u3059\u3002\u30cb\u30fc\u30ba\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u9069\u5207\u306a\u65b9\u6cd5\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>web3.js\u304c\u63d0\u4f9b\u3059\u308bAPI\u3084\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u6559\u3048\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Web3.js \u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3\u3068\u5bfe\u8a71\u3059\u308b\u305f\u3081\u306e JavaScript \u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308a\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u30af\u30a8\u30ea\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u30c7\u30d7\u30ed\u30a4\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u95a2\u6570\u306e\u547c\u3073\u51fa\u3057\u306b\u4f7f\u7528\u3067\u304d\u308b\u591a\u304f\u306e API \u3068\u30e1\u30bd\u30c3\u30c9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001Web3.js \u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u308b\u3044\u304f\u3064\u304b\u306e\u4e00\u822c\u7684\u306a API \u3068\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>web3.eth: \u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3001\u30d6\u30ed\u30c3\u30af\u3001\u304a\u3088\u3073\u30cd\u30c3\u30c8\u30ef\u30fc\u30af \u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u30af\u30a8\u30ea\u306b\u4f7f\u7528\u3055\u308c\u308b\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3\u306e\u30b3\u30a2 API\u3002<\/li>\n\n\n\n<li>web3.eth.Contract: \u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e ABI \u3068\u30a2\u30c9\u30ec\u30b9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3068\u5bfe\u8a71\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.getAccounts(): \u73fe\u5728\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u306e\u3059\u3079\u3066\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30ea\u30b9\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.getBlock(): \u30d6\u30ed\u30c3\u30af\u30cf\u30c3\u30b7\u30e5\u3001\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u6570\u306a\u3069\u3001\u6307\u5b9a\u3055\u308c\u305f\u30d6\u30ed\u30c3\u30af\u306e\u8a73\u7d30\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.getTransaction(): \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u30cf\u30c3\u30b7\u30e5\u3001\u9001\u4fe1\u8005\u3001\u53d7\u4fe1\u8005\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u91d1\u984d\u306a\u3069\u3001\u6307\u5b9a\u3055\u308c\u305f\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u8a73\u7d30\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.sendTransaction(): \u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.personal.unlockAccount(): \u6307\u5b9a\u3055\u308c\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30ed\u30c3\u30af\u3092\u89e3\u9664\u3057\u3066\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u9001\u4fe1\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.Contract.methods: \u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u95a2\u6570\u306f\u3001\u5fc5\u8981\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.Contract.deploy(): \u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092 Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.utils: Ethereum \u30a2\u30c9\u30ec\u30b9\u3001\u30d0\u30a4\u30c8\u30b3\u30fc\u30c9\u3001\u6570\u5024\u3001\u65e5\u4ed8\u306a\u3069\u306e\u4e00\u822c\u7684\u306a\u30bf\u30a4\u30d7\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u95a2\u6570\u30e9\u30a4\u30d6\u30e9\u30ea\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b API \u3068\u30e1\u30bd\u30c3\u30c9\u306b\u52a0\u3048\u3066\u3001Web3.js \u306f\u3001HTTP \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3068 WebSocket \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30ce\u30fc\u30c9\u3068\u901a\u4fe1\u3057\u305f\u308a\u3001IPFS \u306a\u3069\u306e\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u3068\u5bfe\u8a71\u3057\u305f\u308a\u3059\u308b\u306a\u3069\u3001\u4ed6\u306e\u591a\u304f\u306e API \u3068\u30e1\u30bd\u30c3\u30c9\u3082\u63d0\u4f9b\u3057\u307e\u3059\u3002Web3.js \u306e API \u3068\u30e1\u30bd\u30c3\u30c9\u306f\u975e\u5e38\u306b\u8c4a\u5bcc\u3067\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u3068\u500b\u4eba\u306e\u597d\u307f\u306b\u5fdc\u3058\u3066\u9069\u5207\u306a API \u3068\u30e1\u30bd\u30c3\u30c9\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u30ce\u30fc\u30c9\u7ba1\u7406\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u5b9f\u884c\u3057\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u8907\u6570\u306e\u30ce\u30fc\u30c9\u3067\u69cb\u6210\u3055\u308c\u308b\u5206\u6563\u578b\u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u6307\u3057\u307e\u3059\u3002\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306f\u3001\u30e1\u30a4\u30f3\u30cd\u30c3\u30c8\u3001\u30c6\u30b9\u30c8\u30cd\u30c3\u30c8\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306a\u3069\u3001\u3044\u304f\u3064\u304b\u306e\u30bf\u30a4\u30d7\u306b\u5206\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30ce\u30fc\u30c9\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3057\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u72b6\u614b\u3092\u7dad\u6301\u3059\u308b\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc \u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002\u30ce\u30fc\u30c9\u306f\u3001\u30d5\u30eb \u30ce\u30fc\u30c9\u3001\u8efd\u91cf\u30ce\u30fc\u30c9\u3001\u307e\u305f\u306f\u305d\u306e\u4ed6\u306e\u30bf\u30a4\u30d7\u306e\u30ce\u30fc\u30c9\u3067\u3059\u3002\u5b8c\u5168\u306a\u30ce\u30fc\u30c9\u306f\u3001\u5b8c\u5168\u306a\u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3 \u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3057\u3001\u3059\u3079\u3066\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u691c\u8a3c\u3067\u304d\u308b\u30ce\u30fc\u30c9\u3067\u3059\u3002\u8efd\u91cf\u30ce\u30fc\u30c9\u306f\u30d6\u30ed\u30c3\u30af \u30d8\u30c3\u30c0\u30fc\u306e\u307f\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af \u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u3059\u3070\u3084\u304f\u540c\u671f\u3067\u304d\u307e\u3059\u3002\u4ed6\u306e\u30bf\u30a4\u30d7\u306e\u30ce\u30fc\u30c9\u306b\u306f\u3001\u30de\u30a4\u30ca\u30fc \u30ce\u30fc\u30c9\u3001\u30a6\u30a9\u30ec\u30c3\u30c8 \u30ce\u30fc\u30c9\u3001\u304a\u3088\u3073\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8 \u30ce\u30fc\u30c9\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u30ce\u30fc\u30c9\u306e\u7ba1\u7406\u306b\u306f\u3001\u6b21\u306e\u5074\u9762\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30ce\u30fc\u30c9\u306e\u9078\u629e: \u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001\u9069\u5207\u306a\u30ce\u30fc\u30c9 \u30bf\u30a4\u30d7\u3068\u30b5\u30fc\u30d3\u30b9 \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u4e00\u822c\u7684\u306a Ethereum \u30ce\u30fc\u30c9 \u30b5\u30fc\u30d3\u30b9\u306b\u306f\u3001Infura\u3001Alchemy\u3001\u304a\u3088\u3073 QuickNode \u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30ce\u30fc\u30c9\u306e\u540c\u671f: \u30ce\u30fc\u30c9\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u540c\u671f\u3057\u3001\u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3\u4e0a\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3068\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8 \u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u691c\u8a3c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30ce\u30fc\u30c9\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9: \u30ce\u30fc\u30c9\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u3001\u30ce\u30fc\u30c9\u3092\u5b9a\u671f\u7684\u306b\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304a\u3088\u3073\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30ce\u30fc\u30c9\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3: \u30ce\u30fc\u30c9\u306f\u3001\u30ce\u30fc\u30c9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5236\u9650\u3057\u305f\u308a\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 \u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u4f7f\u7528\u3057\u305f\u308a\u3059\u308b\u306a\u3069\u3001\u9069\u5207\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56\u3092\u8b1b\u3058\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30ce\u30fc\u30c9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9: \u30ce\u30fc\u30c9\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u9045\u5ef6\u3068\u8f3b\u8f33\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u51e6\u7406\u3057\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u5b9f\u884c\u3059\u308b\u306e\u306b\u5341\u5206\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5099\u3048\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30ce\u30fc\u30c9\u306e\u76e3\u8996: \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u554f\u984c\u3001\u30ce\u30fc\u30c9\u306e\u30af\u30e9\u30c3\u30b7\u30e5\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u9055\u53cd\u306a\u3069\u3092\u691c\u51fa\u3059\u308b\u305f\u3081\u306b\u3001\u30ce\u30fc\u30c9\u3092\u76e3\u8996\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u30ce\u30fc\u30c9\u306e\u7ba1\u7406\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u958b\u767a\u3068\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u884c\u3046\u4e0a\u3067\u91cd\u8981\u306a\u30b9\u30c6\u30c3\u30d7\u306e 1 \u3064\u3067\u3059\u3002\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u30ce\u30fc\u30c9\u7ba1\u7406\u30c6\u30af\u30ce\u30ed\u30b8\u3092\u7406\u89e3\u3057\u3066\u7fd2\u5f97\u3059\u308b\u3053\u3068\u306f\u3001\u958b\u767a\u8005\u304c\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3 \u30c6\u30af\u30ce\u30ed\u30b8\u3092\u3088\u308a\u3088\u304f\u7406\u89e3\u3057\u3001\u9069\u7528\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>web3.js API\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3068\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u51e6\u7406\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Web3.js API \u306f\u3001Ethereum \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3068\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u4e00\u822c\u7684\u306a Web3.js API \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304a\u3088\u3073\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u51e6\u7406\u30e1\u30bd\u30c3\u30c9\u306e\u4e00\u90e8\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>web3.eth.sendTransaction(): Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u9001\u4fe1\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u9001\u4fe1\u8005\u30a2\u30c9\u30ec\u30b9\u3001\u53d7\u4fe1\u8005\u30a2\u30c9\u30ec\u30b9\u3001\u53d6\u5f15\u91d1\u984d\u3001\u30ac\u30b9\u6599\u91d1\u306a\u3069\u3001\u3044\u304f\u3064\u304b\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u6b63\u5e38\u306b\u9001\u4fe1\u3055\u308c\u308b\u3068\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30cf\u30c3\u30b7\u30e5\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.getTransaction(): \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30cf\u30c3\u30b7\u30e5\u3001\u9001\u4fe1\u8005\u3001\u53d7\u4fe1\u8005\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u91d1\u984d\u306a\u3069\u3001\u6307\u5b9a\u3055\u308c\u305f\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u8a73\u7d30\u60c5\u5831\u3092\u7167\u4f1a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.getTransactionReceipt(): \u53d6\u5f15\u72b6\u6cc1\u3001\u30ac\u30b9\u4f7f\u7528\u91cf\u3001\u30ed\u30b0\u60c5\u5831\u306a\u3069\u3001\u6307\u5b9a\u3055\u308c\u305f\u53d6\u5f15\u306e\u53d7\u9818\u60c5\u5831\u3092\u7167\u4f1a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.Contract.methods: \u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u95a2\u6570\u306f\u3001\u5fc5\u8981\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u6700\u521d\u306b\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.Contract.deploy(): \u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3092 Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.Contract.events: \u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u30ea\u30c3\u30b9\u30f3\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30a4\u30d9\u30f3\u30c8\u540d\u3068\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3092\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.Contract.getPastEvents(): \u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u5c65\u6b74\u30a4\u30d9\u30f3\u30c8\u3092\u7167\u4f1a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30a4\u30d9\u30f3\u30c8\u540d\u3001\u30d5\u30a3\u30eb\u30bf\u30fc\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3092\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.utils.toWei() \u304a\u3088\u3073 web3.utils.fromWei(): \u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u306e\u91d1\u984d\u3092 wei \u306b\u3001\u307e\u305f\u306f\u305d\u306e\u9006\u306b\u5909\u63db\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4e00\u822c\u7684\u306a Web3.js API \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304a\u3088\u3073\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u51e6\u7406\u30e1\u30bd\u30c3\u30c9\u306b\u52a0\u3048\u3066\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u30ac\u30b9\u4fa1\u683c\u3068\u30ac\u30b9\u5236\u9650\u3092\u4f7f\u7528\u3059\u308b\u3001HD \u30a6\u30a9\u30ec\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u751f\u6210\u304a\u3088\u3073\u7ba1\u7406\u3059\u308b\u3001ERC20 \u3092\u4f7f\u7528\u3059\u308b\u3001\u304a\u3088\u3073ERC721\u898f\u683c \u30c8\u30fc\u30af\u30f3\u53d6\u5f15\u306a\u3069\u306b\u5bfe\u5fdc&nbsp;Web3.js \u306b\u306f\u8c4a\u5bcc\u306a API \u3068\u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u3068\u500b\u4eba\u306e\u597d\u307f\u306b\u5fdc\u3058\u3066\u9069\u5207\u306a API \u3068\u30e1\u30bd\u30c3\u30c9\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>web3.js API \u306e\u30a4\u30d9\u30f3\u30c8\u3068\u30d5\u30a3\u30eb\u30bf\u30fc\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Web3.js API \u306f\u3001Ethereum \u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3\u3067\u30a4\u30d9\u30f3\u30c8\u3068\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u30ea\u30c3\u30b9\u30f3\u3059\u308b\u305f\u3081\u306e\u30a4\u30d9\u30f3\u30c8\u3068\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Web3.js API \u30a4\u30d9\u30f3\u30c8\u304a\u3088\u3073\u30d5\u30a3\u30eb\u30bf\u30fc \u30e1\u30bd\u30c3\u30c9\u306e\u4e00\u90e8\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>web3.eth.Contract.events: \u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u30ea\u30c3\u30b9\u30f3\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30a4\u30d9\u30f3\u30c8\u540d\u3068\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3092\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>myContract.events.MyEvent({\n  fromBlock: 0,\n  toBlock: 'latest'\n}, function(error, event){\n  console.log(event);\n});\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001events() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e MyEvent \u30a4\u30d9\u30f3\u30c8\u3092\u30ea\u30c3\u30b9\u30f3\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u30a4\u30d9\u30f3\u30c8\u3092\u30d6\u30ed\u30c3\u30af 0 \u304b\u3089\u6700\u65b0\u306e\u30d6\u30ed\u30c3\u30af\u306b\u5236\u9650\u3059\u308b\u30d5\u30a3\u30eb\u30bf\u30fc\u3082\u6e21\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>web3.eth.Contract.getPastEvents(): \u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u5c65\u6b74\u30a4\u30d9\u30f3\u30c8\u3092\u7167\u4f1a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30a4\u30d9\u30f3\u30c8\u540d\u3001\u30d5\u30a3\u30eb\u30bf\u30fc\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3092\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>myContract.getPastEvents('MyEvent', {\n  filter: {myVar: [1, 2, 3]},\n  fromBlock: 0,\n  toBlock: 'latest'\n}, function(error, events){\n  console.log(events);\n});\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001getPastEvents() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u5185\u306e MyEvent \u30a4\u30d9\u30f3\u30c8\u306e\u5c65\u6b74\u3092\u30af\u30a8\u30ea\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u6e21\u3057\u3066\u30a4\u30d9\u30f3\u30c8 \u30b9\u30b3\u30fc\u30d7\u3092\u5236\u9650\u3057\u3001\u30a4\u30d9\u30f3\u30c8 \u30c7\u30fc\u30bf\u3092\u30d5\u30a3\u30eb\u30bf\u30fc\u51e6\u7406\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>web3.eth.subscribe(): Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30a4\u30d9\u30f3\u30c8\u3068\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">javascript\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>web3.eth.subscribe('logs', {\n  address: '0x123456...',\n  topics: ['0x123456...']\n}, function(error, result){\n  console.log(result);\n});\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001subscribe() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066 Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30ed\u30b0 \u30a4\u30d9\u30f3\u30c8\u3092\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3057\u3001\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u6e21\u3057\u3066\u30a4\u30d9\u30f3\u30c8\u306e\u7bc4\u56f2\u3092\u5236\u9650\u3057\u3001\u30a4\u30d9\u30f3\u30c8 \u30c7\u30fc\u30bf\u3092\u30d5\u30a3\u30eb\u30bf\u30fc\u51e6\u7406\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Web3.js \u306e\u30a4\u30d9\u30f3\u30c8\u3068\u30d5\u30a3\u30eb\u30bf\u30fc API \u3092\u4f7f\u7528\u3057\u3066\u3001\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u30a4\u30d9\u30f3\u30c8\u3068\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u76e3\u8996\u3057\u3001\u5c65\u6b74\u30a4\u30d9\u30f3\u30c8\u3068\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30c7\u30fc\u30bf\u3092\u7167\u4f1a\u3067\u304d\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30a4\u30d9\u30f3\u30c8\u3068\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u6027\u3068\u5fdc\u7b54\u6027\u304c\u5411\u4e0a\u3057\u3001\u958b\u767a\u8005\u304c Ethereum \u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3 \u30c7\u30fc\u30bf\u3092\u3088\u308a\u3088\u304f\u7406\u89e3\u3057\u3001\u5206\u6790\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1881\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>web3.js API Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u30ce\u30fc\u30c9\u7ba1\u7406\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Web3.js API \u306f\u3001Ethereum \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304a\u3088\u3073\u30ce\u30fc\u200b\u200b\u30c9\u7ba1\u7406\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b\u591a\u304f\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u4e00\u822c\u7684\u306a Web3.js API \u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304a\u3088\u3073\u30ce\u30fc\u200b\u200b\u30c9\u7ba1\u7406\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>web3.eth.net.getId(): \u73fe\u5728\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e ID \u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u30011 \u306f Ethereum \u30e1\u30a4\u30f3 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u610f\u5473\u3057\u30013 \u306f Ropsten \u30c6\u30b9\u30c8 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.net.getPeerCount(): \u73fe\u5728\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u306e\u30ce\u30fc\u30c9\u6570\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.net.isListening(): \u73fe\u5728\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304c\u30ea\u30c3\u30b9\u30f3\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.getProtocolVersion(): \u73fe\u5728\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b Ethereum \u30d7\u30ed\u30c8\u30b3\u30eb \u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.getSyncing(): \u73fe\u5728\u306e\u30ce\u30fc\u30c9\u306e\u540c\u671f\u30b9\u30c6\u30fc\u30bf\u30b9\u306b\u95a2\u3059\u308b\u8a73\u7d30\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.isSyncing(): \u73fe\u5728\u306e\u30ce\u30fc\u30c9\u304c\u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3\u3092\u540c\u671f\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.getGasPrice(): \u73fe\u5728\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5e73\u5747\u30ac\u30b9\u4fa1\u683c\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.getBlockNumber(): \u73fe\u5728\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u306e\u6700\u65b0\u306e\u30d6\u30ed\u30c3\u30af\u756a\u53f7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.getBlock(): \u30d6\u30ed\u30c3\u30af\u30cf\u30c3\u30b7\u30e5\u3001\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u6570\u306a\u3069\u3001\u6307\u5b9a\u3055\u308c\u305f\u30d6\u30ed\u30c3\u30af\u306e\u8a73\u7d30\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>web3.eth.getNodeInfo(): \u30ce\u30fc\u30c9\u540d\u3001\u30d7\u30ed\u30c8\u30b3\u30eb \u30d0\u30fc\u30b8\u30e7\u30f3\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af ID \u306a\u3069\u3001\u73fe\u5728\u306e\u30ce\u30fc\u30c9\u306e\u8a73\u7d30\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Web3.js API \u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304a\u3088\u3073\u30ce\u30fc\u200b\u200b\u30c9\u7ba1\u7406\u30e1\u30bd\u30c3\u30c9\u306b\u52a0\u3048\u3066\u3001HTTP \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u304a\u3088\u3073 WebSocket \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30ce\u30fc\u30c9\u3068\u901a\u4fe1\u3059\u308b\u3001IPFS \u306a\u3069\u306e\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0\u3068\u901a\u4fe1\u3059\u308b\u306a\u3069\u3001\u4ed6\u306e\u591a\u304f\u306e API \u304a\u3088\u3073\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u307e\u3059\u3002\u4ea4\u6d41\u3059\u308b\u5e83\u5834\u306a\u3069\u3002Web3.js \u306b\u306f\u8c4a\u5bcc\u306a API \u3068\u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u3068\u500b\u4eba\u306e\u597d\u307f\u306b\u5fdc\u3058\u3066\u9069\u5207\u306a API \u3068\u30e1\u30bd\u30c3\u30c9\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30ce\u30fc\u30c9\u7ba1\u7406\u3068\u306f\u3001\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3057\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u72b6\u614b\u3092\u7dad\u6301\u3059\u308b\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u6307\u3057\u307e\u3059\u3002\u30ce\u30fc\u30c9\u306f\u3001\u30d5\u30eb \u30ce\u30fc\u30c9\u3001\u8efd\u91cf\u30ce\u30fc\u30c9\u3001\u307e\u305f\u306f\u305d\u306e\u4ed6\u306e\u30bf\u30a4\u30d7\u306e\u30ce\u30fc\u30c9\u3067\u3059\u3002\u5b8c\u5168\u306a\u30ce\u30fc\u30c9\u306f\u3001\u5b8c\u5168\u306a\u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3 \u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3057\u3001\u3059\u3079\u3066\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u691c\u8a3c\u3067\u304d\u308b\u30ce\u30fc\u30c9\u3067\u3059\u3002\u8efd\u91cf\u30ce\u30fc\u30c9\u306f\u30d6\u30ed\u30c3\u30af \u30d8\u30c3\u30c0\u30fc\u306e\u307f\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af \u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u3059\u3070\u3084\u304f\u540c\u671f\u3067\u304d\u307e\u3059\u3002\u4ed6\u306e\u30bf\u30a4\u30d7\u306e\u30ce\u30fc\u30c9\u306b\u306f\u3001\u30de\u30a4\u30ca\u30fc \u30ce\u30fc\u30c9\u3001\u30a6\u30a9\u30ec\u30c3\u30c8 \u30ce\u30fc\u30c9\u3001\u304a\u3088\u3073\u30b9\u30de\u30fc\u30c8 \u30b3\u30f3\u30c8\u30e9\u30af\u30c8 \u30ce\u30fc\u30c9\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>Ethereum \u30ce\u30fc\u30c9\u7ba1\u7406\u306b\u306f\u3001\u30ce\u30fc\u30c9\u306e\u9078\u629e\u3001\u540c\u671f\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3001\u304a\u3088\u3073\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u542b\u307e\u308c\u307e\u3059\u3002\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u30ce\u30fc\u30c9\u7ba1\u7406\u30c6\u30af\u30ce\u30ed\u30b8\u3092\u7406\u89e3\u3057\u3066\u7fd2\u5f97\u3059\u308b\u3053\u3068\u306f\u3001\u958b\u767a\u8005\u304c\u30a4\u30fc\u30b5\u30ea\u30a2\u30e0 \u30d6\u30ed\u30c3\u30af\u30c1\u30a7\u30fc\u30f3 \u30c6\u30af\u30ce\u30ed\u30b8\u3092\u3088\u308a\u3088\u304f\u7406\u89e3\u3057\u3001\u9069\u7528\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u307e\u3059\u304b\u3002web3.js \u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb &hellip; <\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"footnotes":""},"categories":[23],"tags":[],"class_list":["post-1922","post","type-post","status-publish","format-standard","hentry","category-material"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/posts\/1922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1922"}],"version-history":[{"count":1,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/posts\/1922\/revisions"}],"predecessor-version":[{"id":1923,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/posts\/1922\/revisions\/1923"}],"wp:attachment":[{"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}