How to Migrate from Alchemy to GetBlock — Step-by-Step
Switch from Alchemy to GetBlock in minutes. This migration guide covers endpoint URLs, SDK configuration, feature mapping, and why teams are switching.
Why Teams Switch from Alchemy to GetBlock
Reason
Details
How to Switch From Alchemy To GetBlock
1
2
Update Your Code
// Before (Alchemy)
const provider = new JsonRpcProvider(
"https://eth-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_KEY"
);
// After (GetBlock)
const provider = new JsonRpcProvider(
"https://go.getblock.io/YOUR_GETBLOCK_TOKEN/"
);// Before
const client = createPublicClient({
chain: mainnet,
transport: http("https://eth-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_KEY"),
});
// After
const client = createPublicClient({
chain: mainnet,
transport: http("https://go.getblock.io/YOUR_GETBLOCK_TOKEN/"),
});# Before
w3 = Web3(Web3.HTTPProvider("https://eth-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_KEY"))
# After
w3 = Web3(Web3.HTTPProvider("https://go.getblock.io/YOUR_GETBLOCK_TOKEN/"))3
Feature Mapping: Alchemy → GetBlock
Alchemy Feature
GetBlock Equivalent
Notes
What You'll Gain
What You'll Need Alternatives For
Run Both Providers in Parallel (Optional)
Common Questions
Last updated
Was this helpful?