fix: replace base rpc urls with public rpcs (#7259)
* fix: replace base rpc urls with public rpcs * fix: designation of safe vs fallback * fix: remove duplicate
This commit is contained in:
parent
24d62d9594
commit
08e0fb7f4b
1
.env
1
.env
@ -4,7 +4,6 @@ REACT_APP_AMPLITUDE_PROXY_URL="https://api.uniswap.org/v1/amplitude-proxy"
|
||||
REACT_APP_AWS_API_REGION="us-east-2"
|
||||
REACT_APP_AWS_API_ENDPOINT="https://beta.api.uniswap.org/v1/graphql"
|
||||
REACT_APP_BNB_RPC_URL="https://rough-sleek-hill.bsc.quiknode.pro/413cc98cbc776cda8fdf1d0f47003583ff73d9bf"
|
||||
REACT_APP_BASE_MAINNET_RPC_URL="https://cool-white-diagram.base-mainnet.quiknode.pro/d8f036f35dfab2c68f32dfa822cd971e7a25a117/"
|
||||
REACT_APP_INFURA_KEY="4bf032f2d38a4ed6bb975b80d6340847"
|
||||
REACT_APP_MOONPAY_API="https://api.moonpay.com"
|
||||
REACT_APP_MOONPAY_LINK="https://us-central1-uniswap-mobile.cloudfunctions.net/signMoonpayLinkV2?platform=web&env=staging"
|
||||
|
@ -8,10 +8,6 @@ const QUICKNODE_BNB_RPC_URL = process.env.REACT_APP_BNB_RPC_URL
|
||||
if (typeof QUICKNODE_BNB_RPC_URL === 'undefined') {
|
||||
throw new Error(`REACT_APP_BNB_RPC_URL must be a defined environment variable`)
|
||||
}
|
||||
const QUICKNODE_BASE_RPC_URL = process.env.REACT_APP_BASE_MAINNET_RPC_URL
|
||||
if (typeof QUICKNODE_BASE_RPC_URL === 'undefined') {
|
||||
throw new Error(`REACT_APP_BASE_MAINNET_RPC_URL must be a defined environment variable`)
|
||||
}
|
||||
|
||||
/**
|
||||
* Fallback JSON-RPC endpoints.
|
||||
@ -111,11 +107,13 @@ export const FALLBACK_URLS = {
|
||||
],
|
||||
[ChainId.BASE]: [
|
||||
// "Safe" URLs
|
||||
'https://mainnet.base.org',
|
||||
// "Unsafe" URLs
|
||||
QUICKNODE_BASE_RPC_URL,
|
||||
'https://base-mainnet.blastapi.io/b5a802d8-151d-4443-90a7-699108dc4e01',
|
||||
'https://svc.blockdaemon.com/base/mainnet/native?apiKey=zpka_1334e7c450464d06b6e33a972a7a4e57_75320f43',
|
||||
'https://mainnet.base.org/',
|
||||
'https://developer-access-mainnet.base.org/',
|
||||
'https://base.gateway.tenderly.co',
|
||||
'https://base.publicnode.com',
|
||||
// "Fallback" URLs
|
||||
'https://1rpc.io/base',
|
||||
'https://base.meowrpc.com',
|
||||
],
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user