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
I cannot view Ganache account balance when connecting to my local Ganache network. When I get balance using ethers it is working correctly.
When I click switch network it does switch between Ganache and Ethereum, and also switches in Metamask, but the balance is not updated in the appKit wallet.
import { defineChain } from '@reown/appkit/networks';
import { defineChain } from '@reown/appkit/networks';
Link to minimal reproducible example
Ganache balance not showing in appKit wallet.
Summary
I cannot view Ganache account balance when connecting to my local Ganache network. When I get balance using ethers it is working correctly.
When I click switch network it does switch between Ganache and Ethereum, and also switches in Metamask, but the balance is not updated in the appKit wallet.
import { defineChain } from '@reown/appkit/networks';
import { defineChain } from '@reown/appkit/networks';
const ganacheNetwork = defineChain({
id: 5777,
caipNetworkId: 'eip155:5777',
chainNamespace: 'eip155',
name: 'Ganache',
nativeCurrency: {
decimals: 18,
name: 'Ether',
symbol: 'ETH',
},
rpcUrls: {
default: {
http: ['http://127.0.0.1:8545'],
webSocket: ['ws://127.0.0.1:8545'],
},
},
blockExplorers: {
default: {
name: 'Ganache Explorer',
url: '',
},
},
contracts: {
},
});
export { ganacheNetwork };
List of related npm package versions
Node.js Version
v18.19.1
Package Manager
10.2.4
The text was updated successfully, but these errors were encountered: