I saw there are a few beautiful hooks to use with react-moralis, But unfortunately, I can’t make them useful. I don’t understand how this should be used.
I’ve already wrapped it with the provider on my main index js file. As mentioned on docs, I would like to use useNativeBalance
this hook/method. though I’ve already connected with MetaMask. But I get no data as output on a route. function Home() { const { getBalance, data: balance, nativeToken } = useNativeBalance({ chain: "eth" });
all the constants are showing undefined/null value.
I would like to know and understand what is the wrong thing I’m doing.