Unable to get Token Balance in Web3Modal After AppKit Migration #4022
Replies: 2 comments 1 reply
-
I managed to resolve the issue by directly reading the contract and building a custom UI for balance inquiries. However, I’m still curious—has the feature that allows querying tokens as the default balance been removed? |
Beta Was this translation helpful? Give feedback.
-
https://etherscan.io/token/images/aergov2_32.pngconst chains: any = process.env.NEXT_PUBLIC_ENV === 'production' ? [mainnet] : [sepolia]; const tokens: any = createWeb3Modal({ export const config = defaultWagmiConfig({ |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am working on integrating MetaMask with Ethereum and Sepolia networks to fetch and display token balances.
Previously, I was able to get token balances using the following approach:
However, after migrating to AppKit, I tried the following configuration:
However, after migrating to AppKit, I am unable to get the token balance, and instead, only the default network balance is fetched.
I am unsure whether this is a bug, a removed feature, or if there’s a new migration method that I need to follow.
Is there a solution for this issue?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions