Skip to content

Feature: Add stablecoin batch payment tools for onchain agent workflows #403

Open

Description

@plagtech

Is your feature request related to a problem? Please describe.

Summary

With the GENIUS Act passed and the Clarity Act approaching finalization, stablecoin payments are becoming a regulated, mainstream payment rail. AI agents built with the Stripe Agent Toolkit can handle fiat payments today — but have no way to batch-send USDC or interact with onchain payment infrastructure.

I'd like to propose adding stablecoin batch payment tools to the toolkit, powered by Spraay — a multi-chain batch payment protocol live on 15 chains with 88 x402-native endpoints.

What this would add

A set of tools that enable Stripe-powered agents to:

  • Batch send USDC/ERC-20 tokens to up to 200 recipients in a single transaction
  • Batch send native ETH with equal or variable amounts per recipient
  • Estimate gas costs before executing batch payments
  • Query token balances and prices for onchain assets
    These would complement Stripe's existing fiat tools — agents could use Stripe for card payments and Spraay for stablecoin disbursements within the same workflow.

Use cases

  • Crypto payroll: An agent managing payroll could use Stripe for W-2 direct deposits and Spraay for contractor payments in USDC
  • Airdrop / rewards distribution: Batch-send tokens to hundreds of wallets in one tx
  • DAO treasury operations: Agents managing treasury can batch-pay contributors onchain
  • Hybrid fiat + crypto commerce: Accept fiat via Stripe, settle with vendors in stablecoins via Spraay

Prior art

Spraay was recently merged into Google's ADK community tools as the first community-contributed tool in the repo. The implementation includes:

  • decimal.Decimal precision for token calculations
  • Chain ID verification before transactions
  • Gas buffer on all estimate_gas calls
  • Comprehensive error handling and docstrings
  • Full test suite that runs without web3 installed
    The protocol is live on Base mainnet with a 0.3% protocol fee. Contract: 0x1646452F98E36A3c9Cfc3eDD8868221E207B5eEC

Implementation approach

I'm happy to build this as either:

  1. A new provider in tools/python/ and tools/typescript/ alongside existing Stripe tools
  2. An example/skill in the skills/ directory showing how to combine Stripe fiat + Spraay crypto in one agent
  3. Whatever structure the maintainers prefer
    The Python implementation is already production-tested from the Google ADK integration. TypeScript SDK is also available.

Links

  • Spraay Gateway — 88 live endpoints
  • Spraay Docs — full API catalog
  • MCP Server — 60+ tools on Smithery
  • Google ADK PR #95 — merged
  • GitHub
    Happy to discuss the best approach for integration. The stablecoin regulatory landscape is moving fast and I think there's a real opportunity to be early on this.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions