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.
Installation
Section titled “Installation”pip install strands-agents-spraayfrom strands import Agentfrom strands_spraay import spraay_batch_payment
agent = Agent(tools=[spraay_batch_payment])
# Send equal ETH to multiple recipientsagent("Send 0.01 ETH to 0xAAA..., 0xBBB..., and 0xCCC... using batch payment")Key Features
Section titled “Key Features”- 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
Configuration
Section titled “Configuration”SPRAAY_PRIVATE_KEY=your_wallet_private_key # RequiredPRIVATE_KEY=your_wallet_private_key # AlternativeBASE_RPC_URL=https://mainnet.base.org # Optional⚠️ Security: Never commit your private key to source control. Use environment variables or a secrets manager.