<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>萧十一.web3</title>
        <link>https://paragraph.com/@web3-42</link>
        <description>韭菜学习履历</description>
        <lastBuildDate>Tue, 28 Apr 2026 14:16:21 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>萧十一.web3</title>
            <url>https://storage.googleapis.com/papyrus_images/9dc626b2987ac8f4a0acf17d18fb3fef657c4ac54f5249baa551b47555474d35.jpg</url>
            <link>https://paragraph.com/@web3-42</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[web3学习履历]]></title>
            <link>https://paragraph.com/@web3-42/web3</link>
            <guid>N7VqHbeiKr1GTWWo1vdK</guid>
            <pubDate>Wed, 16 Nov 2022 13:25:14 GMT</pubDate>
            <description><![CDATA[solidity学习笔记——所需工具所需工具：1、go-ethereum: 官方提供的Ethereum协议的GO语言版本，简称Geth。我们所有的开发围绕的核心就是它了，他实现了以太坊的所有功能。我们可以用它同步主网或测试网数据，还可以搭建属于自己的私有区块链网络。 2、geth command line: geth命令行工具，它提供了所有对以太坊的操作，例如账户管理，网络设置，开发模式，数据查询，交易发起等，具体的命令可以参考：https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options 3、Truffle: Truffle Suite的产品之一，号称以太坊开发者的瑞士军刀，它为开发人员提供了开发环境搭建，智能合约代码管理，合约测试，编译部署等开发所需要一切。 4、VS Code: Visual Studio Code，一款免费而强大的源代码编辑器，支持安装Solidity语法高亮的插件。 5、MetaMask钱包（新手三件套之一） 6、remix（新手三件套之一） http://remix.ethereum...]]></description>
            <content:encoded><![CDATA[<blockquote><h2 id="h-solidity" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">solidity学习笔记——所需工具</h2></blockquote><h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">所需工具：</h3><p>1、<strong>go-ethereum:</strong> 官方提供的Ethereum协议的GO语言版本，简称Geth。我们所有的开发围绕的核心就是它了，他实现了以太坊的所有功能。我们可以用它同步主网或测试网数据，还可以搭建属于自己的私有区块链网络。</p><p><strong>2、geth command line:</strong> geth命令行工具，它提供了所有对以太坊的操作，例如账户管理，网络设置，开发模式，数据查询，交易发起等，具体的命令可以参考：<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options">https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options</a></p><p><strong>3、Truffle:</strong> Truffle Suite的产品之一，号称以太坊开发者的瑞士军刀，它为开发人员提供了开发环境搭建，智能合约代码管理，合约测试，编译部署等开发所需要一切。</p><p><strong>4、VS Code:</strong> Visual Studio Code，一款免费而强大的源代码编辑器，支持安装Solidity语法高亮的插件。</p><p>5、<strong>MetaMask</strong>钱包（新手三件套之一）</p><p>6、<strong>remix</strong>（新手三件套之一）</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://remix.ethereum.org/">http://remix.ethereum.org/</a></p><p>7、区块链浏览器 Etherscan：<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options">https://</a><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://etherscan.io">etherscan.io</a></p><p>8、<strong>Truffle</strong>（初学者先不学）</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://trufflesuite.com/">https://trufflesuite.com/</a></p><p>9、<strong>Infura</strong> （强大的API节点网站）（备用）</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.infura.io/zh">https://www.infura.io/zh</a></p><p>9、必读</p><ul><li><p>Uniswap 源码： <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://web3js.readthedocs.io/">https://</a><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://github.com/Uniswap">github.com/Uniswap</a></p></li></ul><p>10、前端代替网站（省去写前端步骤用现成的测试）：</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://oneclickdapp.com/">https://oneclickdapp.com/</a></p><h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">需要掌握：</h3><p><strong>1、Solidity:</strong> 以太坊智能合约开发语言。</p><p>2、掌握web3.js 和 ether.js 库</p><ul><li><p>web3.js <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://web3js.readthedocs.io/">https://web3.js.readthedocs.is</a> 通常使用前端调用web3.js库来完成钱包操作，调用智能合约与区块链进行交互。扫链、监听链上事件、预言机等等都需要用到。必须熟练掌握</p></li><li><p>ethers.js <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://web3js.readthedocs.io/">https://</a><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://github.com/ethers-io/ethers.js">github.com/ethers-io/ethers.js</a> ethers.js 库是一个非官方提供的一个jacascrip库 跟wen3.js 库的使用方法及功能基本相同。ethers.js 库的优势在于紧凑小巧，同事包含了大量测试案例，适合新手使用。是前端及链段开发人员必须掌握的库。</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://learnblockchain.cn/docs/ethers.js/index.html">https://learnblockchain.cn/docs/ethers.js/index.html</a></p></li></ul><p>3、DApp 浏览器</p><ul><li><p>网址： <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://web3js.readthedocs.io/">https://</a><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://www.stateofthedapps.com">www.stateofthedapps.com</a> 产品经理开阔思路、借鉴产品设计的，运营人员获取运营数据的重要来源 开发人员也可以通过这个网站了解当前开发的现状和最新产品以及技术方向 其还提供了dapp的动态排名。</p></li></ul><p>4、OpenZeppelin</p><ul><li><p>网址：<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://web3js.readthedocs.io/">https://</a><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://wwwgithub.com/OpenZeppelin">www.github.com/OpenZeppelin</a> 开发安全、高效的技能合约基础库，开箱即用，无需重复造轮子！</p></li></ul><p>5、预言机 Oracle</p><ul><li><p>打通链上和链下使两个世界融合，为智能合约提供实时的喂价服务 还提供随机数服务。</p><p>chainlink</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://web3js.readthedocs.io/">https://</a><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://wwwgithub.com/OpenZeppelin">www.</a><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://github.com/smartcontractkit/chainlink">github.com/smartcontractkit/chainlink</a> 链端人员必须熟练使用掌握。</p></li></ul><blockquote><h2 id="h-solidity" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">solidity学习笔记——配置工具</h2></blockquote><p>配置工具：</p><p><strong>1、第一步：安装go-ethereum（初学建议直接安装Ganache（新手三套件之一））</strong></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://truffleframework.com/ganache">https://truffleframework.com/ganache</a></p><p>2、<strong>第二步：安装VS Code</strong></p><p>下载地址：<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://code.visualstudio.com/">https://code.visualstudio.com/</a></p><ul><li><p>安装完成Visual Studio Code之后，点击左侧扩展菜单，搜索solidity安装语法高亮插件。</p></li><li><p>安装live server插件（将本地html预览转化为网页用的）</p></li></ul><p>3、<strong>第三步：安装Truffle（Dapp开发前端、链端或全栈开发人员必备工具之一）</strong></p><p>安装Truffle之前先确保你已经成功安装Node.js：<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://nodejs.org/en/">https://nodejs.org/en/</a></p><p>接下来通过npm安装<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://nodejs.org/en/">Truffle</a>:</p><pre data-type="codeBlock" text="npm install -g truffle
"><code>npm install <span class="hljs-operator">-</span>g truffle
</code></pre><p>通过以下命令创建目录并初始化一个新的Truffle项目。这里我们先直接使用官方的MetaCoin项目来进行初次的体验。</p><pre data-type="codeBlock" text="mkdir MetaCoin                //创建项目目录
cd MetaCoin                   //进入目录
truffle unbox metacoin        //初始化Truffle metacoin项目
"><code>mkdir MetaCoin                <span class="hljs-comment">//创建项目目录</span>
cd MetaCoin                   <span class="hljs-comment">//进入目录</span>
truffle unbox metacoin        <span class="hljs-comment">//初始化Truffle metacoin项目</span>
</code></pre><p>用VSCode打开该目录的项目。</p><p>contracts目录：用于存放solidity编写的合约源码</p><p>migrations目录：存放部署的脚本文件</p><p>test目录：存放测试脚本文件</p><p>truffle.js：truffle配置文件</p><blockquote><h2 id="h-solidity" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">solidity学习笔记——开始学习</h2></blockquote><p>1、第一次尝试使用浏览器检索唤醒MetaMask钱包</p><p>方法：在Console键入下列命令。</p><pre data-type="codeBlock" text="window.ethereum.request({method:&quot;eth_requestAccounts&quot;})  
"><code>window.ethereum.request({method:<span class="hljs-string">"eth_requestAccounts"</span>})  
</code></pre><p><strong>注：非网页的空白页面或本地页面不可唤醒。</strong></p><p>2、使用VSCode</p><ul><li><p>创建一个dapp.heml文件夹保存到自建目录</p></li></ul>]]></content:encoded>
            <author>web3-42@newsletter.paragraph.com (萧十一.web3)</author>
        </item>
    </channel>
</rss>