feat: Add Spraay batch payment agent sample#32
Open
plagtech wants to merge 1 commit intomicrosoft:mainfrom
Open
feat: Add Spraay batch payment agent sample#32plagtech wants to merge 1 commit intomicrosoft:mainfrom
plagtech wants to merge 1 commit intomicrosoft:mainfrom
Conversation
Author
|
@microsoft-github-policy-service agree |
Author
Update — March 2026Spraay x402 Gateway has expanded significantly since this PR was opened: 62 paid endpoints across 8 categories (up from 6):
63-tool MCP server on Smithery: @plagtech/spraay-x402-mcp All endpoints are x402-native — agents pay USDC per request on Base. No API keys, no accounts. GPU/Compute and Search/RAG make this sample even more relevant — agents can now generate images, search the web, and run inference autonomously, all paid per-call with USDC. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Spraay Batch Payment Agent Sample
Description
This PR adds a sample agent that demonstrates how to use Microsoft Agent Framework's function tools to interact with the Spraay batch payment protocol on Base. The sample shows a practical, real-world use case: enabling an AI agent to batch-send ETH and ERC-20 tokens to up to 200 recipients in a single transaction.
What This Demonstrates
Annotatedtype hints and PydanticFielddescriptions for rich tool schemasFiles Added
Tools Included
batch_send_ethbatch_send_tokenbatch_send_eth_variablebatch_send_token_variableAbout Spraay
Spraay is a multi-chain batch payment protocol deployed on Base and 6+ other chains. Key stats:
Why This Is Useful
DeFi payments are a compelling use case for AI agents. This sample shows developers how to: