Function consts

  • Name

    consts

    Summary

    Generic function to get a chain constant.

    Example


    console.log(api.consts.balances.existentialDeposit.toString())
    

    Returns

    The constant value

    Parameters

    • section: string

      The section required to get the chain constant (eg. "balances")

    • constantName: string

      The constantName depending on the section (eg. "existentialDeposit")

    Returns Codec

Generated using TypeDoc