| name | gentech-blockrun |
| description | GenTech Labs' integration patterns for BlockRun MCP from Hermes Agent. Covers daily usage patterns, cost-optimized workflows, multi-tool pipelines, and reliable error handling for BlockRun's full toolset. |
| triggers | ["blockrun","blockrun chat","blockrun search","blockrun price","blockrun defi","blockrun video","blockrun music","blockrun speech","blockrun wallet","blockrun rpc","blockrun surf","blockrun markets","blockrun exa","x402 payment","pay per call","micropayment","BlockRun MCP","cost optimization blockrun","multi-tool pipeline","agent wallet blockrun","gen tech blockrun"] |
GenTech Labs — BlockRun Integration Patterns
Real-world patterns from running BlockRun MCP in production across 32 cron jobs and daily agent operations.
Getting Started
Initial Wallet Setup
blockrun_wallet(action="setup")
Budget Controls
blockrun_wallet(action="budget", budget_action="set", budget_amount=10.0)
blockrun_wallet(action="delegate", agent_id="researcher", agent_limit=2.0)
blockrun_wallet(action="delegate", agent_id="data-poller", agent_limit=0.50)
Check Balance
blockrun_wallet(action="status")
Daily Usage Patterns
Pattern 1: Regular Price Checks (FREE)
Crypto, FX and commodity quotes cost nothing — blockrun_price is free for those
categories (only stocks/usstock is paid, at $0.0020). Use them liberally, and do
not pay $0.0085 to blockrun_surf for a quote you can get for $0.
blockrun_price(action="price", category="crypto", symbol="BTC-USD")
blockrun_price(action="price", category="crypto", symbol="ETH-USD")
blockrun_price(action="price", category="crypto", symbol="SOL-USD")
blockrun_price(action="list", category="crypto", query="sol")
Cost: $0 — crypto/FX/commodity price and list calls are both free. Only category:"stocks" is paid ($0.0020).
Pattern 2: Token Research Pipeline (~$0.018)
Start with the free tools, then pay only for what they cannot answer.
blockrun_dex({ query: "SOL" })
blockrun_price(action="price", category="crypto", symbol="SOL-USD")
blockrun_defi({ path: "protocols" })
blockrun_defi({ path: "protocol/jupiter" })
blockrun_defi({ path: "chains" })
Total: ~$0.018 per full token analysis (2 free calls + 3 x $0.0060 DefiLlama). Replace CoinGecko/CMC tabs entirely.
Pattern 3: Research + Synthesis (~$0.011 + chat)
Use Exa (neural search) + BlockRun Chat (second opinion) for thorough research.
blockrun_exa({ path: "search", body: {
query: "latest AI agent infrastructure developments 2026",
numResults: 10,
category: "research paper"
}})
blockrun_chat({ mode: "glm", message: "Summarize the key trends..." })
Cost-conscious tip: Use mode: "free" on blockrun_chat for zero-cost generation (NVIDIA models).
Pattern 4: Agent-to-Agent Billing
Use blockrun_wallet + agent_id for multi-agent cost tracking.
blockrun_wallet(action="delegate", agent_id="research", agent_limit=2.0)
blockrun_wallet(action="delegate", agent_id="content", agent_limit=1.0)
blockrun_surf({ path: "market/price", params: { symbol: "BTC" }, agent_id: "research" })
blockrun_search({ body: { query: "latest news", sources: ["web"] }, agent_id: "research" })
blockrun_wallet(action="report")
Multi-Tool Pipelines
DeFi Intelligence Pipeline
blockrun_defi({ path: "protocol/aave-v3" })
blockrun_defi({ path: "yields" })
blockrun_price(action="price", category="crypto", symbol="AAVE-USD")
blockrun_dex({ token: "0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9" })
Portfolio Health Check
blockrun_rpc({ network: "base", method: "eth_getBalance", params: ["0xabc...", "latest"] })
blockrun_price(action="price", category="crypto", symbol="ETH-USD")
blockrun_price(action="price", category="crypto", symbol="USDC-USD")
blockrun_markets({ path: "polymarket/positions" })
Content Generation Pipeline
blockrun_exa({ path: "search", body: { query: "agentic commerce trends", numResults: 5 }})
blockrun_image({ prompt: "AI agent futuristic dashboard with neon grids" })
blockrun_speech({ input: "Your narration text here...", voice: "sarah" })
blockrun_music({ prompt: "upbeat synthwave background" })
blockrun_video({ prompt: "animated data visualization", duration_seconds: 8 })
Cost Optimization Strategies
Tier Mapping
| Call Type | Price | Frequency |
|---|
blockrun_price (list) | FREE | daily discovery |
blockrun_dex | FREE | unlimited |
blockrun_rpc | $0.0030 | on-chain reads (batch: $0.002/element + $0.001) |
blockrun_wallet (status/report) | FREE | before every session |
blockrun_price (quote) | FREE | crypto/FX/commodity; stocks $0.0020 |
blockrun_defi | $0.0060 | protocol/chain analysis ($0.0020 for prices/*) |
blockrun_chat (free mode) | $0 | NVIDIA-backed chat |
blockrun_chat (glm mode) | per-token | Zhipu GLM-5 coding — billed on tokens used, not a flat rate |
blockrun_exa (search) | $0.0110 | deep research (contents: $0.002/URL + $0.001) |
blockrun_surf | $0.0085 | crypto data, wallets/candles/search, on-chain SQL (flat) |
blockrun_speech | $0.0535/1k chars | TTS |
blockrun_image | $0.01675–0.106 | image generation |
blockrun_music | $0.1585 | music tracks |
blockrun_video | $0.421+ | short video clips (per-second × duration) |
blockrun_markets | $0.0085 | prediction market data, wallet analytics (flat) |
blockrun_modal | $0.0020–$192 | remote sandbox execution — timeout drives the price, see the modal skill |
blockrun_phone | $0.0110–$5.001 | lookups; number buy/renew is $5.001 |
Daily Budget Formula (GenTech's Setup)
Daily budget:
Free tools: unlimited (price quotes, dex, list, wallet status)
Crypto data: ~$0.10 (surf + markets, flat $0.0085 each; defi $0.0060)
AI calls: ~$0.10 (chat free mode, occasional glm)
Media: ~$0.10 (occasional image/speech)
Total: ~$0.30/day
Set a $5/week budget cap and never hit it with typical usage.
Error Handling Patterns
402 Payment Required
blockrun_wallet(action="status")
Insufficient Balance
balance = blockrun_wallet(action="status")
if float(balance["usdcBalance"]) < 0.50:
blockrun_wallet(action="deposit")
Rate Limiting / Timeouts
Caching Strategy
BlockRun calls are cheap but not free. Cache results that don't change minute-to-minute:
- Token prices: No need to cache aggressively — crypto/FX/commodity quotes via
blockrun_price are FREE.
- Protocol TVL: Cache for 1 hour (updates hourly)
- Wallet labels: Cache for 24 hours (rarely change)
- On-chain SQL results: Cache for 1 hour (most queries return the same answer)
GenTech's approach: Don't bother caching prices (crypto/FX/commodity quotes are FREE). Cache TVL and wallet labels aggressively.
Switching Chains
blockrun_wallet(action="chain", chain="solana")
blockrun_wallet(action="chain", chain="base")
blockrun_wallet(action="chain")
Note: Base is required for music, speech, video, and realface. Solana works for price, wallet, dex, rpc, surf, etc.
Reference
Contributed by GenTech Labs, from real production usage of BlockRun MCP.