Skip to content

strands-spraay

strands-agents-spraay is a batch payment tool for Strands Agents, powered by the Spraay Protocol. Send ETH or ERC-20 tokens to up to 200 recipients in a single transaction on Base with ~80% gas savings.

Terminal window
pip install strands-agents-spraay
from strands import Agent
from strands_spraay import spraay_batch_payment
agent = Agent(tools=[spraay_batch_payment])
# Send equal ETH to multiple recipients
agent("Send 0.01 ETH to 0xAAA..., 0xBBB..., and 0xCCC... using batch payment")
  • Batch ETH: Send equal or variable ETH amounts to multiple recipients
  • Batch ERC-20: Send equal or variable token amounts with automatic approval handling
  • Up to 200 recipients: Per transaction with ~80% gas savings
  • Chain ID verification: Prevents sending to wrong network
  • Gas buffer: 10% buffer on estimates to prevent out-of-gas errors
Terminal window
SPRAAY_PRIVATE_KEY=your_wallet_private_key # Required
PRIVATE_KEY=your_wallet_private_key # Alternative
BASE_RPC_URL=https://mainnet.base.org # Optional

⚠️ Security: Never commit your private key to source control. Use environment variables or a secrets manager.