← 返回
AI智能 中文

A2A Payments

Blockchain USDC payments via APay — pay services, manage budgets, open streaming channels, and handle x402 protocol.
APay区块链USDC支付—支付服务、管理预算、开通流媒体频道、处理x402协议。
paparusi
AI智能 clawhub v2.0.1 1 版本 99798.8 Key: 无需
★ 0
Stars
📥 992
下载
💾 83
安装
1
版本
#base#blockchain#latest#payments#usdc

概述

A2A Payments (APay)

Blockchain-native USDC payments for AI agents on Base chain. Pay for services, manage budgets, and handle micropayments.

Quick Start

Check your balance:

Use apay_check_balance to see my USDC balance

Pay a service:

Use apay_pay_service with serviceId "svc-123" and amount "0.50"

Available Tools

Balance & Budget

ToolDescription
-------------------
apay_check_balanceCheck USDC balance, daily budget, spending limits
apay_budget_checkVerify if a specific amount is affordable
apay_spending_historyGet spending analytics and history

Payments

ToolDescription
-------------------
apay_pay_servicePay a service (agent pays gas)
apay_pay_signedGasless signed payment (server submits on-chain)
apay_estimate_costEstimate cost including 0.5% platform fee

Services

ToolDescription
-------------------
apay_list_servicesList available APay services
apay_get_serviceGet detailed service info

Payment Channels (Streaming)

ToolDescription
-------------------
apay_channel_statusCheck channel status
apay_stream_openOpen channel with USDC deposit
apay_stream_paySign off-chain micropayment
apay_stream_closeClose channel (refund unspent)

x402 Protocol

ToolDescription
-------------------
apay_x402_fetchFetch URL with automatic x402 payment on HTTP 402

Workflows

Pay for a tool execution

  1. apay_budget_check — verify affordability
  2. apay_estimate_cost — see total with fees
  3. apay_pay_service — execute payment
  4. Receive payment receipt with tx hash

Streaming micropayments

For services that charge per-request (API calls, data feeds):

  1. apay_stream_open — deposit USDC into channel
  2. apay_stream_pay — sign micropayments (off-chain, instant)
  3. apay_stream_close — settle on-chain, refund remainder

x402 auto-payment

For services using the HTTP 402 payment protocol:

Use apay_x402_fetch with url "https://api.example.com/premium/data" and maxPayment "1.00"

The tool automatically detects 402 responses, pays the required amount, and retries the request.

Network

  • Chain: Base (Coinbase L2)
  • Stablecoin: USDC (6 decimals)
  • Model: Escrow-based sessions with spending limits
  • Testnet: base-sepolia for development

版本历史

共 1 个版本

  • v2.0.1 当前
    2026-03-29 12:23 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,066 📥 802,758
data-analysis

A2A Marketplace

paparusi
基于 AgentForge 的 AI 工具市场,支持发现、比较和执行工具,并提供自动计费与信任评分功能。
★ 0 📥 951
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。适用于以下场景:创建/查询实体(人物、项目、任务、事件、文档)、关联相关对象、强制执行约束、将多步操作规划为图谱变换,或当技能需要共享状态时。触发关键词包括"记住""我知道关于什么""将X链
★ 716 📥 244,347