[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F6KBQ79WT34050KZTN38P8":3,"skill-same:01M6F6KBQ79WT34050KZTN38P8":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":6,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6F6KBQ79WT34050KZTN38P8","alchemy-cost-tuning",null,"Optimize Alchemy API costs through CU budgeting, caching, and plan selection.\nUse when analyzing Alchemy billing, reducing Compute Unit consumption,\nor choosing the right plan for your dApp traffic.\nTrigger: \"alchemy cost\", \"alchemy pricing\", \"alchemy CU budget\",\n\"alchemy billing optimization\", \"alchemy free tier limits\".","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Falchemy-cost-tuning\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"cost","alchemy cost tuning","alchemy","tuning","selection","web3","billing","unit","io","free","caching","optimize","api","code","budgeting","edit","write","read","plan","Bash","2026-11-10 10:12:30",false,"---\nname: alchemy-cost-tuning\ndescription: |\n  Optimize Alchemy API costs through CU budgeting, caching, and plan selection.\n  Use when analyzing Alchemy billing, reducing Compute Unit consumption,\n  or choosing the right plan for your dApp traffic.\n  Trigger: \"alchemy cost\", \"alchemy pricing\", \"alchemy CU budget\",\n  \"alchemy billing optimization\", \"alchemy free tier limits\".\nallowed-tools: Read, Write, Edit, Bash(npm:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, blockchain, web3, alchemy, cost-optimization]\ncompatible-with: claude-code\n---\n\n# Alchemy Cost Tuning\n\n## Overview\n\nAlchemy 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.\n\n## Plan Comparison\n\n| Plan | CU\u002Fsec | Monthly CU | Price | Best For |\n|------|--------|------------|-------|----------|\n| Free | 330 | 300M | $0 | Dev\u002Fprototyping |\n| Growth | 660 | 1.2B | $49\u002Fmo | Small dApps |\n| Scale | Custom | Custom | Custom | High-traffic apps |\n\n## CU Cost Reference (Top Methods)\n\n| Method | CU | Optimization |\n|--------|-----|-------------|\n| `eth_blockNumber` | 10 | Cache 12s (1 block) |\n| `eth_getBalance` | 19 | Cache 30s |\n| `eth_call` | 26 | Cache based on use case |\n| `getTokenBalances` | 50 | Cache 60s; batch addresses |\n| `getNftsForOwner` | 50 | Cache 5 min |\n| `getTokenMetadata` | 50 | Cache 24h (rarely changes) |\n| `getAssetTransfers` | 150 | Cache aggressively; paginate |\n| `getNftMetadataBatch` | 50 | Use batch over individual calls |\n\n## Instructions\n\n### Step 1: CU Usage Monitor\n\n```typescript\n\u002F\u002F src\u002Fcost\u002Fcu-monitor.ts\nconst CU_COSTS: Record\u003Cstring, number> = {\n  'eth_blockNumber': 10, 'eth_getBalance': 19, 'eth_call': 26,\n  'getTokenBalances': 50, 'getNftsForOwner': 50, 'getTokenMetadata': 50,\n  'getAssetTransfers': 150, 'getNftMetadataBatch': 50,\n};\n\nclass CuMonitor {\n  private usage: Array\u003C{ method: string; cu: number; timestamp: number }> = [];\n\n  record(method: string): void {\n    this.usage.push({ method, cu: CU_COSTS[method] || 26, timestamp: Date.now() });\n  }\n\n  getHourlyReport(): { totalCu: number; byMethod: Record\u003Cstring, number> } {\n    const cutoff = Date.now() - 3600000;\n    const recent = this.usage.filter(u => u.timestamp > cutoff);\n    const byMethod: Record\u003Cstring, number> = {};\n    let totalCu = 0;\n\n    for (const u of recent) {\n      byMethod[u.method] = (byMethod[u.method] || 0) + u.cu;\n      totalCu += u.cu;\n    }\n\n    return { totalCu, byMethod };\n  }\n\n  getMonthlyProjection(): { projectedMonthly: number; planRecommendation: string } {\n    const hourly = this.getHourlyReport();\n    const projectedMonthly = hourly.totalCu * 24 * 30;\n\n    let recommendation = 'Free';\n    if (projectedMonthly > 300_000_000) recommendation = 'Growth';\n    if (projectedMonthly > 1_200_000_000) recommendation = 'Scale';\n\n    return { projectedMonthly, planRecommendation: recommendation };\n  }\n}\n\nexport { CuMonitor };\n```\n\n### Step 2: Cost-Optimized Client Wrapper\n\n```typescript\n\u002F\u002F src\u002Fcost\u002Foptimized-client.ts\nimport { Alchemy, Network } from 'alchemy-sdk';\n\nconst cache = new Map\u003Cstring, { data: any; expiry: number }>();\n\n\u002F\u002F Cache token metadata aggressively (rarely changes)\nasync function getTokenMetadataCached(alchemy: Alchemy, contract: string) {\n  const key = `metadata:${contract}`;\n  const cached = cache.get(key);\n  if (cached && cached.expiry > Date.now()) return cached.data;\n\n  const data = await alchemy.core.getTokenMetadata(contract);\n  cache.set(key, { data, expiry: Date.now() + 86400000 }); \u002F\u002F 24h cache\n  return data;\n}\n\n\u002F\u002F Use batch instead of individual NFT metadata calls\n\u002F\u002F 1 batch call (50 CU) vs 100 individual calls (5000 CU)\nasync function getNftMetadataOptimized(\n  alchemy: Alchemy,\n  tokens: Array\u003C{ contractAddress: string; tokenId: string }>\n) {\n  const BATCH_SIZE = 100;\n  const results = [];\n  for (let i = 0; i \u003C tokens.length; i += BATCH_SIZE) {\n    const batch = tokens.slice(i, i + BATCH_SIZE);\n    const batchResults = await alchemy.nft.getNftMetadataBatch(batch);\n    results.push(...batchResults);\n  }\n  return results;\n}\n```\n\n### Step 3: Free Tier Optimization Checklist\n\n```typescript\n\u002F\u002F For staying within Free tier (330 CU\u002Fsec, 300M CU\u002Fmonth):\n\u002F\u002F 1. Cache eth_blockNumber (saves 10 CU per redundant call)\n\u002F\u002F 2. Cache token metadata (saves 50 CU per redundant call)\n\u002F\u002F 3. Use getNftMetadataBatch instead of getNftMetadata (100x savings)\n\u002F\u002F 4. Avoid getAssetTransfers loops (150 CU each — cache results)\n\u002F\u002F 5. Use WebSockets instead of polling (one connection vs repeated calls)\n\u002F\u002F 6. Rate-limit user-facing endpoints to prevent CU bursts\n```\n\n## Output\n\n- CU usage monitor with hourly reports and plan projections\n- Cost-optimized client with aggressive caching\n- Batch operations reducing CU consumption by 100x\n- Free tier optimization checklist\n\n## Resources\n\n- [Alchemy Pricing](https:\u002F\u002Fwww.alchemy.com\u002Fpricing)\n- [Alchemy Compute Units](https:\u002F\u002Fwww.alchemy.com\u002Fdocs\u002Freference\u002Fcompute-unit-costs)\n\n## Next Steps\n\nFor architecture design, see `alchemy-reference-architecture`.\n\n","# Alchemy Cost Tuning\n\n## Overview\n\nAlchemy 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.\n\n## Plan Comparison\n\n| Plan | CU\u002Fsec | Monthly CU | Price | Best For |\n|------|--------|------------|-------|----------|\n| Free | 330 | 300M | $0 | Dev\u002Fprototyping |\n| Growth | 660 | 1.2B | $49\u002Fmo | Small dApps |\n| Scale | Custom | Custom | Custom | High-traffic apps |\n\n## CU Cost Reference (Top Methods)\n\n| Method | CU | Optimization |\n|--------|-----|-------------|\n| `eth_blockNumber` | 10 | Cache 12s (1 block) |\n| `eth_getBalance` | 19 | Cache 30s |\n| `eth_call` | 26 | Cache based on use case |\n| `getTokenBalances` | 50 | Cache 60s; batch addresses |\n| `getNftsForOwner` | 50 | Cache 5 min |\n| `getTokenMetadata` | 50 | Cache 24h (rarely changes) |\n| `getAssetTransfers` | 150 | Cache aggressively; paginate |\n| `getNftMetadataBatch` | 50 | Use batch over individual calls |\n\n## Instructions\n\n### Step 1: CU Usage Monitor\n\n```typescript\n\u002F\u002F src\u002Fcost\u002Fcu-monitor.ts\nconst CU_COSTS: Record\u003Cstring, number> = {\n  'eth_blockNumber': 10, 'eth_getBalance': 19, 'eth_call': 26,\n  'getTokenBalances': 50, 'getNftsForOwner': 50, 'getTokenMetadata': 50,\n  'getAssetTransfers': 150, 'getNftMetadataBatch': 50,\n};\n\nclass CuMonitor {\n  private usage: Array\u003C{ method: string; cu: number; timestamp: number }> = [];\n\n  record(method: string): void {\n    this.usage.push({ method, cu: CU_COSTS[method] || 26, timestamp: Date.now() });\n  }\n\n  getHourlyReport(): { totalCu: number; byMethod: Record\u003Cstring, number> } {\n    const cutoff = Date.now() - 3600000;\n    const recent = this.usage.filter(u => u.timestamp > cutoff);\n    const byMethod: Record\u003Cstring, number> = {};\n    let totalCu = 0;\n\n    for (const u of recent) {\n      byMethod[u.method] = (byMethod[u.method] || 0) + u.cu;\n      totalCu += u.cu;\n    }\n\n    return { totalCu, byMethod };\n  }\n\n  getMonthlyProjection(): { projectedMonthly: number; planRecommendation: string } {\n    const hourly = this.getHourlyReport();\n    const projectedMonthly = hourly.totalCu * 24 * 30;\n\n    let recommendation = 'Free';\n    if (projectedMonthly > 300_000_000) recommendation = 'Growth';\n    if (projectedMonthly > 1_200_000_000) recommendation = 'Scale';\n\n    return { projectedMonthly, planRecommendation: recommendation };\n  }\n}\n\nexport { CuMonitor };\n```\n\n### Step 2: Cost-Optimized Client Wrapper\n\n```typescript\n\u002F\u002F src\u002Fcost\u002Foptimized-client.ts\nimport { Alchemy, Network } from 'alchemy-sdk';\n\nconst cache = new Map\u003Cstring, { data: any; expiry: number }>();\n\n\u002F\u002F Cache token metadata aggressively (rarely changes)\nasync function getTokenMetadataCached(alchemy: Alchemy, contract: string) {\n  const key = `metadata:${contract}`;\n  const cached = cache.get(key);\n  if (cached && cached.expiry > Date.now()) return cached.data;\n\n  const data = await alchemy.core.getTokenMetadata(contract);\n  cache.set(key, { data, expiry: Date.now() + 86400000 }); \u002F\u002F 24h cache\n  return data;\n}\n\n\u002F\u002F Use batch instead of individual NFT metadata calls\n\u002F\u002F 1 batch call (50 CU) vs 100 individual calls (5000 CU)\nasync function getNftMetadataOptimized(\n  alchemy: Alchemy,\n  tokens: Array\u003C{ contractAddress: string; tokenId: string }>\n) {\n  const BATCH_SIZE = 100;\n  const results = [];\n  for (let i = 0; i \u003C tokens.length; i += BATCH_SIZE) {\n    const batch = tokens.slice(i, i + BATCH_SIZE);\n    const batchResults = await alchemy.nft.getNftMetadataBatch(batch);\n    results.push(...batchResults);\n  }\n  return results;\n}\n```\n\n### Step 3: Free Tier Optimization Checklist\n\n```typescript\n\u002F\u002F For staying within Free tier (330 CU\u002Fsec, 300M CU\u002Fmonth):\n\u002F\u002F 1. Cache eth_blockNumber (saves 10 CU per redundant call)\n\u002F\u002F 2. Cache token metadata (saves 50 CU per redundant call)\n\u002F\u002F 3. Use getNftMetadataBatch instead of getNftMetadata (100x savings)\n\u002F\u002F 4. Avoid getAssetTransfers loops (150 CU each — cache results)\n\u002F\u002F 5. Use WebSockets instead of polling (one connection vs repeated calls)\n\u002F\u002F 6. Rate-limit user-facing endpoints to prevent CU bursts\n```\n\n## Output\n\n- CU usage monitor with hourly reports and plan projections\n- Cost-optimized client with aggressive caching\n- Batch operations reducing CU consumption by 100x\n- Free tier optimization checklist\n\n## Resources\n\n- [Alchemy Pricing](https:\u002F\u002Fwww.alchemy.com\u002Fpricing)\n- [Alchemy Compute Units](https:\u002F\u002Fwww.alchemy.com\u002Fdocs\u002Freference\u002Fcompute-unit-costs)\n\n## Next Steps\n\nFor architecture design, see `alchemy-reference-architecture`.\n\n",{"name":5,"tags":44,"author":48,"license":15,"version":49,"description":50,"allowed-tools":51,"compatible-with":52},[45,46,24,21,47],"saas","blockchain","cost-optimization","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Optimize Alchemy API costs through CU budgeting, caching, and plan selection.\nUse when analyzing Alchemy billing, reducing Compute Unit consumption,\nor choosing the right plan for your dApp traffic.\nTrigger: \"alchemy cost\", \"alchemy pricing\", \"alchemy CU budget\",\n\"alchemy billing optimization\", \"alchemy free tier limits\".\n","Read, Write, Edit, Bash(npm:*)","claude-code","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Falchemy-cost-tuning",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill alchemy-cost-tuning",{"tool":68,"command":69},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill alchemy-cost-tuning",{"tool":71,"command":72},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill alchemy-cost-tuning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Falchemy-cost-tuning\u002FSKILL.md",true,[],[77,86,95,104,110,116],{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[83,84,85],"model","model hierarchy","model hierarchy skill",{"skillNo":87,"name":88,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[92,93,94],"MCP","zoom","zoom mcp",{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[101,102,103,93],"sdk","zoom apps sdk","apps",{"skillNo":105,"name":106,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[106],{"skillNo":111,"name":112,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[112],{"skillNo":117,"name":118,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[118]]