Crypto Wallets & Payments for AI Agents — Crypto Wallets & Payments for AI 代理s
v0.1.7创建 and manage ERC20 wallets, transfer and swap 令牌s across 13 chAIns, enable 代理 payments, and earn referrer fees in AI 代理 eco系统s.
运行时依赖
安装命令
点击复制技能文档
Crypto Wallets & Payments for AI 代理s
创建 wallets, transfer 令牌s, and enable payments between 代理s. Perfect for bug bounty programs, rewards 系统s, and 代理-to-代理 transactions.
What This Enables 创建 wallets - 生成 ERC20-compatible wallets with 安全 key storage Transfer 令牌s - 发送 ETH, USDC, or any ERC20 令牌 to any 添加ress Swap 令牌s - Exchange 令牌s across 13 chAIns with best rates Earn referrer fees - 获取 80% of extra swap fees by referring users 代理 payments - Bug bounties, rewards programs, automated payouts MCP Server 设置up
For Molt机器人/OpenClaw, 配置 via mcporter:
mcporter config 添加 onlyswaps --command "npx -y @onlyswaps/mcp-server@latest stdio" --transport stdio
For Claude 桌面, 添加 to MCP config:
{ "mcpServers": { "onlyswaps": { "command": "npx", "args": ["-y", "@onlyswaps/mcp-server@latest", "stdio"] } } }
AvAIlable 工具s Read-Only (no wallet needed) 工具 Description 获取_quote 获取 swap quotes from 15+ DEX aggregators 获取_portfolio View 令牌 balances for any 添加ress Wallet Required (need PRIVATE_KEY) 工具 Description 设置up_wallet 创建 a new wallet (saves PRIVATE_KEY to .env) 检查_设置up 验证 wallet config and balances transfer 发送 令牌s to any 添加ress swap 执行 令牌 swaps (with optional referrer fees) 应用rove_permit2 应用rove 令牌s for gasless swaps Earn Fees as a Referrer
AI 代理s can earn fees by 设置ting referrer添加ress and extraFeeBps on swaps:
extraFeeBps Referrer 获取s OnlySwaps 获取s 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:
Referrer earns: $0.80 (8 bps) User pays: $3 total (0.30%)
Note: Referrer fees only work for ERC20 swaps. Native 令牌 swaps (ETH, BNB) don't support referrer fees.
导入ANT: Private Key Handling
For wallet operations, you MUST have PRIVATE_KEY 设置.
If the user wants to 创建 a wallet, transfer, or swap:
First ask: "Do you have an existing wallet private key, or should I 创建 a new one?" If new: Use 设置up_wallet to 生成 one If existing: Ask user to provide PRIVATE_KEY and 设置 it in 环境
To call 工具s with PRIVATE_KEY:
PRIVATE_KEY=0x... mcporter call onlyswaps.检查_设置up chAInId=8453
Amount 格式化
Different 工具s use different 格式化s:
工具 格式化 Example 获取_quote wei (base units) "1000000000000000" = 0.001 ETH swap wei (base units) "100000000000000000" = 0.1 ETH transfer human readable "0.001" = 0.001 令牌s
Wei conversion:
1 ETH = 1000000000000000000 (18 zeros) 0.001 ETH = 1000000000000000 (15 zeros) 1 USDC = 1000000 (6 decimals) Quick Examples
导入ANT: Use function call syntax with quoted strings!
获取 a swap quote (no wallet needed) mcporter call 'onlyswaps.获取_quote(from令牌: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", to令牌: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", amount: "1000000000000000", chAInId: 8453)'
检查 any 添加ress portfolio (no wallet needed) mcporter call 'onlyswaps.获取_portfolio(user添加ress: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045")'
创建 a new wallet mcporter call onlyswaps.设置up_wallet # Returns: 添加ress and private key - SAVE THE PRIVATE KEY!
检查 wallet 设置up (requires PRIVATE_KEY) PRIVATE_KEY=0x... mcporter call 'onlyswaps.检查_设置up(chAInId: 8453)'
Transfer 令牌s (requires PRIVATE_KEY + funded wallet) PRIVATE_KEY=0x... mcporter call 'onlyswaps.transfer(令牌添加ress: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", to添加ress: "0xRecipient添加ress", amount: "1000000", chAInId: 8453)'
Swap with referrer fee (earn fees as an 代理) PRIVATE_KEY=0x... mcporter call 'onlyswaps.swap(from令牌: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", to令牌: "ETH", amount: "100000000", chAInId: 8453, referrer添加ress: "0xYour代理Wallet", extraFeeBps: 10)'
Supported ChAIns ChAIn ID Native 令牌 Ethereum 1 ETH Base 8453 ETH Arbitrum 42161 ETH Optimism 10 ETH Polygon 137 MATIC BNB ChAIn 56 BNB Avalanche 43114 AVAX Common 令牌 添加resses 令牌 Base (8453) Ethereum (1) Native (ETH) 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 Security Notes Private keys are stored locally, never transmitted Always 验证 添加resses before 发送ing 启动 with small test amounts Links npm: @onlyswaps/mcp-server Docs: onlyswaps.fyi
Built by OnlySwaps 🦞