Spraay Solana Gateway β€” Batch Payments For Ai Agents On Solana

by plagtech

240 downloads
Not rated
GitHub

Description

# πŸ’§ Spraay Solana Gateway **x402-powered batch payment infrastructure for AI agents on Solana.** Any AI agent can batch send SOL, USDC, BONK, or any SPL token to 1,000+ wallets via the x402 payment protocol. No API keys. No accounts. Pay per request. ## πŸ—οΈ Architecture ``` AI…

About

# πŸ’§ Spraay Solana Gateway **x402-powered batch payment infrastructure for AI agents on Solana.** Any AI agent can batch send SOL, USDC, BONK, or any SPL token to 1,000+ wallets via the x402 payment protocol. No API keys. No accounts. Pay per request. ## πŸ—οΈ Architecture ``` AI Agent (any framework) β”‚ β”œβ”€β”€ HTTP Request │…

Details

Author
plagtech
Downloads
240
Categories
Other, AI

- x402 payment protocol with per‑request billing
- Batch send SOL, USDC, BONK, or any SPL token
- Send to 1,000+ wallets in a single request
- No API keys, no accounts required
- Built‑in MCP server for AI agent frameworks
- Health check and x402 discovery endpoints

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Spraay Solana Gateway β€” Batch Payments For Ai Agents On Solana
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Clone the repository, install dependencies, configure environment variables (treasury wallet and private key), and run npm run dev or npm start. Use the provided HTTP endpoints (e.g., POST /solana/batch-send-sol) with an X-PAYMENT header containing a base64 payment proof. An MCP server is also included for AI agent framework integrationβ€”run node mcp/spraay-solana-mcp.js to expose tools like spraay_solana_batch_send_sol.

spraay_solana_batch_send_sol

Batch send SOL to multiple Solana wallets in one call. Supports up to 1000 recipients. Auto-chunks large batches. Costs $0.01 USDC via x402 protocol.

spraay_solana_batch_send_token

Batch send any SPL token (USDC, BONK, WIF, JUP, etc.) to multiple Solana wallets. Auto-creates token accounts. Costs $0.01 USDC via x402.

spraay_solana_quote

Get a cost estimate for a Spraay batch send on Solana. Returns fees, tx count, and timing. Costs $0.001 USDC via x402.

spraay_solana_status

Check the status of a Solana transaction by its signature. Costs $0.001 USDC via x402.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "spraay solana gateway \u2014 batch payments for ai agents on solana": {
            "spraay-solana": {
                "url": "https://gateway-solana.spraay.app/mcp"
            }
        }
    }
}

McpServers

{
    "spraay-solana": {
        "url": "https://gateway-solana.spraay.app/mcp"
    }
}

πŸ’§ Spraay Solana Gateway

x402-powered batch payment infrastructure for AI agents on Solana.

Any AI agent can batch send SOL, USDC, BONK, or any SPL token to 1,000+ wallets via the x402 payment protocol. No API keys. No accounts. Pay per request.

πŸ—οΈ Architecture

AI Agent (any framework)
    β”‚
    β”œβ”€β”€ HTTP Request
    β”‚
    β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Spraay Solana Gateway                  β”‚
β”‚   gateway-solana.spraay.app              β”‚
β”‚                                          β”‚
β”‚   @x402/express + @x402/svm             β”‚
β”‚   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”‚
β”‚   β”‚ x402 Paymentβ”‚  β”‚ Solana Batch β”‚     β”‚
β”‚   β”‚ Middleware   β”‚  β”‚ Engine       β”‚     β”‚
β”‚   β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜     β”‚
β”‚          β”‚                β”‚              β”‚
β”‚          β–Ό                β–Ό              β”‚
β”‚   USDC payment     Execute batch        β”‚
β”‚   verified via     SOL/SPL transfers    β”‚
β”‚   facilitator                           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    β”‚
    β–Ό
Solana Network

πŸ“‘ Endpoints

| Endpoint | Method | Price | Description |
|----------|--------|-------|-------------|
| /solana/batch-send-sol | POST | $0.01 | Batch send SOL to multiple wallets |
| /solana/batch-send-token | POST | $0.01 | Batch send any SPL token |
| /solana/quote | GET | $0.001 | Get cost estimate |
| /solana/status/:txid | GET | $0.001 | Check transaction status |
| /health | GET | Free | Health check |
| /.well-known/x402 | GET | Free | x402 discovery manifest |

πŸš€ Quick Start

1. Clone & Install

git clone https://github.com/plagtech/spraay-solana-gateway.git
cd spraay-solana-gateway
npm install

2. Configure

```bash
cp .env.example .env

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.