blockrun_wallet
Manage crypto payments and control agent spending: check USDC balances, deposit funds, switch chains, set budgets, and delegate limits to child agents.
Instructions
Call this tool to manage the BlockRun payment wallet and control agent spending budgets.
Call this FIRST if any other blockrun_* tool returns a payment/balance error. Call this to check your current USDC balance before expensive operations. Call this to set spending limits before spawning child agents.
If this server is running on a BlockRun API key (BLOCKRUN_API_KEY), there is no wallet and no chain: status reports the account, and setup/qr/deposit/chain do not apply. Credit is managed at https://user.blockrun.ai/dashboard/credits.
In wallet mode the server holds TWO wallets — one on Solana, one on Base — but pays on ONE active chain at a time. status shows both addresses/balances and which is active. New installs default to Solana; an existing Base wallet keeps Base until you switch.
To switch chain (no env vars, no file editing, no restart):
action:"chain" chain:"solana" → provisions + activates the Solana wallet
action:"setup" → address + funding QR for the active chain Switch back with action:"chain" chain:"base". Almost everything now settles on either chain; only blockrun_defi (DefiLlama) and blockrun_modal are Base-only, plus native Anthropic (claude-*) in blockrun_chat.
Actions:
status (default): Both wallet addresses + USDC balances, active chain, session spending
deposit: Buy USDC with a card — mints a one-time Coinbase Onramp link and opens it in the browser (Base only; funds settle into your own wallet). Paid tools auto-open this on an out-of-funds failure; call it directly to fund up front.
setup: Get funding instructions + QR code for the ACTIVE chain (call this when balance is 0)
qr: Open QR code (active chain) in system viewer
chain + chain:"base"|"solana": Switch the active payment chain (omit chain: to just see the current one)
Budget controls:
budget + budget_action:"set" + budget_amount:1.00 → Set global spend cap
budget + budget_action:"check" (the default) → Report the cap, spend and remaining
budget + budget_action:"clear" → Remove a cap set here If the operator started the server with BLOCKRUN_BUDGET_LIMIT, that value is a ceiling this tool can only lower: set above it is clamped, clear restores it, and agent_limit is clamped to it. Only a restart with a new env raises it.
Multi-agent orchestration:
delegate + agent_id:"research" + agent_limit:2.00 → Allocate $2 to a child agent
revoke + agent_id:"research" → Remove a child agent's cap (its spend is kept; re-delegating the id carries it)
report → See per-agent spending breakdown
Usage pattern for multi-agent systems:
blockrun_wallet action:"delegate" agent_id:"worker-1" agent_limit:1.00
Pass agent_id:"worker-1" to all blockrun_chat/search/etc calls for that agent
blockrun_wallet action:"report" to audit spending
Do NOT call this for actual AI queries — use blockrun_chat for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Target chain for action='chain'. Omit to view the current active chain. | |
| action | No | What to do | status |
| agent_id | No | Agent identifier for delegate/revoke/report actions | |
| agent_limit | No | Budget limit in USD for this agent (required for delegate action) | |
| budget_action | No | Budget action (for action='budget'). Defaults to 'check', which only reports. | |
| budget_amount | No | Budget limit in USD (for budget_action='set') |