{"id":244624,"date":"2023-12-06T01:40:37","date_gmt":"2023-12-05T17:40:37","guid":{"rendered":"https:\/\/www.idc.net\/help\/244624\/"},"modified":"2023-12-06T01:40:37","modified_gmt":"2023-12-05T17:40:37","slug":"%e5%9c%a8%e4%bb%a5%e5%a4%aa%e5%9d%8a%e4%b8%8a%e6%9e%84%e5%bb%ba%e5%8e%bb%e4%b8%ad%e5%bf%83%e5%8c%96%e7%9a%84%e5%be%85%e5%8a%9e%e4%ba%8b%e9%a1%b9%e5%88%97%e8%a1%a8%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/244624\/","title":{"rendered":"\u5728\u4ee5\u592a\u574a\u4e0a\u6784\u5efa\u53bb\u4e2d\u5fc3\u5316\u7684\u5f85\u529e\u4e8b\u9879\u5217\u8868\u5e94\u7528\u7a0b\u5e8f"},"content":{"rendered":"<p>\u6b22\u8fce\u6765\u5230\u4ee5\u592a\u574a\u533a\u5757\u94fe\u4e0a\u4ee4\u4eba\u5174\u594b\u7684\u53bb\u4e2d\u5fc3\u5316\u5e94\u7528\u7a0b\u5e8f (dApp) \u4e16\u754c\uff01\u5728\u672c\u5206\u6b65\u6307\u5357\u4e2d\uff0c\u6211\u4eec\u5c06\u9010\u6b65\u4ecb\u7ecd\u4f7f\u7528 Hardhat \u5f00\u53d1\u6846\u67b6\u521b\u5efa\u53bb\u4e2d\u5fc3\u5316\u5f85\u529e\u4e8b\u9879\u5217\u8868\u5e94\u7528\u7a0b\u5e8f\u7684\u8fc7\u7a0b\u3002<\/p>\n<p>\u6211\u4eec\u5c06\u6db5\u76d6\u6709\u8da3\u7684\u4e3b\u9898\uff0c\u4f8b\u5982\u8bbe\u7f6e\u5f00\u53d1\u73af\u5883\u3001\u7f16\u5199 Solidity \u667a\u80fd\u5408\u7ea6\u3001\u6d4b\u8bd5\u5b83\u4ee5\u53ca\u5c06\u5176\u90e8\u7f72\u5230 Sepolia \u6d4b\u8bd5\u7f51\u3002\u4e00\u8d77\u7f16\u5199\u4ee3\u7801\u4ee5\u4fbf\u66f4\u597d\u5730\u7406\u89e3\uff01<\/p>\n<h3>\u5148\u51b3\u6761\u4ef6<\/h3>\n<p>\u5728\u6211\u4eec\u6df1\u5165\u7814\u7a76\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u60a8\u62e5\u6709\u4ee5\u4e0b\u5de5\u5177\u548c\u5148\u51b3\u6761\u4ef6\uff1a<\/p>\n<ul>\n<li>\u2022&nbsp;Node<\/li>\n<li>\u2022&nbsp;Hardhat\uff1a\u4e0e\u533a\u5757\u94fe\u4ea4\u4e92\u7684 JavaScript \u6846\u67b6\u3002<\/li>\n<li>\u2022&nbsp;Metamask\uff1a\u5b89\u88c5 Metamaks \u5e76\u83b7\u53d6\u60a8\u7684\u79c1\u94a5\u3002\u914d\u7f6e Metamask \u4ee5\u8fde\u63a5\u5230 Sepolia \u7f51\u7edc\u3002<\/li>\n<li>\u2022&nbsp;Alchemy\uff1a\u83b7\u53d6 Sepolia \u6d4b\u8bd5\u7f51\u7684 Alchemy HTTP \u7aef\u70b9\u3002\u8fd9\u662f\u6709\u5173\u5982\u4f55\u8bbe\u7f6e\u7684\u6307\u5357\u3002[1]<\/li>\n<li>\u2022&nbsp;Test Sepolia ETH\uff1a\u4ece\u6c34\u9f99\u5934[2]\u8bf7\u6c42\u4e00\u4e9bSepolia ETH \u3002<\/li>\n<\/ul>\n<h3>\u8bbe\u7f6e\u6211\u4eec\u7684\u73af\u5883<\/h3>\n<p>\u73b0\u5728\u6211\u4eec\u5df2\u7ecf\u6536\u96c6\u4e86\u6211\u4eec\u7684\u5de5\u5177\uff0c\u662f\u65f6\u5019\u8bbe\u7f6e\u6211\u4eec\u7684\u5f00\u53d1\u73af\u5883\u4e86\u3002<\/p>\n<p>\u8fd9\u662f\u5206\u6b65\u6307\u5357\uff1a<\/p>\n<p>\u2022&nbsp;\u4e3a\u60a8\u7684\u5e94\u7528\u7a0b\u5e8f todolist \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u9879\u76ee\u76ee\u5f55\u3002<\/p>\n<pre><code>mkdir todolist\ncd todolist\nnpm init -y\nnpm install --save-dev hardhat<\/code><\/pre>\n<p>\u2022&nbsp;\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u521d\u59cb\u5316\u60a8\u7684 Hardhat \u9879\u76ee\uff1a<\/p>\n<pre><code>npx hardhat init<\/code><\/pre>\n<ul>\n<li>\u9009\u62e9\u521b\u5efa JavaScript \u9879\u76ee\u7684\u9009\u9879\uff0c\u5e76\u63a5\u53d7\u9ed8\u8ba4\u9009\u9879\u3002Hardhat \u5c06\u751f\u6210\u4e00\u4e2a\u793a\u4f8b\u9879\u76ee\u5e76\u4e3a\u60a8\u5b89\u88c5\u5fc5\u8981\u7684\u4f9d\u8d56\u9879\u3002<\/li>\n<li>\u2022&nbsp;\u5728\u60a8\u559c\u6b22\u7684\u4ee3\u7801\u7f16\u8f91\u5668\u4e2d\u6253\u5f00\u60a8\u7684\u9879\u76ee\u6587\u4ef6\u5939\u3002\u5982\u679c\u60a8\u4f7f\u7528 Visual Studio Code\uff0c\u53ea\u9700\u8fd0\u884c\uff1a<\/li>\n<\/ul>\n<pre><code>code .<\/code><\/pre>\n<p>\u2022&nbsp;\u4e3a\u4e86\u786e\u4fdd Metamask \u79c1\u94a5\u548c Alchemy RPC URL \u7b49\u654f\u611f\u4fe1\u606f\u7684\u5b89\u5168\uff0c\u8bf7\u5728\u9879\u76ee\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a .env \u6587\u4ef6\uff0c\u5e76\u6309\u4ee5\u4e0b\u683c\u5f0f\u5b58\u50a8\u5bc6\u94a5\uff1a<\/p>\n<p style=\"text-align:center\"><span>\u56fe\u7247<\/span><\/p>\n<p>\u2022&nbsp;\u5b89\u88c5\u8be5dotenv\u8f6f\u4ef6\u5305\uff0c\u8fd9\u5c06\u5e2e\u52a9\u6211\u4eec\u4f7f\u7528\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<pre><code>npm i dotenv<\/code><\/pre>\n<p>\u2022&nbsp;\u4fee\u6539 Hardhat \u914d\u7f6e\u6587\u4ef6\uff08\u901a\u5e38\u540d\u4e3a Hardhat.config.js\uff09\u4ee5\u8bc6\u522b\u6587\u4ef6\u4e2d\u7684\u5bc6\u94a5.env\uff1a<\/p>\n<pre><code>require(\"@nomicfoundation\/hardhat-toolbox\");\nrequire(\"dotenv\").config();\n\nmodule.exports = {\n  solidity: \"0.8.19\",\n\n  networks: {\n    sepolia: {\n      url: process.env.ALCHEMY_API_KEY_URL,\n      accounts: [process.env.PRIVATE_KEY],\n    },\n  },\n};<\/code><\/pre>\n<p>\u60a8\u7684\u73af\u5883\u73b0\u5728\u5df2\u51c6\u5907\u597d\u5728\u4ee5\u592a\u574a\u533a\u5757\u94fe\u4e0a\u65bd\u5c55\u9b54\u6cd5\uff01<\/p>\n<h4>\u5efa\u7acb\u6211\u4eec\u7684\u5408\u540c<\/h4>\n<p>\u8ba9\u6211\u4eec\u901a\u8fc7\u7f16\u5199 Solidity \u667a\u80fd\u5408\u7ea6\u6765\u6df1\u5165\u7814\u7a76\u5f85\u529e\u4e8b\u9879\u5217\u8868\u5e94\u7528\u7a0b\u5e8f\u7684\u6838\u5fc3\u3002\u5728\u5408\u540c\u6587\u4ef6\u5939\u4e2d\uff0c\u60a8\u5c06\u627e\u5230\u9ed8\u8ba4\u7684\u201cLock.sol\u201d\u6587\u4ef6\u3002\u9996\u5148\u5728\u201ccontracts\u201d\u6587\u4ef6\u5939\u4e2d\u627e\u5230\u201cLock.sol\u201d\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u91cd\u547d\u540d\u4e3a\u201cTodoList.sol\u201d\u4ee5\u4e0e\u6211\u4eec\u7684\u5408\u7ea6\u540d\u79f0\u4fdd\u6301\u4e00\u81f4\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u201cTodoList\u201d\u5408\u7ea6\uff0c\u4ee5\u53ca\u89e3\u91ca\u6bcf\u4e2a\u4ee3\u7801\u5757\u7684\u4f5c\u7528\u7684\u6ce8\u91ca\uff1a<\/p>\n<pre><code>\/\/ SPDX-License-Identifier: MIT\n\n\/\/ Solidity Version\npragma solidity 0.8.19;\n\ncontract TodoList {\n    \/\/ Struct to represent a task\n    struct Task {\n        uint id; \/\/ Unique task identifier\n        uint date; \/\/ Timestamp of task creation\n        string name; \/\/ Task name\n        string description; \/\/ Task description\n        bool isCompleted; \/\/ Flag indicating task completion status\n        address owner; \/\/ Address of the task owner\n    }\n\n    \/\/ Array to store all tasks\n    Task[] public tasks;\n\n    \/\/ Mapping to associate user addresses with their task IDs\n    mapping(address =&gt; uint[]) private userTasks;\n\n    \/\/ Constructor function\n    constructor() {}\n\n    \/\/ Event emitted when a task is created\n    event TaskCreated(\n        uint id,\n        uint date,\n        string name,\n        string description,\n        bool isCompleted,\n        address owner\n    );\n\n    \/\/ Event emitted when a task is marked as completed\n    event TaskCompleted(uint id, address owner);\n\n    \/\/ Event emitted when a task is deleted\n    event TaskDeleted(uint id, address owner);\n\n    \/\/ Function to create a new task\n    function createTask(string memory name, string memory description) public {\n        uint taskId = tasks.length; \/\/ Calculate the new task ID\n        tasks.push(\n            Task(taskId, block.timestamp, name, description, false, msg.sender)\n        ); \/\/ Create and add the new task to the array\n        userTasks[msg.sender].push(taskId); \/\/ Update the userTasks mapping\n        emit TaskCreated(\n            taskId,\n            block.timestamp,\n            name,\n            description,\n            false,\n            msg.sender\n        ); \/\/ Emit a TaskCreated event\n    }\n\n    \/\/ Function to retrieve task details by ID\n    function getTask(\n        uint id\n    )\n        public\n        view\n        returns (uint, uint, string memory, string memory, bool, address)\n    {\n        \/\/ Ensure the task ID is valid\n        require(id &lt; tasks.length, \"Task ID does not exist\"); \n        Task storage task = tasks[id]; \/\/ Retrieve the task from storage\n        return (\n            task.id,\n            task.date,\n            task.name,\n            task.description,\n            task.isCompleted,\n            task.owner\n        ); \/\/ Return task details\n    }\n\n    \/\/ Function to mark a task as completed\n    function markTaskCompleted(uint id) public {\n        \/\/ Ensure the task ID is valid\n        require(id &lt; tasks.length, \"Task ID does not exist\"); \n        Task storage task = tasks[id]; \/\/ Retrieve the task from storage\n        require(\n            task.owner == msg.sender,\n            \"Only the owner can complete the task\"\n        );\n        \/\/ Ensure the task is not already completed\n        require(!task.isCompleted, \"Task is already completed\"); \n        task.isCompleted = true; \/\/ Mark the task as completed\n        emit TaskCompleted(id, msg.sender); \/\/ Emit a TaskCompleted event\n    }\n\n    \/\/ Function to delete a task\n    function deleteTask(uint id) public {\n        \/\/ Ensure the task ID is valid\n        require(id &lt; tasks.length, \"Task ID does not exist\"); \n        Task storage task = tasks[id]; \/\/ Retrieve the task from storage\n        \/\/ Ensure only the owner can delete the task\n        require(task.owner == msg.sender, \"Only the owner can delete the task\"); \n        emit TaskDeleted(id, msg.sender); \/\/ Emit a TaskDeleted event\n\n        \/\/ Delete the task by replacing it with the last task in the array \n        \/\/ and reducing the array size\n        uint lastIndex = tasks.length - 1;\n        if (id != lastIndex) {\n            Task storage lastTask = tasks[lastIndex];\n            tasks[id] = lastTask;\n            userTasks[msg.sender][id] = lastIndex;\n        }\n        tasks.pop();\n        userTasks[msg.sender].pop();\n    }\n\n    \/\/ Function to retrieve all task IDs belonging to the caller\n    function getUserTasks() public view returns (uint[] memory) {\n        \/\/ Return the task IDs associated with the caller's address\n        return userTasks[msg.sender]; \n    }\n}<\/code><\/pre>\n<h3>\u6d4b\u8bd5\u6211\u4eec\u7684\u5408\u7ea6<\/h3>\n<p>\u6d4b\u8bd5\u6211\u4eec\u7684\u5408\u7ea6\u5bf9\u4e8e\u4fdd\u8bc1\u5176\u53ef\u9760\u6027\u548c\u529f\u80fd\u6027\u4ee5\u53ca\u786e\u4fdd\u5176\u6309\u9884\u671f\u6267\u884c\u81f3\u5173\u91cd\u8981\u3002\u5728\u4e00\u4e2a\u5bb9\u6613\u906d\u53d7\u9ed1\u5ba2\u653b\u51fb\u548c\u6f0f\u6d1e\u5229\u7528\u7684\u884c\u4e1a\u4e2d\uff0c\u7f16\u5199\u6d4b\u8bd5\u975e\u5e38\u6709\u5fc5\u8981\uff0c\u4ee5\u786e\u4fdd\u6211\u4eec\u7684\u5408\u7ea6\u4e0d\u4f1a\u5bb9\u6613\u53d7\u5230\u6f0f\u6d1e\u5229\u7528\u3002<\/p>\n<h4>\u7528 Mocha \u7f16\u5199\u6211\u4eec\u7684\u6d4b\u8bd5<\/h4>\n<p>\u6211\u4eec\u5c06\u4f7f\u7528 Mocha \u8fdb\u884c\u6d4b\u8bd5\uff0c\u6240\u4ee5\u8ba9\u6211\u4eec\u8bbe\u7f6e\u6211\u4eec\u7684\u6d4b\u8bd5\u3002\u5728 test \u6587\u4ef6\u5939\u4e2d\uff0c\u5c06 Lock.js \u6587\u4ef6\u91cd\u547d\u540d\u4e3a test.js \u5e76\u5c06\u4ee3\u7801\u66ff\u6362\u4e3a\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<pre><code>const { expect } = require(\"chai\");\nconst { ethers } = require(\"hardhat\");\n\ndescribe(\"TodoList contract\", function () {\n  let TodoList;\n  let todolist;\n  let owner;\n\n  before(async function () {\n    [owner] = await ethers.getSigners();\n\n    \/\/ Deploy the TodoList contract\n    todolist = await ethers.deployContract(\"TodoList\");\n    \/\/ await TodoList.waitForDeployment();\n  });\n\n  it(\"should create a new task\", async function () {\n    const taskName = \"Sample Task\";\n    const taskDescription = \"This is a sample task description\";\n\n    \/\/ Create a new task\n    await todolist.createTask(taskName, taskDescription);\n\n    \/\/ Retrieve the task details\n    const [id, date, name, description, isCompleted, taskOwner] =\n      await todolist.getTask(0);\n\n    expect(id).to.equal(0);\n    expect(name).to.equal(taskName);\n    expect(description).to.equal(taskDescription);\n    expect(isCompleted).to.equal(false);\n    expect(taskOwner).to.equal(owner.address);\n  });\n\n  it(\"should mark a task as completed\", async function () {\n    \/\/ Mark the task at index 0 as completed\n    await todolist.markTaskCompleted(0);\n\n    \/\/ Retrieve the task details\n    const [, , , , isCompleted] = await todolist.getTask(0);\n\n    expect(isCompleted).to.equal(true);\n  });\n\n  it(\"should delete a task\", async function () {\n    \/\/ Create a new task\n    await todolist.createTask(\n      \"Task to be deleted\",\n      \"This task will be deleted\"\n    );\n\n    \/\/ Delete the task at index 1\n    await todolist.deleteTask(1);\n\n    \/\/ Attempt to retrieve the deleted task (should throw an error)\n    let errorOccurred = false;\n    try {\n      await todolist.getTask(1);\n    } catch (error) {\n      errorOccurred = true;\n    }\n\n    expect(errorOccurred).to.equal(true);\n  });\n\n  it(\"should retrieve the user's tasks\", async function () {\n    \/\/ Create a new task\n    await todolist.createTask(\"User's Task\", \"This is the user's task\");\n\n    \/\/ Retrieve the user's tasks\n    const userTasks = await todolist.getUserTasks();\n\n    \/\/ Expect that there is at least one task\n    expect(userTasks.length).to.be.at.least(1);\n  });\n});<\/code><\/pre>\n<p>\u4e3a\u4e86\u6d4b\u8bd5\u6211\u4eec\u7684\u5408\u7ea6\uff0c\u6211\u4eec\u8fd0\u884c\u901a\u7528\u7684\uff1a<\/p>\n<pre><code>npx hardhat test<\/code><\/pre>\n<p>\u54cd\u5e94\u5e94\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p style=\"text-align:center\"><span>\u56fe\u7247<\/span><\/p>\n<h3>\u90e8\u7f72\u6211\u4eec\u7684\u5408\u7ea6<\/h3>\n<p>\u73b0\u5728\uff0c\u4ee4\u4eba\u5174\u594b\u7684\u90e8\u5206 - \u5c06\u6211\u4eec\u7684\u667a\u80fd\u5408\u7ea6\u90e8\u7f72\u5230 Sepolia \u7f51\u7edc\u3002\u6211\u4eec\u5c06\u7f16\u5199\u4e00\u4e2a\u90e8\u7f72\u811a\u672c\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<h4>\u7f16\u5199\u6211\u4eec\u7684\u90e8\u7f72\u811a\u672c<\/h4>\n<p>\u5728\u811a\u672c\u6587\u4ef6\u5939\u4e2d\uff0c\u60a8\u5c06\u627e\u5230\u4e00\u4e2a\u5305\u542b\u4e00\u4e9b\u793a\u4f8b\u4ee3\u7801\u7684deploy.js \u6587\u4ef6\u3002\u5c06 JavaScript \u4ee3\u7801\u66ff\u6362\u4e3a\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<pre><code>\/\/ Import the ethers library from the Hardhat framework\nconst { ethers } = require(\"hardhat\");\n\n\/\/ Define an asynchronous main function for contract deployment\nasync function main() {\n  \/\/ Deploy the contract\n  const TodoList = await ethers.deployContract(\"TodoList\");\n\n  \/\/ Log message to show deployment in progress\n  console.log(\"Deploying contract.....\");\n\n  \/\/ Wait for the deployment of the contract to complete\n  await TodoList.waitForDeployment();\n\n  \/\/ Log the deployment target (contract address) to the console\n  console.log(`TodoList deployed to ${TodoList.target}`);\n}\n\n\/\/ Execute the main function, and handle any errors that may occur\nmain().catch((error) =&gt; {\n  console.error(error);\n  process.exitCode = 1;\n});<\/code><\/pre>\n<p>\u8981\u5c06\u6211\u4eec\u7684\u5408\u7ea6\u90e8\u7f72\u5230 Sepolia \u7f51\u7edc\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>npx hardhat run scripts\/deploy.js --network sepolia<\/code><\/pre>\n<blockquote style=\"line-height: 1.75;margin-top: 5px;margin-bottom: 5px;padding-left: 1em;margin-left: 0px\">\n<p>\u6ce8\u610f\uff1a\u5982\u679c\u60a8\u6253\u7b97\u5c06\u667a\u80fd\u5408\u7ea6\u90e8\u7f72\u5230\u4e0d\u540c\u7684\u7f51\u7edc\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u66ff\u6362&nbsp;sepolia&nbsp;\u4e3a\u60a8\u9009\u62e9\u7684\u7f51\u7edc\u3002<\/p>\n<\/blockquote>\n<p>\u5f53\u6211\u4eec\u90e8\u7f72\u5230\u6d4b\u8bd5\u7f51\u65f6\uff0c\u8fd9\u5e94\u8be5\u9700\u8981\u51e0\u79d2\u949f\u7684\u65f6\u95f4\u3002\u60a8\u5c06\u6536\u5230\u5408\u540c\u90e8\u7f72\u7684\u786e\u8ba4\u4fe1\u606f\u4ee5\u53ca\u5408\u540c\u5730\u5740\u3002<\/p>\n<p style=\"text-align:center\"><span>\u56fe\u7247<\/span><\/p>\n<p>img<\/p>\n<p>\u73b0\u5728\u60a8\u53ef\u4ee5\u4f53\u9a8c\u53bb\u4e2d\u5fc3\u5316\u5f85\u529e\u4e8b\u9879\u5217\u8868\u53d8\u4e3a\u73b0\u5b9e\u7684\u5174\u594b\uff01\u7ee7\u7eed\u590d\u5236\u60a8\u7684\u5408\u7ea6\u5730\u5740\u5e76\u9a8c\u8bc1\u5176\u5728Sepolia Testnet Explorer[3]\u4e0a\u7684\u5b58\u5728\uff0c\u5c31\u50cf\u60a8\u5728\u4ee5\u592a\u574a\u4e3b\u7f51\u4e0a\u6240\u505a\u7684\u90a3\u6837\u3002\u8d85\u7ea7\u6709\u8da3\uff01<\/p>\n<h2>\u7ed3\u8bba<\/h2>\n<p>\u60a8\u5df2\u6210\u529f\u6784\u5efa\u7b2c\u4e00\u4e2a dApp \u5e76\u5c06\u5176\u90e8\u7f72\u5230\u4ee5\u592a\u574a\u533a\u5757\u94fe\u3002\u4f5c\u4e3a\u4e0b\u4e00\u6b65\uff0c\u6211\u5f3a\u70c8\u63a8\u8350\u4ee5\u4e0b\u8d44\u6e90\uff1a<\/p>\n<p>Lumos Academy[4]\uff1aLumos Labs \u7684 Lumos Academy \u662f\u4e00\u4e2a\u4e13\u95e8\u4e3a\u6b63\u5728\u5b66\u4e60 Web3 \u5f00\u53d1\u7684\uff08\u6709\u62b1\u8d1f\u7684\uff09Web3 \u5f00\u53d1\u4eba\u5458\u63d0\u4f9b\u7684\u5e73\u53f0<\/p>\n<p>\u4ee5\u592a\u574a\u5f00\u53d1\u6559\u7a0b[5]\uff1a\u8fd9\u4e2a\u7cbe\u9009\u7684\u793e\u533a\u6559\u7a0b\u5217\u8868\u6db5\u76d6\u4e86\u5e7f\u6cdb\u7684\u4ee5\u592a\u574a\u5f00\u53d1\u4e3b\u9898<\/p>\n<p>\u5e0c\u671b\u60a8\u559c\u6b22\u8fd9\u7bc7\u6587\u7ae0\uff01\u5982\u679c\u60a8\u6709\u4efb\u4f55\u95ee\u9898\u6216\u610f\u89c1\uff0c\u8bf7\u968f\u65f6\u5728\u4e0b\u9762\u7559\u8a00\u6216\u5728Twitter \u4e0a\u4e0e\u6211\u8054\u7cfb\uff01[6]<\/p>\n<blockquote style=\"line-height: 1.75;margin-top: 5px;margin-bottom: 5px;padding-left: 1em;margin-left: 0px\">\n<p>\u539f\u6587\uff1ahttps:\/\/tosynthegeek.hashnode.dev\/building-a-decentralized-todo-list-application-on-ethereum<\/p>\n<\/blockquote>\n<h4>\u5f15\u7528\u94fe\u63a5<\/h4>\n<p>[1]&nbsp;\u6307\u5357\u3002:&nbsp;https:\/\/docs.alchemy.com\/docs\/how-to-add-alchemy-rpc-endpoint-for-local-development#step-2-add-http-url-to-local-project<\/p>\n<p>[2]&nbsp;\u6c34\u9f99\u5934:&nbsp;https:\/\/sepoliafaucet.com\/<\/p>\n<p>[3]&nbsp;Sepolia Testnet Explorer:&nbsp;https:\/\/sepolia.etherscan.io\/<\/p>\n<p>[4]&nbsp;Lumos Academy:&nbsp;https:\/\/academy.lumoslabs.co\/<\/p>\n<p>[5]&nbsp;\u4ee5\u592a\u574a\u5f00\u53d1\u6559\u7a0b:&nbsp;https:\/\/ethereum.org\/en\/developers\/tutorials\/[6]&nbsp;Twitter \u4e0a\u4e0e\u6211\u8054\u7cfb\uff01:&nbsp;https:\/\/twitter.com\/tosynthegeek<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6b22\u8fce\u6765\u5230\u4ee5\u592a\u574a\u533a\u5757\u94fe\u4e0a\u4ee4\u4eba\u5174\u594b\u7684\u53bb\u4e2d\u5fc3\u5316\u5e94\u7528\u7a0b\u5e8f (dApp) \u4e16\u754c\uff01\u5728\u672c\u5206\u6b65\u6307\u5357\u4e2d\uff0c\u6211\u4eec\u5c06\u9010\u6b65\u4ecb\u7ecd\u4f7f\u7528 Ha [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":244625,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[200988],"tags":[],"class_list":["post-244624","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-200988"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/244624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=244624"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/244624\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media\/244625"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=244624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=244624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=244624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}