FormattedBalance
function FormattedBalance(__namedParameters): string
Component to display a formatted balance. This is typically used to display the balance of an account, as retrieved by KeybanAccount.getBalance().
Parameters
• __namedParameters: FormatedBalanceProps
Returns
string
- A JSX element displaying the formatted balance.
Example
import { FormattedBalance } from "@keyban/sdk-react";
function BalanceDisplay() {
return (
<p>Native Balance: <FormattedBalance balance={BigInt(2e17)} /></p>
);
}
export default BalanceDisplay;
Defined in
packages/sdk-react/src/FormattedBalance.tsx:54