Skip to main content

useNativeTokenAmountFromPlanck

Callable

  • useNativeTokenAmountFromPlanck(planck: 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: bigint

      The planck value

    • optionaloptions: ChainHookOptions

      Additional options

    Returns DenominatedNumber

    The native token amount