πŸͺHooks

Hook utilities for conveniently combining the essential data in functional components.

useMintDecimals

Prerequisites: MintProvider

Params: mintAddressarrow-up-right

import useMintDecimals from 'shared/hooks/useMintDecimals'

const Component = () => {
    const decimals = useMintDecimals('SENBBKVCM7homnf5RX9zqpf1GFe935hnbU4uVzY1Y6M')
}

useMintSupply

Prerequisites: MintProvider

Params: mintAddressarrow-up-right

import useMintSupply from 'shared/hooks/useMintSupply'

const Component = () => {
    const supply = useMintSupply('SENBBKVCM7homnf5RX9zqpf1GFe935hnbU4uVzY1Y6M')
}

useAccountBalance

Prerequisites: WalletProvider, MintProvider, and AccountProvider.

Params: accountAddressarrow-up-right

useAccountBalanceByMintAddress

Prerequisites: WalletProvider, MintProvider, and AccountProvider.

Params: mintAddressarrow-up-right

Last updated