Skip to content

Commit

Permalink
feat: use Ankr RPC in wagmi
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc committed Nov 14, 2024
1 parent 16a5d19 commit 5312e27
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions data/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,26 @@ import type { Chain } from "@wagmi/core/chains";

const portalRuntimeConfig = usePortalRuntimeConfig();

// We don't use Ankr token here, since the expectation is that public quota is enough to cover all the requests.
export const l1Networks = {
mainnet: {
...mainnet,
name: "Ethereum",
network: "mainnet",
rpcUrls: {
default: {
http: ["https://rpc.ankr.com/eth/"],
},
},
},
sepolia: {
...sepolia,
name: "Ethereum Sepolia Testnet",
rpcUrls: {
default: {
http: ["https://rpc.ankr.com/eth_sepolia/"],
},
},
},
} as const;
export type L1Network = Chain;
Expand Down

0 comments on commit 5312e27

Please sign in to comment.