← 返回
未分类 中文

Eth Payment

Generate EIP-681 Ethereum payment links and QR codes for any EVM chain. Zero configuration, instant setup for receiving ETH and ERC-20 payments. Use when you...
为任意EVM链生成EIP-681以太坊支付链接和二维码,零配置,即时设置,用于接收ETH和ERC-20支付,使用场景:
bevanding
未分类 clawhub v1.0.4 1 版本 99876.7 Key: 无需
★ 1
Stars
📥 790
下载
💾 1
安装
1
版本
#latest

概述

ETH Payment Skill

> Zero config. Instant setup. Works on any EVM chain.

What This Does

Generate EIP-681 compliant payment links that work with MetaMask and other Ethereum wallets. Perfect for:

  • Payment requests and invoices
  • Donation links
  • Mobile-friendly checkout
  • Any on-chain payment collection

No API keys. No servers. No configuration.

Installation

Prerequisites

  • Python 3.8+ - Required to run the script
  • pip packages: qrcode, pillow - For QR code generation

Quick Install

Install the required packages:

pip install qrcode pillow

Run the Skill

python3 scripts/eth_payment.py create --to 0xYourAddress --amount 0.1

Quick Start

# Basic ETH payment on Base
eth-payment create --to 0xYourAddress --amount 0.1

# USDC payment with QR code
eth-payment create --to 0xYourAddress --amount 100 --token USDC --qr payment.png

# Specify network
eth-payment create --to 0xYourAddress --amount 10 --token USDC --network ethereum --qr qr.png

Commands

create - Generate Payment Link

eth-payment create --to <address> --amount <number> [options]

Required:
  --to <address>      Recipient address (0x...)
  --amount <number>   Amount to request

Options:
  --token <symbol>    Token symbol (default: ETH)
  --network <name>    Network: base, ethereum, arbitrum, optimism, polygon (default: base)
  --qr <path>         Generate QR code and save to path
  --json              Output as JSON for programmatic use

chains - List Supported Networks

eth-payment chains
eth-payment chains --json

tokens - List Tokens for Network

eth-payment tokens --network base
eth-payment tokens --network ethereum --json

validate - Validate Address

eth-payment validate 0x...

Supported Networks

NetworkChain IDNative TokenERC-20 Tokens
------------------------------------------------
base8453ETHUSDC, USDT, WETH
ethereum1ETHUSDC, USDT, WETH, DAI
arbitrum42161ETHUSDC, USDT, ARB
optimism10ETHUSDC, OP
polygon137MATICUSDC, USDT, WETH

Examples

Invoice with QR Code

eth-payment create \
  --to 0x1F3A9A450428BbF161C4C33f10bd7AA1b2599a3e \
  --amount 100 \
  --token USDC \
  --network base \
  --qr invoice_qr.png

JSON Output for Integration

eth-payment create --to 0x... --amount 10 --token USDC --json

Output:

{
  "success": true,
  "network": "base",
  "chain_id": 8453,
  "token": "USDC",
  "recipient": "0x...",
  "amount": "10",
  "links": {
    "eip681": "ethereum:0x833...@8453/transfer?address=0x...&uint256=10000000",
    "metamask": "https://metamask.app.link/send/..."
  },
  "transaction": {
    "to": "0x833...",
    "value": "0x0",
    "data": "0xa9059cbb..."
  }
}

How It Works

  1. EIP-681 Standard: Uses the Ethereum Improvement Proposal 681 format for payment links
  2. Universal: Same code works on any EVM chain - only configuration differs
  3. QR Codes: Generated locally via Python qrcode library, no external services

Security Notes

  • This skill only generates payment links, it cannot execute transactions
  • No private keys or secrets required
  • All processing happens locally
  • Always verify the recipient address before sharing payment links

Adding New Chains

To add a new EVM chain, edit config/chains.json:

{
  "chains": {
    "new-chain": {
      "name": "New Chain",
      "chain_id": 12345,
      "native_token": "NATIVE",
      "tokens": {
        "NATIVE": {
          "address": "0x0000000000000000000000000000000000000000",
          "decimals": 18,
          "is_native": true
        },
        "USDC": {
          "address": "0x...",
          "decimals": 6
        }
      }
    }
  }
}

Maintainer: Antalpha AI Team

License: MIT

版本历史

共 1 个版本

  • v1.0.4 当前
    2026-05-03 04:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Deerflow

bevanding
通过 DeerFlow LangGraph 引擎实现深度研究和异步任务执行;通过轻量级仅 API 的 Docker 部署(无前端)提交多步研究任务。
★ 1 📥 699
ai-intelligence

Walletconnect Requester

bevanding
安全地将 WalletConnect 集成到 AI 代理中,以 DApp(提议者)身份连接用户钱包,无需处理私钥,请求交易和签名。
★ 1 📥 738
data-analysis

Web3 Investor

bevanding
AI原生的DeFi投资智能,发现、分析并比较2500+协议中的收益机会,配备意图感知搜索和LLM驱动的深度...
★ 2 📥 1,202