The Problem: AI Agents Can't Pay for Things
We're in the middle of an explosion in autonomous AI agents. They can research, write, code, and make decisions. But the moment an agent needs to pay for something on-chain — send crypto to a list of contributors, execute a DeFi swap, fund an escrow, or settle an invoice — it hits a wall.
Why? Because blockchain transactions require wallets, gas estimation, chain-specific logic, and manual approvals. None of that is designed for machines. An AI agent shouldn't need to understand EVM opcodes to send USDC to five people.
That's the gap Spraay fills.
What is Spraay?
Spraay is a multi-chain batch payment protocol and x402-powered gateway that gives AI agents (and developers) a simple, pay-per-call API for crypto operations.
Instead of building custom blockchain integrations, an agent calls Spraay's gateway endpoint, pays a micropayment via the x402 protocol, and the operation executes. No API keys. No subscriptions. No KYC for basic usage. Just HTTP requests and micropayments.
What is x402?
The x402 protocol (built by Coinbase) brings the 402 Payment Required HTTP status code to life. When an agent hits a paid endpoint, it receives a 402 response with payment details. The agent's x402-compatible client automatically handles the micropayment, and the request goes through. It's like a toll booth for APIs — completely machine-native.
What Can Agents Do With Spraay?
The Spraay x402 Gateway currently exposes 57 paid endpoints and 5 free endpoints across these categories:
- AI Inference — Chat completions, image generation, embeddings, and text-to-speech powered by OpenRouter
- Payments — Batch send tokens to up to 200 recipients in a single transaction with ~80% gas savings
- DeFi Swap — Get quotes and execute token swaps across supported DEXs
- Oracle — Real-time price feeds and historical price data via CoinGecko
- Bridge — Cross-chain asset transfers
- Payroll — Recurring crypto payroll management
- Invoice — Create, track, and settle invoices on-chain
- Escrow — Trustless escrow creation, funding, release, and dispute handling
- Analytics — Wallet profiling, transaction history, token portfolio breakdowns
- Communication — XMTP messaging, email (via AgentMail), SMS, and webhook notifications
- Infrastructure — Multi-chain RPC access (7 chains via Alchemy), IPFS pinning (via Pinata), cron scheduling, and structured logging
- Identity — KYC verification and API key authentication
- Compliance — Audit trail generation and tax report exports
All of this works across 11 chains: Base, Ethereum, Arbitrum, Polygon, BNB Chain, Avalanche, Unichain, Plasma, BOB, Bittensor, and Solana.
The MCP Server: Plug Spraay Into Any AI Agent
Beyond the HTTP gateway, Spraay also ships an MCP (Model Context Protocol) server with 60 tools that map directly to the gateway endpoints.
If you're building with frameworks like LangChain, ElizaOS, CrewAI, or Coinbase AgentKit, you can plug the Spraay MCP server in and your agent instantly gains access to the full suite of crypto payment and DeFi operations.
The MCP server is published on Smithery at @plagtech/spraay-x402-mcp and is listed in the Coinbase x402 ecosystem directory.
Quick Integration Example**
Point your MCP-compatible client at the server:
https://spraay-x402-mcp-production.up.railway.app/mcp
Your agent can then call tools like:
- spraay_batch_payment — Send tokens to multiple recipients
- spraay_swap_quote — Get a DeFi swap quote
- spraay_create_escrow — Set up a trustless escrow
- spraay_send_xmtp — Message another agent via XMTP
- spraay_pin_ipfs — Pin data to IPFS
- spraay_rpc_call — Make raw RPC calls across 7 chains
No wallet setup required on the agent side. Spraay handles execution.
Why This Matters for the Agent Economy
The emerging agent-to-agent economy needs payment rails that are as programmable as the agents themselves. A few things that become possible with Spraay:
Autonomous treasury management. A DAO agent can batch-pay contributors, manage escrow for bounties, and generate tax reports — all through a single MCP integration.
Agent service marketplaces. Agent A can pay Agent B for a service (data analysis, content generation, code review) using x402 micropayments routed through Spraay, with escrow for dispute resolution.
DeFi automation. A portfolio management agent can monitor prices via Spraay's oracle endpoints, execute swaps when conditions are met, and bridge assets across chains — without any human intervention.
Payroll and invoicing on autopilot. A business operations agent can run recurring payroll in crypto, generate invoices, and track settlements, all while maintaining an audit trail for compliance.
Pricing That Makes Sense for Machines
Spraay uses a micropayment model that aligns with how agents work — small, frequent, pay-as-you-go transactions:
- Data reads and RPC calls: $0.001 – $0.005
- Oracle price feeds: $0.002 – $0.01
- AI inference: $0.03 – $0.05
- Payments, swaps, escrow: $0.05 – $0.25
- Free endpoints: Health check, supported chains, token lists, gateway status, documentation
No monthly subscriptions. No rate limit tiers to negotiate. An agent pays exactly for what it uses.
Get Started
Gateway: gateway.spraay.app
MCP Server: GitHub
Smithery: @plagtech/spraay-x402-mcp
Protocol: spraay.app
Twitter: @Spraay_app
If you're building AI agents that need to interact with blockchains — whether it's sending payments, executing DeFi operations, or communicating across protocols — Spraay gives you a single integration point that works across 11 chains with 60 tools out of the box.
The x402 standard is still early. The MCP ecosystem is still early. That means the agents and builders who integrate now will be the ones shaping how autonomous crypto payments actually work.
Top comments (0)