SKILL.md
AI + Alchemy API Integration Guide
Summary
A self-contained guide for AI agents integrating Alchemy APIs using an API key. This file alone should be enough to ship a basic integration. Use the reference files for depth, edge cases, and advanced workflows.
Before Making Any Request
- Check if
$ALCHEMY_API_KEYis set (e.g.,echo $ALCHEMY_API_KEY). - If not set, do NOT proceed with API-key URLs. Use the
agentic-gatewayskill instead — it requires no API key. - If set, use the Base URLs + Auth table below.
Do This First
- Choose the right product using the Endpoint Selector below.
- Use the Base URLs + Auth table for the correct endpoint and headers.
- Copy a Quickstart example and test against a testnet first.
Base URLs + Auth (Cheat Sheet)
| Product | Base URL | Auth | Notes |
|---|---|---|---|
| Ethereum RPC (HTTPS) | https://eth-mainnet.g.alchemy.com/v2/$ALCHEMY_API_KEY | API key in URL | Standard EVM reads and writes. |
| Ethereum RPC (WSS) | wss://eth-mainnet.g.alchemy.com/v2/$ALCHEMY_API_KEY | API key in URL | Subscriptions and realtime. |
| Base RPC (HTTPS) | https://base-mainnet.g.alchemy.com/v2/$ALCHEMY_API_KEY | API key in URL | EVM L2. |
| Base RPC (WSS) | wss://base-mainnet.g.alchemy.com/v2/$ALCHEMY_API_KEY | API key in URL | Subscriptions and realtime. |
| Arbitrum RPC (HTTPS) | https://arb-mainnet.g.alchemy.com/v2/$ALCHEMY_API_KEY |
