Skip to content

Node Interface cannot represent large token amounts #62

@sethdusek

Description

@sethdusek

The node interface is unable to accurately represent large token amounts. The actual amount of these tokens is 9223372036854775807.

image

I believe the way to solve this is to use lossless-json to preserve precision when deserializing responses in axios. https://stackoverflow.com/questions/43787712/axios-how-to-deal-with-big-integers

I haven't tested whether you can send a large token amount using the node interface but I would imagine it suffers from a similar issue since javascript's number type can't represent numbers larger than ~53 bits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions