Skip to content

Commit

Permalink
chore: add load balancer
Browse files Browse the repository at this point in the history
  • Loading branch information
royvardhan committed Jul 1, 2024
1 parent cf8a847 commit 1ab756e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ponder.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createConfig } from "@ponder/core";
import { createConfig, loadBalance } from "@ponder/core";
import { http } from "viem";

import { DexAggregatorAbi } from "./abis/DexAggregatorAbi";
Expand All @@ -17,7 +17,11 @@ export default createConfig({
networks: {
avalanche: {
chainId: 43114,
transport: http(rpcMap.avalanche),
transport: loadBalance([
http("https://api.avax.network/ext/bc/C/rpc"),
http("https://rpc.ankr.com/avalanche"),
http("https://avalanche-c-chain-rpc.publicnode.com"),
]),
},
telos: {
chainId: 40,
Expand Down

0 comments on commit 1ab756e

Please sign in to comment.