Skip to main content

useNativeTokenAmountFromPlanck

Callable

  • useNativeTokenAmountFromPlanck(planck: string | number | bigint, options?: ChainHookOptions): DenominatedNumber
  • useNativeTokenAmountFromPlanck(options?: ChainHookOptions): (planck: bigint | number | string) => DenominatedNumber

  • Hook for returning the native token amount from a planck value.


    Parameters

    • planck: string | number | bigint

      The planck value

    • optionaloptions: ChainHookOptions

      Additional options

    Returns DenominatedNumber

    The native token amount