wslyvh / nexth

A Next.js + Ethereum starter kit with Viem, Wagmi, Web3Modal, SIWE, Tailwind, daisyUI and more to quickly ship production-ready Web3 Apps ⚡
https://nexth.vercel.app/
MIT License
671 stars 141 forks source link

Add TokenBalance component #36

Closed hone1er closed 6 months ago

hone1er commented 6 months ago

This pull request adds a reusable TokenBalance component that can be used to display the balance of a token or Ether for a given address. The component uses the useBalance and useReadContract hooks from the wagmi library to fetch the balance data. It also includes the necessary imports and type definitions.

vercel[bot] commented 6 months ago

@hone1er is attempting to deploy a commit to the useWeb3 Team on Vercel.

A member of the Team first needs to authorize it.