Like cosmjs's Coin, but with amount being a bigint instead of a string.

This implements IBigIntCoin, only difference being is that this class has helper methods.

Implements

Constructors

Properties

Methods

Constructors

Properties

amount: bigint
denom: string

Methods

  • Returns a string which displays this object's amount and denom in a user-friendly way.

    Parameters

    • trimTrailingZeros: boolean = false

      If true, the result won't have trailing zeros. e.g. "0.100000" becomes "0.1" *

    Returns string

    A user friendly string, e.g. "1.234567 SEI"