Skip to content
Starknet Start

StarknetConfig

The React Context provider for Starknet.

Usage

"use client";
import React from "react";
 
import {  } from "@starknetfoundation/starknet-start-chains";
import {  } from "@starknetfoundation/starknet-start-providers";
import {  } from "@starknetfoundation/starknet-start-react";
 
function () {
  return (
    < ={[]} ={()}>
      {/* your app here */}
    </>
  );
}

Arguments

chains

  • Type: Chain[]

List of supported chains.

provider

  • Type: ChainProviderFactory

The JSON-RPC provider you want to use. See the RPC providers page for more information.

recommendedWallets

List of wallets to recommend to users who don't have a wallet installed. See the wallets page for more information.

extraWallets

Additional wallets to show alongside the wallets discovered in the user's browser.

paymasterProvider

  • Type: ChainPaymasterFactory | undefined

Paymaster provider to use for gasless transactions. Defaults to the AVNU paymaster.

explorer

  • Type: ExplorerFactory

Explorer factory to use. See the explorers page for more information.

queryClient

  • Type: QueryClient

React Query client to use.

defaultChainId

  • Type: bigint | undefined

Default chain to use when no wallet is connected. If the provided id is not in chains, Starknet Start falls back to the first configured chain.