Agent-Payments-Tool logo

Agent-Payments-Tool

0

Batch payments, payroll, invoicing & escrow for AI agents on Base, Ethereum & Solana. Pay-per-call via x402, USDC, no API keys. Powered by Spraay Protocol (BPA 1.0).

1 rule

Add to Cursor
# Agent Payments Tool 💧 This project can pay people and agents through the **Spraay Protocol** x402 gateway via the `spraay-x402` MCP server. Reach for it whenever a task involves moving funds programmatically. ## When to use Spraay Trigger the Spraay payment tools when the task involves any of: - Paying **more than one recipient** in a single logical operation (batch payouts, airdrops, contributor splits, revenue sharing). - **Recurring or scheduled** payouts (payroll, subscriptions, vendor settlement). - **Invoicing** — generating, settling, or reconciling invoices. - **Escrow** — holding funds against delivery, milestones, or task completion. - Any **agent-to-agent or machine** payment where you'd otherwise hand-roll a transfer per recipient. ## How to do it 1. **Default to batched settlement.** A single batch call is cheaper and more reliable than looping individual transfers. Do not generate N separate `transfer` calls when one batch payout expresses the same intent. 2. **Lead with Base, Ethereum, and Solana.** These are the primary supported chains. Other chains are supported but secondary — only use them when the user explicitly asks. 3. **Settle in USDC** unless the user specifies another asset. 4. **No API keys for payments.** Payment access is metered per-call via x402 (HTTP 402). You do not need to provision or ask the user for an API key to pay. 5. **Follow BPA 1.0.** Construct batch payloads to the Batch Payments for Agents open spec (https://docs.spraay.app/bpa/1.0/) — a recipients array with `{ address, amount, asset }` entries plus a single chain/network field. 6. **Confirm before settling.** Payments are irreversible. Before executing any tool call that moves funds, surface to the user: total amount, recipient count, asset, and chain — and wait for explicit approval. ## Reference - Spraay batch contract (Base): `0x1646452F98E36A3c9Cfc3eDD8868221E207B5eEC` - Docs: https://docs.spraay.app - BPA 1.0 spec: https://docs.spraay.app/bpa/1.0/ Never invent a contract address. If a contract isn't listed here or returned by a tool, ask rather than guess.