How to Migrate from Infura to GetBlock — Step-by-Step

Infura was the original Ethereum RPC provider, but by 2026, the landscape had changed. If you're looking for more chain support, better pricing, or geographic endpoint control, migrating from Infura to GetBlock is straightforward. This migration only takes 5–10 minutes.

Why Teams Switch from Infura To GetBlock

ReasonInfuraGetBlock
Chain coverage~15 networks130+ blockchains
Free tier archive dataPaid plans onlyAll plans including Free
Region selectionNo explicit choiceFrankfurt, New York, Singapore
Dedicated nodesCustom pricingFrom $1,000/mo, transparent
Solana supportLimitedFull: RPC + gRPC + StreamFirst + LandFirst
Non-EVM chainsMinimal (ETH-focused)Bitcoin, Litecoin, Dogecoin, TRON, TON, etc.
Pricing clarityCredit-based (varies by method)CU-based with clear tiers

Infura is excellent for Ethereum-first projects, but if your stack is growing beyond Ethereum, GetBlock's 100+ chain coverage eliminates the need for multiple providers.

How to Switch From Infura To GetBlock

  1. Create Your GetBlock Endpoint

    1. Sign up at account.getblock.io
    2. Go to Shared Nodes → Create New Endpoint
    3. Select your blockchain, network, and API interface
    4. Choose your region (closest to your servers)
    5. Copy the endpoint URL

    Infura format:

    bashhttps://mainnet.infura.io/v3/YOUR_PROJECT_ID

    GetBlock format:

    bashhttps://shared.eu-central-1.getblock.io/YOUR_ACCESS_TOKEN/
  2. Update Your Code

    javascript// Before (Infura)
    const provider = new JsonRpcProvider(
      "https://mainnet.infura.io/v3/YOUR_PROJECT_ID"
    );
    
    // After (GetBlock)
    const provider = new JsonRpcProvider(
      "https://shared.eu-central-1.getblock.io/YOUR_GETBLOCK_TOKEN/"
    );
    typescript// Before
    const client = createPublicClient({
      chain: mainnet,
      transport: http(
      "https://mainnet.infura.io/v3/YOUR_PROJECT_ID"
    );
    });
    
    // After
    const client = createPublicClient({
      chain: mainnet,
      transport: http("https://shared.eu-central-1.getblock.io/YOUR_GETBLOCK_TOKEN/"),
    });
    python# Before
    w3 = Web3(Web3.HTTPProvider("https://mainnet.infura.io/v3/YOUR_PROJECT_ID"))
    
    # After
    w3 = Web3(Web3.HTTPProvider("https://shared.eu-central-1.getblock.io/YOUR_GETBLOCK_TOKEN/"))
    javascript// hardhat.config.js — Before
    networks: {
      mainnet: {
        url: "https://mainnet.infura.io/v3/YOUR_PROJECT_ID"
      }
    }
    
    // hardhat.config.js — After
    networks: {
      mainnet: {
        url: "https://shared.eu-central-1.getblock.io/YOUR_GETBLOCK_TOKEN/"
      }
    }
    toml# foundry.toml — Before
    [rpc_endpoints]
    mainnet = "https://mainnet.infura.io/v3/YOUR_PROJECT_ID"
    
    # foundry.toml — After
    [rpc_endpoints]
    mainnet = "https://shared.eu-central-1.getblock.io/YOUR_GETBLOCK_TOKEN/"
    javascript// Before
    const wsProvider = new WebSocketProvider("wss://mainnet.infura.io/v3/YOUR_PROJECT_ID");
    
    // After
    const wsProvider = new WebSocketProvider("wss://shared.eu-central-1.getblock.io/YOUR_GETBLOCK_TOKEN/");
  3. Best practice: use environment variables to switch providers without code changes.

    bash# .env
    RPC_URL=https://shared.eu-central-1.getblock.io/YOUR_GETBLOCK_TOKEN/
    javascriptconst provider = new JsonRpcProvider(process.env.RPC_URL);
  4. Verify Everything Works

    Run a quick check:

    bashcurl -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.

Multi-Chain Migration

If you're using Infura for multiple chains, you'll need a separate GetBlock endpoint for each chain. Create them all in one dashboard session:

bash# .env — Before (Infura)
ETH_RPC=https://mainnet.infura.io/v3/PROJECT_ID
POLYGON_RPC=https://polygon-mainnet.infura.io/v3/PROJECT_ID

# .env — After (GetBlock)
ETH_RPC=https://shared.eu-central-1.getblock.io/ETH_TOKEN/
POLYGON_RPC=https://shared.eu-central-1.getblock.io/POLYGON_TOKEN/
# Plus 90+ more chains you can now access:
SOLANA_RPC=https://shared.eu-central-1.getblock.io/SOL_TOKEN/
BSC_RPC=https://shared.eu-central-1.getblock.io/BSC_TOKEN/
TON_RPC=https://shared.eu-central-1.getblock.io/TON_TOKEN/

Feature Mapping: Infura → GetBlock

Infura FeatureGetBlock Equivalent
JSON-RPC✅ Full JSON-RPC support
WebSocket✅ WebSocket support
Archive data✅ All plans (Infura: paid only)
IPFS❌ Not available (use Pinata, nft.storage)
Gas API✅ eth_gasPrice, eth_feeHistory methods
Ethereum Beacon API✅ Available
MetaMask defaultCan be configured as custom RPC
~15 chains✅ 130+ chains
Dedicated Nodes✅ From $1,000/mo

What You Gain

  • 85+ additional blockchains — Bitcoin, Solana, BSC, TON, TRON, and more
  • Archive data at no extra cost — even on the free plan
  • Regional endpoints — control where your requests are processed
  • Dedicated Nodes with clear pricing — unlimited requests from $1,000/mo
  • Advanced Solana and BSC tooling — HFT infrastructure, private mempool

What You'll Need Alternatives For

  • Infura IPFS → Pinata, nft.storage, or Fleek
  • MetaMask default integration → Add GetBlock as custom RPC in MetaMask settings

<a href="https://account.getblock.io" class="button primary">Ready to switch? and have your new endpoints running in under 5 minutes.</a>
<br>