Getting balance using dapp kit

Is there a hook in @mysten/dapp-kit that can get the balance on the currently connected wallet?

1 Like

You could use the suiClient instance that is returned by the useSuiClient hook, and call the suiClient.getBalance method providing the current address as argument

1 Like

Worked with this syntax:
Number((await suiClient.getBalance({owner: account?.address+""})).totalBalance)/Number(MIST_PER_SUI)

1 Like

Yes, it has been solved

1 Like