quicknode-sdk-patterns
Production-ready QuickNode SDK and ethers.js patterns for blockchain applications. Use when building production dApps, implementing retry logic, or establishing patterns. Trigger with phrases like "quicknode patterns", "ethers best practices", "web3 patterns". '
npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill quicknode-sdk-patterns --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# QuickNode SDK Patterns ## Overview Production-ready patterns for blockchain development with QuickNode: provider singletons, retry logic, batch RPC calls, and multi-chain support. ## Prerequisites - Completed `quicknode-install-auth` - ethers.js or @quicknode/sdk installed ## Instructions ### Step 1: Provider Singleton ```typescript import { ethers } from 'ethers'; let _provider: ethers.JsonRpcProvider | null = null; export function getProvider(): ethers.JsonRpcProvider { if (!_provider) { _provider = new ethers.JsonRpcProvider(process.env.QUICKNODE_ENDPOINT, undefined, { staticNetwork: true, // Skip chainId lookup on every call batchMaxCount: 10, // Enable batch RPC }); } return _provider; } ``` ### Step 2: Retry Wrapper with Backoff ```typescript async function withRetry<T>(fn: () => Promise<T>, maxRetries = 3): Promise<T> { for (let attempt = 0; attempt <= maxRetries; attempt++) { try { return await fn(); } catch (err: any) { const isRetryable = err.code === 'SERVER_ERROR' || err.code === 'TIMEOUT' || err.status === 429; if (!isRetryable || attempt === maxRetries) throw err; const delay = Math.min(1000 * Math.pow(2, attempt), 10000); await new Promise(r => setTimeout(r, delay)
- Overview
- Prerequisites
- Instructions
- Step 1: Provider Singleton
- Step 2: Retry Wrapper with Backoff
- Step 3: Multi-Chain Client Factory
- Step 4: Batch RPC Calls
- Step 5: Contract Wrapper with Caching
- Output
- Error Handling
- Resources
- Next Steps
What does the quicknode-sdk-patterns skill do?
Production-ready QuickNode SDK and ethers.js patterns for blockchain applications. Use when building production dApps, implementing retry logic, or establishing patterns. Trigger with phrases like "quicknode patterns", "ethers best practices", "web3 patterns". '
How do I install it?
Run `npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill quicknode-sdk-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From jeremylongshore/claude-code-plugins-plus-skills, a repository with 2,630 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.