Skip to content

Commit

Permalink
Add spot for RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
gskril committed Jun 9, 2023
1 parent 93d8ee3 commit 728cf41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
SORT_API_KEY = ''
SORT_API_KEY=""
NEXT_PUBLIC_ALCHEMY_API_KEY=""
5 changes: 4 additions & 1 deletion src/providers.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import { getDefaultWallets } from '@rainbow-me/rainbowkit'
import { configureChains, createConfig } from 'wagmi'
import { goerli, mainnet } from 'wagmi/chains'
import { alchemyProvider } from 'wagmi/providers/alchemy'
import { publicProvider } from 'wagmi/providers/public'

const ALCHEMY = process.env.NEXT_PUBLIC_ALCHEMY_API_KEY || ''
export const chains = [mainnet, goerli]

const { publicClient, webSocketPublicClient } = configureChains(chains, [
alchemyProvider({ apiKey: ALCHEMY }),
publicProvider(),
])

const { connectors } = getDefaultWallets({
appName: 'ethback.xyz',
appName: 'Web3 Starter',
chains,
})

Expand Down

1 comment on commit 728cf41

@vercel
Copy link

@vercel vercel bot commented on 728cf41 Jun 9, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.