alchemy-cost-tuning

Featured

Optimize Alchemy API costs through CU budgeting, caching, and plan selection. Use when analyzing Alchemy billing, reducing Compute Unit consumption, or choosing the right plan for your dApp traffic. Trigger: "alchemy cost", "alchemy pricing", "alchemy CU budget", "alchemy billing optimization", "alchemy free tier limits".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Alchemy Cost Tuning ## Overview Alchemy pricing is based on Compute Units (CU). Different API methods have different CU costs. Optimize by caching, batching, choosing cheaper methods, and right-sizing your plan. ## Plan Comparison | Plan | CU/sec | Monthly CU | Price | Best For | |------|--------|------------|-------|----------| | Free | 330 | 300M | $0 | Dev/prototyping | | Growth | 660 | 1.2B | $49/mo | Small dApps | | Scale | Custom | Custom | Custom | High-traffic apps | ## CU Cost Reference (Top Methods) | Method | CU | Optimization | |--------|-----|-------------| | `eth_blockNumber` | 10 | Cache 12s (1 block) | | `eth_getBalance` | 19 | Cache 30s | | `eth_call` | 26 | Cache based on use case | | `getTokenBalances` | 50 | Cache 60s; batch addresses | | `getNftsForOwner` | 50 | Cache 5 min | | `getTokenMetadata` | 50 | Cache 24h (rarely changes) | | `getAssetTransfers` | 150 | Cache aggressively; paginate | | `getNftMetadataBatch` | 50 | Use batch over individual calls | ## Instructions ### Step 1: CU Usage Monitor ```typescript // src/cost/cu-monitor.ts const CU_COSTS: Record<string, number> = { 'eth_blockNumber': 10, 'eth_getBalance': 19, 'eth_call': 26, 'getTokenBalances': 50, 'getNftsForOwner': 50, 'getTokenMetadata': 50, 'getAssetTransfers': 150, 'getNftMetadataBatch': 50, }; class CuMonitor { private usage: Array<{ method: string; cu: number; timestamp: number }> = []; record(method: string): void { this.usage.push({ method, cu: CU_COSTS[...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category