You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone, I am pretty new to WalletConnect and it's an amazing project!
Weirdly I am encountering this issue on which is leading to a few errors. By the looks of it everything stems from the rpc get request failing, but I have made sure to set up everything according to the guides from getting started in WalletConnect cloud. I will attach a screenshot of the errors as well as the request response. I am using Sepolia Testnet and I tried changing it to mainnet just to see if it will get fixed but it didn't.
Also I will attach the code I am using to configure the application.
I would appreciate any advice because right now I am super lost.
import React from 'react';
import ReactDOM from 'react-dom/client';
import { Provider } from 'react-redux';
import { BrowserRouter } from 'react-router-dom';
import store from './redux/store';
import App from './App';
import './index.css';
import { createWeb3Modal } from '@web3modal/wagmi/react'
import { defaultWagmiConfig } from '@web3modal/wagmi/react/config'
import { WagmiProvider } from 'wagmi';
import { sepolia } from 'wagmi/chains';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
const queryClient = new QueryClient();
const projectId = 'here I use my actual walletconnect cloud ID'
const metadata = {
name: 'Testing',
description: 'AppKit Example',
url: 'http://localhost:3000', // origin must match your domain & subdomain
icons: ['https://avatars.githubusercontent.com/u/37784886']
}
const chains = [sepolia];
const config = defaultWagmiConfig({
chains,
projectId,
metadata,
})
// Create modal
createWeb3Modal({
wagmiConfig: config,
projectId,
enableAnalytics: true,
enableOnramp: true
})
const root = ReactDOM.createRoot(document.getElementById('app'));
root.render(
<Provider store={store}>
<WagmiProvider config={config}>
<QueryClientProvider client={queryClient}>
<BrowserRouter>
<App />
</BrowserRouter>
</QueryClientProvider>
</WagmiProvider>
</Provider>,
);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone, I am pretty new to WalletConnect and it's an amazing project!
Weirdly I am encountering this issue on which is leading to a few errors. By the looks of it everything stems from the rpc get request failing, but I have made sure to set up everything according to the guides from getting started in WalletConnect cloud. I will attach a screenshot of the errors as well as the request response. I am using Sepolia Testnet and I tried changing it to mainnet just to see if it will get fixed but it didn't.
Also I will attach the code I am using to configure the application.
I would appreciate any advice because right now I am super lost.
Beta Was this translation helpful? Give feedback.
All reactions