Skip to content
Starknet Start

RPC Providers

You need to configure an RPC provider to allow your dapp to fetch data from Starknet.

Starknet Start providers are factories that, given a chain, return a Starknet.js ProviderInterface object.

Providers

This section provides an alphabetical list of RPC Providers supported by Starknet Start.

Public

Starknet Start ships with a public provider that you can use for quick demos. For any project that makes more than a handful of requests, you should use one of the providers below.

At the moment, this provider uses the free RPC endpoints provided by:

  • dRPC
  • Lava
  • ZAN

JSON-RPC

This is generic RPC provider. Use it to connect to private endpoints or to services not yet supported by Starknet Start. The value returned by the rpc function is passed to the Starknet RpcProvider constructor.

import {  } from "@starknetfoundation/starknet-start-providers";
import {  } from "@starknetfoundation/starknet-start-chains";
 
function (: ) {
  return {
    : `https://${.}.example.org`,
  };
}
 
const  = ({  });

Alchemy

Create an Alchemy API key from the dashboard.

import {  } from "@starknetfoundation/starknet-start-providers";
 
const  = "your-api-key";
const  = ({  });

Blast

Create a Blast API key from the dashboard.

import {  } from "@starknetfoundation/starknet-start-providers";
 
const  = "your-api-key";
const  = ({  });

Infura

Create an Infura API key from the dashboard.

import {  } from "@starknetfoundation/starknet-start-providers";
 
const  = "your-api-key";
const  = ({  });

Lava

Create a Lava API key from the dashboard.

import {  } from "@starknetfoundation/starknet-start-providers";
 
const  = "your-api-key";
const  = ({  });

Cartridge

Cartridge offers a Starknet RPC provider.

import {  } from "@starknetfoundation/starknet-start-providers";
 
const  = ();

Slot

Create a Slot project from the CLI.

import {  } from "@starknetfoundation/starknet-start-providers";
 
const  = "your-project-id";
const  = ({  });