| name | alchemy-upgrade-migration |
| description | Migrate from alchemy-sdk v2 to v3 and handle breaking changes.
Use when upgrading Alchemy SDK versions, migrating from deprecated
alchemy-web3, or adapting to new API patterns.
Trigger: "alchemy upgrade", "alchemy migration", "alchemy-sdk v3",
"migrate alchemy-web3", "alchemy breaking changes".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Grep |
| version | 1.5.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","blockchain","web3","alchemy","migration"] |
| compatibility | Designed for Claude Code |
Alchemy Upgrade & Migration
Overview
Migration guide for Alchemy SDK upgrades and deprecated package transitions. The alchemy-web3 package is deprecated — migrate to alchemy-sdk.
Migration Paths
| From | To | Complexity |
|---|
alchemy-web3 | alchemy-sdk | High (different API surface) |
alchemy-sdk v2 → v3 | alchemy-sdk v3 | Medium (some breaking changes) |
| Direct JSON-RPC | alchemy-sdk | Low (SDK wraps same methods) |
Instructions
Step 1: Migrate from alchemy-web3 to alchemy-sdk
import { Alchemy, Network } from 'alchemy-sdk';
const alchemy = new Alchemy({
apiKey: process.env.ALCHEMY_API_KEY,
network: Network.ETH_MAINNET,
});
const balance = await alchemy.core.getBalance(address);
const nfts = alchemy..(owner);
alchemy..({ : , : [] }, {
.(, block);
});