My metamask balance doesnโt show like this same way
And hear is my setup
Iโm not sure what is the problem, it looks like you want to setup a local devchain and connect metamask to that local devchain.
Yes exactly โฆI have my local devchain set up and I have already connected with my metalmask account though the devchain but I canโt see the balance once I log into localhost:3000
how are you trying to get that balance?
How do I go about it
You mean I use go on mainnet
Or does it work with ganache
Web3api APIs donโt work with a local dev chain. It would work with a testnet or mainnet
what it doesnโt work? what are you trying to do there? can you share the code?
I am trying to authenticate with my ropsten testnet and I want my balance to show in Assets
ok, how do you get the balance for current account, what is the code that does that?
i dont have any code โฆall i want is that once i authenticate with my metamask that has my ropsten testnetโฆ i want to be able to see the eth in my metamask on my appโฆ
i also tried using roptsten network and still didnt workโฆ
How you want to display that? You mean that you donโt know how to do it and that is why you donโt have any code?
You can use Moralis.Web3API.account.getNativeBalance