Skip to content

Commit

Permalink
polygon infura
Browse files Browse the repository at this point in the history
  • Loading branch information
jiguantong committed Mar 27, 2024
1 parent d85ea36 commit 1f4186c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ponder.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ORMPRelayerAbi as ORMPRelayerAbiV1 } from "./abis/v1/ORMPRelayerAbi";
// const INFURA_API_KEY = process.env.INFURA_API_KEY;
const INFURA_API_KEY = null;
const MAX_REQUESTS_PER_SECOND = 1;
const POLYGON_INFURA_API_KEY = process.env.INFURA_API_KEY;

const v1Networks = {
// testnets
Expand Down Expand Up @@ -117,8 +118,8 @@ export default createConfig({
polygon: {
chainId: 137,
transport: http(
INFURA_API_KEY
? `https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}`
POLYGON_INFURA_API_KEY
? `https://polygon-mainnet.infura.io/v3/${POLYGON_INFURA_API_KEY}`
: "https://polygon-bor-rpc.publicnode.com"
),
maxRequestsPerSecond: MAX_REQUESTS_PER_SECOND,
Expand Down

0 comments on commit 1f4186c

Please sign in to comment.