Skip to content

Commit

Permalink
⚡️ Remove rate limitation + default client
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Jul 6, 2024
1 parent 7958c50 commit e86567b
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions ponder.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createConfig, loadBalance, mergeAbis, rateLimit } from "@ponder/core";
import { createConfig, loadBalance, mergeAbis } from "@ponder/core";
import { http, parseAbiItem } from "viem";
import {
interactionCampaignAbi,
Expand Down Expand Up @@ -29,19 +29,12 @@ export default createConfig({
arbitrumSepolia: {
chainId: 421614,
transport: loadBalance([
rateLimit(
http(
`https://arbitrum-sepolia.blockpi.network/v1/rpc/${process.env.BLOCKPI_API_KEY_ARB_SEPOLIA}`
),
{ requestsPerSecond: 20, browser: false }
http(
`https://arbitrum-sepolia.blockpi.network/v1/rpc/${process.env.BLOCKPI_API_KEY_ARB_SEPOLIA}`
),
rateLimit(
http(
`https://arb-sepolia.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`
),
{ requestsPerSecond: 20, browser: false }
http(
`https://arb-sepolia.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`
),
rateLimit(http(), { requestsPerSecond: 5, browser: false }),
]),
...pollingConfig,
},
Expand Down

0 comments on commit e86567b

Please sign in to comment.