a2a-payments

Blockchain USDC payments via APay — pay services, manage budgets, open streaming channels, and handle x402 protocol.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "a2a-payments" with this command: npx skills add Paparusi/a2a-payments

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

x402 Compute

This skill should be used when the user asks to "provision GPU instance", "spin up a cloud server", "list compute plans", "browse GPU pricing", "extend compu...

Registry SourceRecently Updated
4272Profile unavailable
Web3

x402 Singularity Layer

x402-layer helps agents pay for APIs with USDC, deploy monetized endpoints, manage credits/webhooks/marketplace listings, and handle wallet-first ERC-8004 re...

Registry SourceRecently Updated
1.9K2Profile unavailable
Web3

PayMe - Crypto Payments

Send and receive USDC/USDT crypto payments via PayMe smart wallets. Check balances, send stablecoins, view history, manage contacts, sell crypto for local cu...

Registry SourceRecently Updated
2521Profile unavailable
Web3

USDC Escrow

Trustless USDC escrow for agent-to-agent payments on Base. Create, release, dispute escrows via simple commands.

Registry SourceRecently Updated
7490Profile unavailable