near-api-js - v7.5.3
    Preparing search index...

    Function nearToYocto

    • Converts NEAR to integer yoctoNEAR (10^24 yoctoNEAR per NEAR).

      Parameters

      • near: number | `${number}`

        Decimal amount. Prefer a string to avoid JavaScript number precision loss.

      Returns bigint

      The amount in yoctoNEAR, without rounding.

      If the amount cannot be parsed or has more than 24 fractional digits.