Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Cannot View Ganache Account Balance #3733

Open
blackqubit-com opened this issue Jan 24, 2025 · 2 comments
Open

[bug] Cannot View Ganache Account Balance #3733

blackqubit-com opened this issue Jan 24, 2025 · 2 comments

Comments

@blackqubit-com
Copy link

blackqubit-com commented Jan 24, 2025

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.

Image

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

"@reown/appkit": "^1.6.4",
"@reown/appkit-adapter-ethers": "^1.6.4",
"dotenv": "^16.4.7",
"ethers": "^6.13.5",

Node.js Version

v18.19.1

Package Manager

10.2.4

@blackqubit-com blackqubit-com added bug Something isn't working needs review labels Jan 24, 2025
Copy link

linear bot commented Jan 24, 2025

@reown-com reown-com deleted a comment from Baines123 Jan 24, 2025
@Sam-Newman
Copy link

Hey @blackqubit-com

Thanks for raising this - I am afraid we do not support local ganache balances as this is derived from our blockchain API - pulling onchain data.

I will close this as it's not a bug but expected, I can raise it as a feature request.

@Sam-Newman Sam-Newman closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2025
@Sam-Newman Sam-Newman removed bug Something isn't working needs review labels Jan 24, 2025
@Sam-Newman Sam-Newman reopened this Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants