useBetTokenBalance
Returns bet token balance based on appChain.id
.
ℹ️
Hook represents a logic wrapper over Wagmi's useReadContract
hook. Explore useReadContract (opens in a new tab) to understand what data the hook returns.
Usage
import { useBetTokenBalance } from '@azuro-org/sdk'
const { data, isFetching } = useBetTokenBalance()
const { rawBalance, balance } = data
Props
{
chainId?: ChainId
query?: UseReadContractParameters<typeof erc20Abi, 'balanceOf'>['query']
}
type ChainId =
| 100 // Gnosis
| 137 // Polygon
| 80002 // Polygon Amoy
| 88888 // Chiliz
| 88882 // Chiliz Spicy
| 8453 // Base
| 84532 // Base Sepolia
Return Value
UseReadContractReturnType<typeof erc20Abi, 'balanceOf', any, Balance>
type Balance = { rawBalance: BigInt, balance: string }