From ce7864a4b5727853d674cfac9cc42cfb98ec2501 Mon Sep 17 00:00:00 2001 From: Maximilian Hubert <64627729+gap-editor@users.noreply.github.com> Date: Fri, 28 Feb 2025 22:49:40 +0100 Subject: [PATCH] Update constants.ts --- src/global/constants.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/global/constants.ts b/src/global/constants.ts index 7a2a2a7af..5c4057ff2 100644 --- a/src/global/constants.ts +++ b/src/global/constants.ts @@ -1,5 +1,6 @@ import { ETransactionVersion } from '../types/api'; import { type LogLevel } from './logger.type'; +import { RpcProvider } from 'starknet'; export { IS_BROWSER } from '../utils/encode'; @@ -71,10 +72,12 @@ export const RPC_NODES = { SN_MAIN: [ `https://starknet-mainnet.public.blastapi.io/rpc/${RPC_DEFAULT_VERSION}`, `https://free-rpc.nethermind.io/mainnet-juno/${RPC_DEFAULT_VERSION}`, + `https://starknet.lava.build/rpc/${RPC_DEFAULT_VERSION}`, ], SN_SEPOLIA: [ `https://starknet-sepolia.public.blastapi.io/rpc/${RPC_DEFAULT_VERSION}`, `https://free-rpc.nethermind.io/sepolia-juno/${RPC_DEFAULT_VERSION}`, + `https://starknet.lava.build/rpc/${RPC_DEFAULT_VERSION}`, ], } as const; @@ -106,3 +109,6 @@ export const SYSTEM_MESSAGES = { legacyTxWarningMessage: 'You are using a deprecated transaction version (V0,V1,V2)!\nUpdate to the latest V3 transactions!', }; + +// Provider will automatically select one of the available nodes, including Lava +const provider = new RpcProvider();