Balance

The document provides details on a component that displays the balance of a specified Ethereum address in both ETH and USD, including import instructions, usage example, and available props for customization.

Displays the balance of a given address in both ether (ETH) and US dollars (USD).

Import

typescript
1import { Balance } from "~~/components/scaffold-eth";

Usage

jsx
1<Balance address="0x34aA3F359A9D614239015126635CE7732c18fDF3" />

Props

PropTypeDefault ValueDescription
addressstringundefinedAddress in 0x___ format, it will resolve its ENS if it has one associated.
className (optional)string""Prop to pass additional CSS styling to the component. You can use Tailwind / daisyUI classes like text-3xl for styling.