[RECIPE PROPOSAL] crypto-payroll-agent — batch ETH/ERC-20 payouts on Base with programmatic spend guardrails

Author: plagtechCreated Sep 28, 2026Updated Sep 28, 2026
Labelscontribute

1- What is the intent/purpose of your new recipe? In what way will it help the ADK community?

A single LlmAgent that batch-pays multiple recipients in ETH or an ERC-20 token on Base in one transaction — payroll, airdrops, revenue sharing. What it demonstrates for ADK users:

  • Tool selection across four related community tools (spraay_batch_eth, spraay_batch_token, and their _variable siblings) based on equal-vs-variable amounts and ETH-vs-token.
  • Tool composition: local helpers (lookup_token_info, split_pool_proportionally) feed the on-chain tools so users don't need to know token decimals or per-recipient math.
  • Programmatic guardrails in a before_tool_callback — spend ceilings, recipient cap, address validation — enforced in Python rather than only in the instruction text. Any agent with a side-effecting tool can reuse this callback shape.
  • Plan-then-confirm human-in-the-loop before anything is signed.

The recipe is already implemented and has been through automated and human review in #1917; this proposal is filed per the new process.

2- What language is your recipe is implemented in (e.g. Python, Go, etc)?

Python.

3- Will this be a deployable recipe, either by having a Dockerfile, or by utilizing Vertex AI?

Yes, via Vertex AI. deployment/deploy.py deploys to Vertex AI Agent Engine, reading requirements from pyproject.toml and passing the required env vars.

4- What GCP services or third-party APIs (Salesforce, Jira, etc.) are required?

  • Gemini via Vertex AI (or AI Studio with an API key).
  • A Base network RPC endpoint (default https://mainnet.base.org).
  • The Spraay batch payment contract on Base, accessed through the google-adk-community[spraay]>=0.5.0 tools already merged in google/adk-python-community.
  • A funded sending wallet (private key via env var; the README points to Secret Manager for deployed use).

Disclosure: Spraay is a protocol built by my company, Plagtech. The recipe uses only the public contract and the community tools that were reviewed and merged upstream.

5- Who (individual/team) will own and maintain this?

Plagtech (@plagtech). I'm the author of the community tools this recipe depends on and will maintain the recipe.

6- Please include any additional information you'd like to share.

  • Location: contrib/python/crypto-payroll-agent, with manifest.yaml, tests/test_runnability.py, and a six-case evalset.
  • 35 offline unit tests; uv run validate, ruff, and uv lock all green.
  • Existing PR: #1917.