Hi, sorry to bother with such a simple question, was able to easily pull ETH holdings using this code provided in Moralis Docs. Wondering if there is a similar way to pull an erc20 single token balance as well as current ETH price.
import { useEvmNativeBalance } from '@moralisweb3/next';
function HomePage() {
const address = '0x1...';
const { data: nativeBalance } = useEvmNativeBalance({ address });
return (
<div>
<h3>Wallet: {address}</h3>
<h3>Native Balance: {nativeBalance?.balance.ether} ETH</h3>
</div>
);
}
export default HomePage;