Skip to content

Commit

Permalink
add alchemy provider
Browse files Browse the repository at this point in the history
  • Loading branch information
steftroubadour committed Oct 14, 2023
1 parent dc88d7f commit 95545a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import {
import { CreateClientConfig, configureChains, createClient, WagmiConfig } from "wagmi";
import { Chain, sepolia, foundry, polygon, polygonMumbai } from "wagmi/chains";
import { alchemyProvider } from "wagmi/providers/alchemy";
import { infuraProvider } from "wagmi/providers/infura";
import { publicProvider } from "wagmi/providers/public";
import { jsonRpcProvider } from "@wagmi/core/providers/jsonRpc";

import {
injectedWallet,
rainbowWallet,
Expand All @@ -23,8 +26,9 @@ import {
import App from "../components/App";

const { chains, provider } = configureChains([sepolia, polygonMumbai] as Chain[], [
alchemyProvider({ apiKey: "7HyG965YlOEgB6-wsB0OLy6m-E1hrjRY" }),
publicProvider(),
infuraProvider({ apiKey: process.env.NEXT_PUBLIC_INFURA_API_KEY! }),
//alchemyProvider({ apiKey: process.env.NEXT_PUBLIC_ALCHEMY_ID! }),
//publicProvider(),
]);

/*const { connectors } = getDefaultWallets({
Expand Down

1 comment on commit 95545a0

@vercel
Copy link

@vercel vercel bot commented on 95545a0 Oct 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

yi-king – ./

yi-king-git-main-steftroubadour.vercel.app
yi-king-steftroubadour.vercel.app
yi-king.vercel.app

Please sign in to comment.