Send batch crypto payments and payroll using the Spraay x402 gateway. Supports Base, Ethereum, Arbitrum, Polygon, BNB Chain, Avalanche, Unichain, and more. U...
Coding
Spraay ร Bankr
Try itEarn with Bankr, distribute with Spraay ๐ง. Pairs a Bankr agent wallet with Spraay's batch payment gateway โ pay up to 200 recipients in one atomic tx, ~80% gas savings. Airdrop launched tokens, split creator fees, run USDC payroll on Base.
What it does
Earn with Bankr, distribute with Spraay ๐ง. Composition skill that pairs a Bankr agent wallet (trading, token launches, creator fees, treasury) with Spraay's batch payment gateway (pay up to 200 recipients in one atomic transaction, ~80% gas savings). Use when the user wants to: airdrop a token they launched via Bankr, split creator/trading fees across a team, run USDC payroll from a Bankr-managed treasury, or batch-distribute any ERC-20 from a Bankr wallet on Base. Triggers on: "airdrop my token", "split fees", "pay my team from my Bankr wallet", "batch send", "distribute to holders", "spraay from bankr", "mass payout".
The skill document
Spraay ร Bankr โ Earn, Then Distribute
What this skill does: Bankr gives your agent a wallet that trades, launches tokens, and earns fees. Spraay turns that wallet into a distribution engine โ pay up to 200 recipients in a single atomic transaction instead of N separate transfers. This skill composes the two: every recipe ends in a Spraay batch call funded by a Bankr wallet.
Why batch: N individual transfers cost Nร gas and can partially fail. One Spraay batch is atomic (all succeed or all revert) and saves ~80% gas. Primary chains: Base, Ethereum, Solana (15 mainnet chains total).
Prerequisites
- Bankr skill installed โ https://github.com/BankrBot/skills (or the Bankr CLI / Agent API with an API key from bankr.bot/api-keys).
- Spraay gateway access โ
https://gateway.spraay.app. Free endpoints need no payment. Paid endpoints use x402: Bankr wallets handle x402 USDC payments on Base automatically, so no separate signup or API key is needed โ the agent pays per call from its own wallet.
Core Spraay endpoints used by this skill
Free (plan & validate before spending anything):
GET /free/pricesโ endpoint pricingGET /free/chain-statusโ supported chains + healthPOST /free/validate-batchโ validate recipients/amounts before executionPOST /free/estimate-batchโ gas + cost estimate for a batch
Paid (x402, USDC on Base โ Bankr pays automatically):
POST /api/v1/batch/executeโ execute a batch payment (up to 200 recipients)POST /api/v1/escrow/createโ escrowed/conditional payoutsGET /api/v1/tokensโ supported token registryGET /api/v1/balancesโ balance checks
Always call /free/validate-batch and /free/estimate-batch before
/api/v1/batch/execute. Show the user the estimate and get confirmation
before any funds move.
Recipe 1 โ Launch โ Airdrop
User launched (or is launching) a token via Bankr and wants it in holders' or community members' hands.
- Launch or locate the token via Bankr (Clanker deploys to Base by default). Get the token contract address from the Bankr response.
- Collect the recipient list (addresses + amounts). Sources: a CSV the user provides, a holder snapshot, or an allowlist. Never invent addresses.
POST /free/validate-batchwith{ token, recipients: [{address, amount}] }. Fix any rejects before proceeding.POST /free/estimate-batchโ present total cost + gas to the user.- On explicit confirmation:
POST /api/v1/batch/execute. Bankr's wallet pays the x402 fee and funds the batch. One tx, all recipients. - Return the tx hash and a per-recipient summary.
Recipe 2 โ Creator Fee Split
Bankr routes trading fees to the token creator. Teams want those fees split automatically across contributors.
- Via Bankr: check claimable creator fees, claim them to the agent wallet.
- Compute the split from the user's configured shares (e.g. 50/30/20). Confirm the math with the user โ show each recipient's amount.
- Validate โ estimate โ execute the batch (same free-then-paid flow as Recipe 1). USDC or the fee token itself both work.
- For recurring splits, re-run on a schedule the user controls; never auto-execute without a standing, explicit instruction.
Recipe 3 โ Treasury โ Payroll
The agent manages a treasury in its Bankr wallet and pays a roster in USDC.
- Via Bankr: confirm treasury balance covers the pay run (plus fees). If holdings are in another asset, Bankr can swap to USDC first โ confirm the swap with the user before executing it.
- Load the roster (addresses, amounts, optional memo per recipient).
- Validate โ estimate โ pause for user confirmation (payroll is high-stakes; always show the full run before executing).
POST /api/v1/batch/executeโ the whole roster in one atomic tx.- Log the tx hash + per-recipient record for bookkeeping.
For scheduled runs and compliance screening, see the crypto-payroll skill โ
this recipe is the manual/on-demand path.
Safety rails
- Atomic or nothing: a Spraay batch reverts entirely on failure โ no partial payouts. Surface this to users as a feature.
- Validate first, always. The free endpoints exist so that no paid call is ever made on malformed input.
- Explicit confirmation before funds move. Show token, total, recipient count, and estimated cost. Get a clear yes.
- Never fabricate addresses or amounts. Recipient lists come from the user or a verifiable source only.
- Key hygiene: the Bankr API key controls real funds. Never echo it,
log it, or send it anywhere except
api.bankr.bot.
Reference
- Spraay gateway: https://gateway.spraay.app ยท docs: https://docs.spraay.app
- Live dashboard: https://live.spraay.app
- Bankr docs: https://docs.bankr.bot
- Spraay batch contract (Base):
0x1646452F98E36A3c9Cfc3eDD8868221E207B5eEC
Related skills
Batch stablecoin payments โ up to 200 recipients per transaction, ~80% gas savings โ plus escrow, payroll, and robot task payments via the Spraay x402 gateway (190 endpoints, 15 chains). Free endpoints need no account; paid access via $29/mo card subscription or x402 pay-per-call USDC.
Pay Shopify affiliates, creators, and suppliers in USDC โ N recipients, one transaction on Base via the Spraay batch gateway. Free validation and estimates, x402 execution. Use for affiliate payouts, creator payments, mass payments, or sending crypto to a whole CSV of wallets in one tx.
Safe agent-to-agent commerce via Spraay x402 escrow. Create, fund, monitor, release, or cancel on-chain escrows โ pay on verified delivery instead of paying blind. Full escrow lifecycle with confirmation guardrails. Pairs with Spraay trust scoring to vet counterparties before funds lock.
Batch send SOL, USDC, BONK, or any SPL token to up to 1,000 wallets in one request โ plus Jupiter swap quotes, Helius portfolio lookups, and Pyth price feeds โ via Spraay's x402 pay-per-call gateways. Non-custodial: the gateway returns unsigned transactions that YOUR wallet signs, so no private keys
One Spraay gateway URL for batch payments, DeFi quotes, AI inference, and on-chain data.