Volver al ranking

luzhenqian/web3-examples

TypeScriptexamples.web3doc.xyz

欢迎来到 Web3 世界,这里汇集了大量 Web3 示例项目和高质量学习资源。加入我们,和一百万开发者同行,一起探索并塑造未来世界的繁荣景象。立刻行动,开启您的 Web3 之旅!

nextjsreactsoliditytruffleweb3airdropbitcoinwalletblockchainethereumethereum-contractsmart-contracts
Crecimiento de estrellas
Estrellas
1.7k
Forks
248
Crecimiento semanal
Issues
0
1.7k1.7k1.7k
19 jul19 jul20 jul20 jul
Artefactosnpmnpm install web3-examples
README

Web3 Examples

本仓库包含了一系列涵盖前端、智能合约和后端的 Web3 示例代码,旨在帮助开发者快速学习和应用到实际项目中。

目录

项目结构

项目已按区块链类型组织,目录结构如下:

web3-examples/
├── ethereum/          # 以太坊相关项目
│   ├── contract/     # 智能合约(Noah Token, Noah NFT 等)
│   ├── frontend/     # Web 前端应用
│   └── mock/         # 测试数据
├── bitcoin/          # 比特币相关项目
│   └── bitcoinjs-lib/  # Bitcoin.js 示例
├── solana/           # Solana 相关项目
│   └── solana-pyth-price-feeds/  # Solana Pyth 价格预言机 DApp
├── ton/              # TON 相关项目
│   └── wallet/       # TON 钱包
├── blockchain/       # 通用区块链概念教学代码
├── script/           # 实用脚本
├── docs/             # 文档
└── assets/           # 资源文件

在线预览

预览地址:https://examples.web3doc.xyz

社区交流

如果你对 Web3 感兴趣,想从事 Web3 开发或探讨相关话题,请加入 Noah 的人人都会 Web3 社区:https://t.me/everyonesweb3

或者添加 Noah 的微信:LZQ20130415

环境准备

由于部分服务可能需要翻墙访问,或依赖于需要翻墙的服务(如 Google 验证码),建议确保你的网络环境可以科学上网。

以下是几个可靠的科学上网工具推荐:

请注意,以上工具仅供学习使用。若利用这些工具从事违法犯罪行为,我们概不承担任何法律责任。

本地运行

以太坊项目

前端

前端代码位于 ethereum/frontend 目录下。在运行之前,请确保完成以下准备工作:

  1. .env.example 文件重命名为 .env,并补充完整配置信息。
  2. 至少在 Alchemy 上申请一个 API Key。

接下来,安装依赖并启动项目:

cd ethereum/frontend
npm i
npm run dev

智能合约

智能合约代码位于 ethereum/contract 目录下。在运行之前,请确保完成以下准备工作:

  1. .env.example 文件重命名为 .env,并补充完整配置信息。
  2. 至少在 Infura 上申请一个 Project Key。

然后,你可以使用 truffle 进行智能合约开发。

Solana 项目

Solana 项目代码位于 solana/solana-pyth-price-feeds 目录下。详见 项目 README

Bitcoin 项目

Bitcoin 项目代码位于 bitcoin/bitcoinjs-lib 目录下。

TON 项目

TON 项目代码位于 ton/wallet 目录下。

学习资源

如果你有新的资源推荐或发现列表中的资源已过时或质量不佳,请通过 issue 通知我们更新。

DApp & Solidity 智能合约

综合学习资源

区块链基础

白皮书

官方文档

  • Solidity - 智能合约编程语言。
  • OpenZeppelin - Solidity 安全开发工具库。
  • Remix IDE - Solidity 开发的在线 IDE。
  • Hardhat - 用于智能合约开发的环境框架。
  • Truffle Suite - 包含 Truffle、Ganache 和 Drizzle 的智能合约开发环境。
  • Ethers.js - 用于与智能合约交互的库。
  • Web3.js - 另一种用于智能合约交互的库。
  • Viem - 最新的智能合约交互库。
  • Wagmi - 提供 React Hooks 风格 API 的智能合约交互库。
  • RainbowKit - 用于构建 Web3 钱包连接界面的库,支持 React。

书籍

铭文协议

招聘平台

中文区

英文区

测试网水龙头

撸毛工具

现在我们成立了 bc1 社区,请访问 bc1.wiki 了解并加入我们。

指纹浏览器与 IP 代理

资讯媒体平台

空投信息网站

项目调研

脚本

交易所注册手续费减免

交易所 邀请码 返佣 注册链接
币安 Binance DYE5M7LZ 最高 20% 注册
芝麻 Gate AlBNUAhe / BITCNOAH 最高 20% 注册
欧易 OKX NOAH666 最高 20% 注册
Bitget bc1666 最高 20% 注册
火币 HTX s2r99223 最高 30% 注册
深币 DeepCoin S510498 最高 30% 注册
XT NOAH 最高 80% 注册

U 卡

如果你想使用加密货币进行消费,推荐使用 PokePay,注册就送 12.8 USDT 开卡抵扣券:

https://app.pokepay.cc/pages/passport/invitation?r=162465

Repositorios relacionados
f/prompts.chat

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

HTMLOtherchatgptai
prompts.chat
166.1k21.5k
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

TypeScriptnpmOtheraigpt
dify.ai
149.5k23.6k
vercel/next.js

The React Framework

JavaScriptnpmMIT Licensereactserver-rendering
nextjs.org
141k31.5k
shadcn-ui/ui

A set of beautifully-designed, accessible components and a code distribution platform. Works with your favorite frameworks. Open Source. Open Code.

TypeScriptnpmMIT Licensecomponentsnextjs
ui.shadcn.com
119.4k9.5k
supabase/supabase

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

TypeScriptnpmApache License 2.0firebasesupabase
supabase.com
106.7k13.2k
ChatGPTNextWeb/NextChat

✨ Light and Fast AI Assistant. Support: Web | iOS | MacOS | Android | Linux | Windows

TypeScriptnpmMIT Licensechatgptnextjs
nextchat.club
88.5k59.4k
ChatGPTNextWeb/ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini/Claude LLM 应用。

TypeScriptnpmchatgptnextjs
nextchat.dev/chat
78.5k60k
coollabsio/coolify

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 280+ one-click services on your own servers.

PHPPackagistApache License 2.0nodejsmysql
coolify.io
59.1k5.1k
lobehub/lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / DeepSeek / Qwen), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Plugins/Artifacts) and Thinking. One-click FREE deployment of your private ChatGPT/ Claude / DeepSeek application.

TypeScriptnpmOtherchatgptnextjs
chat-preview.lobehub.com
57.4k12.2k
appwrite/appwrite

Appwrite® - complete cloud infrastructure for your web, mobile and AI apps. Including Auth, Databases, Storage, Functions, Messaging, Hosting, Realtime and more

TypeScriptnpmBSD 3-Clause "New" or "Revised" Licenseappwritedocker
appwrite.io
56.6k5.6k
calcom/cal.diy

Scheduling infrastructure for absolutely everyone.

TypeScriptnpmMIT Licenseopen-sourcetypescript
cal.diy
46.7k14.5k
AykutSarac/jsoncrack.com

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

TypeScriptnpmApache License 2.0jsontool
jsoncrack.com
44.3k3.6k