For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Switching RPC providers sounds harder than it is. In most cases, it's literally changing one URL in your codebase. This guide walks you through migrating from Alchemy to GetBlock, including differences in endpoint formats, SDK configuration changes, and feature mappings. The migration only takes 5–15 minutes for most projects.

Why Teams Switch from Alchemy to GetBlock

Reason
Details

More chains

GetBlock supports 130+ blockchains vs Alchemy's ~70

Lower cost at scale

GetBlock Pro ($499/mo, 600M CU) vs comparable Alchemy tiers

Geographic control

Choose your endpoint region (Frankfurt, New York, Singapore)

Archive on all plans

Including the free tier — Alchemy requires paid plans

Solana HFT tools

StreamFirst, LandFirst, TradeFirst — no Alchemy equivalent

BSC private mempool

BloXroute BDN integration — not available on Alchemy

Simpler pricing

Predictable CU tiers vs Alchemy's compute unit complexity

How to Switch From Alchemy To GetBlock

1

Create Your GetBlock Endpoint

  1. Go to Shared NodesCreate New Endpoint

  2. Select your blockchain, network, and API interface

  3. Choose your region (closest to your servers)

  4. Copy the endpoint URL

Alchemy endpoint format:

https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY

GetBlock endpoint format:

https://go.getblock.io/YOUR_ACCESS_TOKEN/
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/"
);
3

Best practice: use environment variables to switch providers without code changes.

# .env
RPC_URL=https://go.getblock.io/YOUR_GETBLOCK_TOKEN/
const provider = new JsonRpcProvider(process.env.RPC_URL);
4

Verify Everything Works

Run a quick check:

curl -X POST $RPC_URL \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

If you get a valid response with a block number, you're good.

Feature Mapping: Alchemy → GetBlock

Alchemy Feature
GetBlock Equivalent
Notes

RPC Endpoints

✅ Shared Nodes

Same JSON-RPC methods

WebSocket

✅ WebSocket support

Same subscription methods

Archive data

✅ Archive mode

Available on all plans (Alchemy requires paid)

Debug/Trace

✅ Trace & Debug

Available on Starter+

NFT API

❌ Not available

Use third-party NFT APIs

Token API

❌ Not available

Use standard RPC methods or third-party

Notify (webhooks)

✅ Blockchain Tracker

GetBlock's webhook solution

Enhanced APIs

Standard RPC

GetBlock focuses on RPC infrastructure

Alchemy SDK

Standard libraries

Use ethers.js, web3.js directly

Dashboard analytics

✅ Statistics

Method tracking, CU monitoring

Multi-chain

✅ 130+ chains

More chains than Alchemy (~70)

Regional selection

✅ 3 regions

Alchemy doesn't offer explicit region selection

Dedicated Nodes

✅ Dedicated Nodes

From $1,000/mo, unlimited requests

Team accounts

✅ Team accounts

Up to 30 users, role-based access

What You'll Gain

  • More blockchain coverage (100+ vs ~70)

  • Archive data on the free plan

  • Control over endpoint geography

  • More affordable dedicated nodes

  • Solana HFT tools (StreamFirst, LandFirst, TradeFirst)

  • BSC private mempool access

What You'll Need Alternatives For

  • Alchemy NFT API → Use Simplehash, Reservoir, or direct RPC calls

  • Alchemy Token API → Use standard eth_call for ERC-20 balances, or Covalent/Moralis

  • Alchemy Notify → GetBlock Tracker for webhook-style notifications

  • Alchemy SDK → Standard ethers.js/web3.js (works identically with GetBlock)

Run Both Providers in Parallel (Optional)

For mission-critical applications, consider running both providers during migration:

Once you've verified GetBlock is stable for your workload (typically 1–2 weeks), remove the fallback.

Common Questions

Will my existing code break?

No. GetBlock supports all standard Ethereum JSON-RPC methods. If it works with Alchemy's RPC, it works with GetBlock.

Do I need to change anything besides the URL?

For standard RPC usage, no. If you're using Alchemy-specific SDKs or APIs (NFT API, Token API, Notify), you'll need alternatives for those specific features.

Can I migrate multiple chains at once?

Yes. Create endpoints for each chain in your GetBlock dashboard and update the URLs in your code. Each chain gets its own access token.

How do I migrate a Dedicated Node from Alchemy?

Contact GetBlock sales to configure a Dedicated Node matching your current Alchemy setup. GetBlock Dedicated Nodes start at $1,000/month with unlimited requests.

Ready to switch? and have your new endpoints running in under 5 minutes.

Last updated

Was this helpful?