JSON: {
    decimals: number;
    value: string;
}

Protocol level token (PLT) amount JSON representation.

Please note that bigint is used to represent the token amount, which is needed for precise representation of large numbers. As such, extra steps must be taken to serialize and deserialize the token amount.

Type declaration

  • decimals: number

    The decimals of the token amount, defining the precision at which amounts of the token can be specified.

  • value: string

    The integer representation of the token amount as a string.

Generated using TypeDoc