Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Button, Table, TableBody, TableCell, TableRow, Typography } from '@mui/
import { makeStyles } from '@masknet/theme'
import { EVMWeb3, EVMContract, EVMChainResolver } from '@masknet/web3-providers'
import { NetworkPluginID } from '@masknet/shared-base'
import { ChainId, NetworkType, ProviderType } from '@masknet/web3-shared-evm'
import { ChainId, NetworkType, ProviderType, ProviderURL } from '@masknet/web3-shared-evm'
import { useChainContext, useNetworkContext, useNetworks, useWeb3State } from '@masknet/web3-hooks-base'
import { Telemetry } from '@masknet/web3-telemetry'
import { EventType, EventID, ExceptionType, ExceptionID } from '@masknet/web3-telemetry/types'
Expand Down Expand Up @@ -35,7 +35,7 @@ export function ConnectionContent() {
name: 'Mainnet',
network: 'mainnet',
nativeCurrency: EVMChainResolver.nativeCurrency(ChainId.Mainnet),
rpcUrl: 'https://cloudflare-eth.com',
rpcUrl: ProviderURL.fromOfficial(ChainId.Mainnet),
explorerUrl: {
url: 'https://etherscan.io/',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-shared/evm/src/constants/viem-chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const VIEM_CHAINS: Partial<Record<ChainId, Chain>> = {
// endpoints, or covers a chain viem has no preset for.
const RPC_URL_OVERRIDES: Partial<Record<ChainId, string[]>> = {
// viem 2.45's preset (eth.merkle.io) persistently 429s anonymous traffic
[ChainId.Mainnet]: ['https://ethereum-rpc.publicnode.com', 'https://eth.drpc.org', 'https://cloudflare-eth.com'],
[ChainId.Mainnet]: ['https://ethereum-rpc.publicnode.com', 'https://eth.drpc.org', 'https://rpc.mevblocker.io'],
// viem 2.45's preset (polygon-rpc.com) rejects anonymous traffic (401/403)
[ChainId.Polygon]: ['https://polygon-bor-rpc.publicnode.com', 'https://polygon.drpc.org', 'https://1rpc.io/matic'],
// viem 2.45's preset is a single thirdweb free-tier endpoint
Expand Down
Loading