From alchemy-pack
Installs Alchemy SDK and configures API key for Web3 blockchain access across Ethereum, Polygon, Arbitrum, Optimism, Base, and Solana.
How this skill is triggered — by the user, by Claude, or both
Slash command
/alchemy-pack:alchemy-install-authThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Install the `alchemy-sdk` npm package and configure API authentication. Alchemy provides blockchain infrastructure (RPC nodes, Enhanced APIs, NFT APIs, webhooks) across Ethereum, Polygon, Arbitrum, Optimism, Base, and Solana.
Install the alchemy-sdk npm package and configure API authentication. Alchemy provides blockchain infrastructure (RPC nodes, Enhanced APIs, NFT APIs, webhooks) across Ethereum, Polygon, Arbitrum, Optimism, Base, and Solana.
# JavaScript/TypeScript (official SDK)
npm install alchemy-sdk
# Python (community SDK)
pip install alchemy-sdk
# Set environment variable
export ALCHEMY_API_KEY="your-api-key-here"
# Or create .env file
cat > .env << 'EOF'
ALCHEMY_API_KEY=your-api-key-here
ALCHEMY_NETWORK=ETH_MAINNET
EOF
echo ".env" >> .gitignore
// src/alchemy-client.ts
import { Alchemy, Network } from 'alchemy-sdk';
const alchemy = new Alchemy({
apiKey: process.env.ALCHEMY_API_KEY,
network: Network.ETH_MAINNET,
});
// Verify connection
async function verifyConnection() {
const blockNumber = await alchemy.core.getBlockNumber();
console.log(`Connected! Latest block: ${blockNumber}`);
return blockNumber;
}
verifyConnection().catch(console.error);
// src/config/chains.ts
import { Alchemy, Network } from 'alchemy-sdk';
// Create clients for multiple chains
const chains = {
ethereum: new Alchemy({ apiKey: process.env.ALCHEMY_API_KEY, network: Network.ETH_MAINNET }),
polygon: new Alchemy({ apiKey: process.env.ALCHEMY_API_KEY, network: Network.MATIC_MAINNET }),
arbitrum: new Alchemy({ apiKey: process.env.ALCHEMY_API_KEY, network: Network.ARB_MAINNET }),
optimism: new Alchemy({ apiKey: process.env.ALCHEMY_API_KEY, network: Network.OPT_MAINNET }),
base: new Alchemy({ apiKey: process.env.ALCHEMY_API_KEY, network: Network.BASE_MAINNET }),
};
export default chains;
| Chain | Network Enum | Mainnet | Testnet |
|---|---|---|---|
| Ethereum | ETH_MAINNET | Yes | Sepolia |
| Polygon | MATIC_MAINNET | Yes | Amoy |
| Arbitrum | ARB_MAINNET | Yes | Sepolia |
| Optimism | OPT_MAINNET | Yes | Sepolia |
| Base | BASE_MAINNET | Yes | Sepolia |
| Solana | SOL_MAINNET | Yes | Devnet |
alchemy-sdk installed in node_modules| Error | Cause | Solution |
|---|---|---|
Must provide apiKey | Missing env var | Set ALCHEMY_API_KEY in environment |
401 Unauthorized | Invalid API key | Verify key in Alchemy Dashboard |
429 Rate Limit | Free tier exceeded | Upgrade plan or reduce request rate |
ECONNREFUSED | Network blocked | Ensure HTTPS to *.g.alchemy.com allowed |
Proceed to alchemy-hello-world for your first blockchain query.
npx claudepluginhub jeremylongshore/claude-code-plugins-plus-skills --plugin alchemy-packImplements Alchemy SDK patterns for multi-chain client factories, response caching, and singleton clients in Web3 TypeScript applications.
Wires Alchemy APIs (EVM, Solana, Sui, NFT, Token, Webhooks) into application code using an API key. For server/backend/dApp integration, not live agent queries.
Integrates Alchemy blockchain APIs (EVM RPC, Solana RPC, NFT, Prices, Webhooks) via API key authentication. Requires $ALCHEMY_API_KEY or falls back to the alchemy-agentic-gateway skill.