HDupay is an open-source demo platform for accepting stablecoin payments (USDC/USDT) on EVM networks using hierarchical deterministic wallets, built with Webman (PHP) and Vue 3.

Stars

22

7-day growth

No data

Forks

11

Open issues

0

License

MIT

Last updated

2026-07-06

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It provides a complete, functional reference implementation of an HD wallet-based stablecoin payment system with address derivation, on-chain monitoring, automatic collection, and multiple EVM chain support, all in a single PHP project.

Who it is for

  • PHP developers learning Webman framework
  • Blockchain developers exploring EVM payments
  • Businesses evaluating crypto payment solutions
  • Students studying HD wallets and ERC20 integration

Use cases

  • Run a demo for accepting USDC/USDT payments on multiple EVM chains
  • Learn how to implement HD wallet address derivation and monitoring
  • Integrate an OpenAPI or compatible EasyPay gateway for crypto checkout
  • Test automatic token collection and gas management processes

Strengths

  • Supports 4 EVM networks: Ethereum, Base, Celo, Polygon
  • Uses random_bytes-based encryption for sensitive data (mnemonics, secrets)
  • Provides both an admin dashboard and a public payment page with QR code
  • Built on high-performance PHP framework Webman with Swoole coroutine support

Considerations

  • Limited to EVM networks only; non-EVM like Tron/Solana not supported
  • Explicitly intended for learning/demo, not production-ready without security audit
  • Requires manual setup of RPC endpoints and environment key (WALLET_ENCRYPTION_KEY)

README quick start

⚠️ 重要声明 / Disclaimer

本项目仅用于开发者学习区块链、HD 钱包、EVM 稳定币收款与 Webman 项目开发实践。
本开源项目不构成任何投资建议、支付牌照建议、金融业务建议或生产环境安全承诺。使用者基于本项目进行部署、改造、二次开发、收款、转账、归集、对接第三方系统等任何行为,均由使用者自行承担全部责任,与本项目作者、维护者及贡献者无关。 请勿将本项目用于任何违法违规用途。涉及真实资产前,请务必完成代码审计、安全加固、权限隔离、私钥管理、风控合规与小额充分测试。


💎 HDupay

HDupay 是一个基于 Webman + Vue3 + Naive UI 的开源加密货币稳定币收款平台示例项目,核心目标是演示:

  • 🧠 基于助记词的 HD 钱包体系

  • 🔗 EVM 多网络收款地址派生

  • 💵 USDC / USDT 稳定币订单收款

  • 📡 RPC 扫块监听与确认进度

  • 🧾 OpenAPI / 易支付兼容接口

  • 🏦 归集钱包、Gas 钱包与自动归集任务

  • 🎛️ 后台管理端的完整业务闭环

    ✨ 项目亮点 🌍 支持网络 💵 支持货币 🧱 技术栈 🧩 系统模块 🖥️ 运行环境 🚀 快速安装

    🔗 访问入口 📡 RPC 与代理 🔌 OpenAPI 🧩 易支付 🔗 New-Api 接入 🏦 安全建议 📁 项目结构 🛠️ 常见问题


✨ 项目亮点

模块能力
🔐 HD 钱包支持助记词初始化根钱包、网络账户派生、收款子地址派生
🌐 多网络当前支持 Ethereum、Base、Celo、Polygon 四条 EVM 主网
💰 稳定币当前支持 USDC、USDT
📦 地址池用户下单后动态分配一次性收款地址,超时冻结
📡 链上监听通过 EVM RPC eth_getLogs 扫描 ERC20 Transfer 日志
✅ 区块确认按网络配置确认块数,前端显示确认进度
🏦 自动归集支持归集任务、Gas 补充、归集失败原因与重试次数
🔌 OpenAPI提供 API Key / API Secret 鉴权的开放接口
🧩 易支付兼容提供 /submit.php 兼容易支付协议风格的跳转入口
🧭 RPC 管理支持 Infura、Dwellir、OnFinality,支持分组、轮询与重试
🧦 代理池支持 HTTP / HTTPS / SOCKS5 代理,并可强制绑定 RPC 请求
📈 汇率同步通过 CoinGecko 同步 USDC / USDT 对多法币价格
🎨 后台 UIVue3 + Naive UI,提供管理后台、支付页、二维码展示

🌍 支持网络

网络Chain IDGas 原生币当前状态支持稳定币
🔷 Ethereum Mainnet1ETH✅ 已支持🔵 USDC / 🟢 USDT
🔵 Base Mainnet8453ETH✅ 已支持🔵 USDC / 🟢 USDT
🟡 Celo Mainnet42220CELO✅ 已支持🔵 USDC / 🟢 USDT
🟣 Polygon PoS Mainnet137POL✅ 已支持🔵 USDC / 🟢 USDT

当前项目主要面向 EVM 网络。如果需要接入 Tron、Solana 等非 EVM 网络,需要额外实现地址派生、签名、扫描与归集逻辑。


💵 支持货币

加密货币

代币名称说明
🔵 USDCUSD Coin当前默认稳定币之一
🟢 USDTTether USD当前默认稳定币之一

法币汇率

当前汇率模块支持常见法币,例如:

CNYUSDEURCADAUDJPYHKDGBPSGD

下单时系统会根据后台同步的稳定币价格计算应付稳定币数量,并按稳定币最小颗粒度向上取整。


🧱 技术栈

后端

技术用途
🐘 PHP 8.4+运行环境
⚡ Webman 2.xHTTP 框架
🚀 Workerman 5.x常驻进程与高性能网络服务
🌀 Swoole Event Loop协程事件循环支持
🗄️ webman/databaseMySQL 数据访问
📡 Hyperf Guzzle协程友好的 HTTP 客户端
🔐 BitWasp BitcoinBIP39 / BIP32 相关能力
🧮 web3p/ethereum-*EVM 地址、签名、交易相关能力
🧂 Sodium敏感信息加密

前端

技术用途

Description

HD自托管USDT/USDC收款系统,兼容epay易支付接口

Related repositories

Similar projects matched by category, topics, and programming language.

Wren-CMS
Wren-CMS GitHub avatar

wren-cms

Wren CMS is a minimal, single-file content management system using PHP and SQLite that lets you create a whole website with no dependencies, no build step, and a one-minute setup.

PHP
24
islam-re
islam-re GitHub avatar

Algeria-wilayas

A dataset of all 69 Algerian wilayas (provinces) following the 2026 administrative reform, provided in multiple data formats.

Data & DatabasesDatabases & Storage
15
ideaseek-zh
ideaseek-zh GitHub avatar

trading-studio

An event-driven research and analysis platform for Chinese A-share stock traders, integrating real market data, news, announcements, and AI-powered analysis without simulated data or automated trading.

PHP
14