alchemy-rate-limits

Featured

Implement Alchemy Compute Unit (CU) rate limiting and request throttling. Use when handling 429 errors, optimizing CU usage, or managing concurrent blockchain queries within plan limits. Trigger: "alchemy rate limit", "alchemy 429", "alchemy compute units", "alchemy throttling", "alchemy CU budget".

AI & Automation 2,266 stars 315 forks Updated today 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 Rate Limits ## Overview Alchemy uses Compute Units (CU) to measure API usage. Different methods cost different CU amounts. Rate limits are per-second, and exceeding them returns 429 errors. ## Compute Unit Costs | Method | CU Cost | Category | |--------|---------|----------| | `eth_blockNumber` | 10 | Core | | `eth_getBalance` | 19 | Core | | `eth_call` | 26 | Core | | `eth_getTransactionReceipt` | 15 | Core | | `getTokenBalances` | 50 | Enhanced | | `getTokenMetadata` | 50 | Enhanced | | `getAssetTransfers` | 150 | Enhanced | | `getNftsForOwner` | 50 | NFT | | `getNftMetadataBatch` | 50 | NFT | | `getContractMetadata` | 50 | NFT | ## Plan Limits | Plan | CU/sec | Monthly CU | Price | |------|--------|------------|-------| | Free | 330 | 300M | $0 | | Growth | 660 | 1.2B | $49/mo | | Scale | Custom | Custom | Custom | ## Instructions ### Step 1: CU-Aware Request Throttler ```typescript // src/alchemy/throttler.ts import Bottleneck from 'bottleneck'; const CU_COSTS: Record<string, number> = { 'eth_blockNumber': 10, 'eth_getBalance': 19, 'eth_call': 26, 'getTokenBalances': 50, 'getAssetTransfers': 150, 'getNftsForOwner': 50, }; // Free tier: 330 CU/sec = ~16 getBalance calls/sec const limiter = new Bottleneck({ reservoir: 330, // CU budget per interval reservoirRefreshInterval: 1000, // Refresh every second reservoirRefreshAmount: 330, // Reset to max CU/sec maxConcurrent: 10, // Max parallel r...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

alchemy-cost-tuning

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".

2,266 Updated today
jeremylongshore
AI & Automation Featured

alchemy-common-errors

Diagnose and fix common Alchemy SDK and Web3 API errors. Use when encountering rate limits, RPC failures, invalid parameters, or blockchain query errors with the Alchemy SDK. Trigger: "alchemy error", "alchemy not working", "alchemy 429", "alchemy debug", "fix alchemy issue".

2,266 Updated today
jeremylongshore
AI & Automation Featured

alchemy-performance-tuning

Optimize Alchemy SDK performance with caching, batching, and multi-chain parallelism. Use when reducing latency for blockchain queries, optimizing CU consumption, or scaling dApps for high request volumes. Trigger: "alchemy performance", "alchemy slow", "alchemy optimization", "alchemy caching", "alchemy batch requests".

2,266 Updated today
jeremylongshore
AI & Automation Featured

algolia-rate-limits

Handle Algolia rate limits and throttling: per-key limits, indexing queue limits, 429 responses, and backoff strategies. Trigger: "algolia rate limit", "algolia throttling", "algolia 429", "algolia retry", "algolia backoff", "algolia too many requests".

2,266 Updated today
jeremylongshore
AI & Automation Featured

apollo-rate-limits

Implement Apollo.io rate limiting and backoff. Use when handling rate limits, implementing retry logic, or optimizing API request throughput. Trigger with phrases like "apollo rate limit", "apollo 429", "apollo throttling", "apollo backoff", "apollo request limits".

2,266 Updated today
jeremylongshore