useOpSignBalance
Hook for retrieving balance information for the Operator Sign.
import { BigNumber } from "ethers";
function useOpSignBalance(): null | {
decimals: number;
formatted: string;
symbol: string;
value: BigNumber;
};
Usage
import { useOpSignBalance } from "@crossbell/connect-kit";
function App() {
const balance = useOpSignBalance();
return <p>balance: {balance?.formatted}</p>;
}