Create and manage ERC20 wallets, transfer and swap tokens across 13 chains, enable agent payments, and earn referrer fees in AI agent ecosystems.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install crypto-agent-payments或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install crypto-agent-payments⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/crypto-agent-payments/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
Create wallets, transfer tokens, and enable payments between agents. Perfect for bug bounty programs, rewards systems, and agent-to-agent transactions.
For Moltbot/OpenClaw, configure via mcporter:
mcporter config add onlyswaps --command "npx -y @onlyswaps/mcp-server@latest stdio" --transport stdio
For Claude Desktop, add to MCP config:
{
"mcpServers": {
"onlyswaps": {
"command": "npx",
"args": ["-y", "@onlyswaps/mcp-server@latest", "stdio"]
}
}
}
| Tool | Description | |------|-------------| | get_quote | Get swap quotes from 15+ DEX aggregators | | get_portfolio | View token balances for any address |
| Tool | Description | |------|-------------| | setup_wallet | Create a new wallet (saves PRIVATE_KEY to .env) | | check_setup | Verify wallet config and balances | | transfer | Send tokens to any address | | swap | Execute token swaps (with optional referrer fees) | | approve_permit2 | Approve tokens for gasless swaps |
AI agents can earn fees by setting referrerAddress and extraFeeBps on swaps:
| extraFeeBps | Referrer Gets | OnlySwaps Gets | Total User Fee | |-------------|---------------|----------------|----------------| | 0 (default) | 0 bps | 20 bps | 0.20% | | 10 (suggested) | 8 bps | 22 bps | 0.30% | | 100 (max) | 80 bps | 40 bps | 1.20% |
Example: With extraFeeBps: 10, on a $1000 swap:
Note: Referrer fees only work for ERC20 swaps. Native token swaps (ETH, BNB) don't support referrer fees.
For wallet operations, you MUST have PRIVATE_KEY set.
If the user wants to create a wallet, transfer, or swap:
setup_wallet to generate oneTo call tools with PRIVATE_KEY:
PRIVATE_KEY=0x... mcporter call onlyswaps.check_setup chainId=8453
Different tools use different formats:
| Tool | Format | Example | |------|--------|---------| | get_quote | wei (base units) | "1000000000000000" = 0.001 ETH | | swap | wei (base units) | "100000000000000000" = 0.1 ETH | | transfer | human readable | "0.001" = 0.001 tokens |
Wei conversion:
1000000000000000000 (18 zeros)1000000000000000 (15 zeros)1000000 (6 decimals)IMPORTANT: Use function call syntax with quoted strings!
mcporter call 'onlyswaps.get_quote(fromToken: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", toToken: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", amount: "1000000000000000", chainId: 8453)'
mcporter call 'onlyswaps.get_portfolio(userAddress: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045")'
mcporter call onlyswaps.setup_wallet
# Returns: address and private key - SAVE THE PRIVATE KEY!
PRIVATE_KEY=0x... mcporter call 'onlyswaps.check_setup(chainId: 8453)'
PRIVATE_KEY=0x... mcporter call 'onlyswaps.transfer(tokenAddress: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", toAddress: "0xRecipientAddress", amount: "1000000", chainId: 8453)'
PRIVATE_KEY=0x... mcporter call 'onlyswaps.swap(fromToken: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", toToken: "ETH", amount: "100000000", chainId: 8453, referrerAddress: "0xYourAgentWallet", extraFeeBps: 10)'
| Chain | ID | Native Token | |-------|-----|--------------| | Ethereum | 1 | ETH | | Base | 8453 | ETH | | Arbitrum | 42161 | ETH | | Optimism | 10 | ETH | | Polygon | 137 | MATIC | | BNB Chain | 56 | BNB | | Avalanche | 43114 | AVAX |
| Token | Base (8453) | Ethereum (1) | |-------|-------------|--------------| | Native (ETH) | 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE | 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE | | USDC | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 | 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 |
---
Built by OnlySwaps 🦞
安装 Crypto Wallets & Payments for AI Agents 后,可以对 AI 说这些话来触发它
Help me get started with Crypto Wallets & Payments for AI Agents
Explains what Crypto Wallets & Payments for AI Agents does, walks through the setup, and runs a quick demo based on your current project
Use Crypto Wallets & Payments for AI Agents to create and manage ERC20 wallets, transfer and swap tokens across 13...
Invokes Crypto Wallets & Payments for AI Agents with the right parameters and returns the result directly in the conversation
What can I do with Crypto Wallets & Payments for AI Agents in my finance & investment workflow?
将技能文件夹放到 ~/.claude/skills/crypto-agent-payments/ 目录(个人级,所有项目可用),或 .claude/skills/crypto-agent-payments/(项目级)。重启 AI 客户端后,用 /crypto-agent-payments 主动调用,或让 AI 根据上下文自动发现并使用。
Crypto Wallets & Payments for AI Agents 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Crypto Wallets & Payments for AI Agents 可免费安装使用。请查阅仓库了解许可证信息。
Create and manage ERC20 wallets, transfer and swap tokens across 13 chains, enable agent payments, and earn referrer fees in AI agent ecosystems.
Lists the top use cases for Crypto Wallets & Payments for AI Agents, with example commands for each scenario
Automate my finance & investment tasks using Crypto Wallets & Payments for AI Agents
Identifies repetitive steps in your workflow and sets up Crypto Wallets & Payments for AI Agents to handle them automatically
Crypto Wallets & Payments for AI Agents 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。