qbit-rpc
    Preparing search index...

    Function parseQbt

    • Parse a decimal QBT amount, such as qbit Core prints ("1.00000000"), into bits. At most 8 decimals, no exponent, no sign other than a leading - when allowNegative is set, and at most MAX_MONEY_BITS in magnitude. Negative zero ("-0", "-0.00000000") is zero: 0n, with or without allowNegative. Throws a RangeError otherwise. options is read by its own properties: an inherited allowNegative is a TypeError.

      Parameters

      • text: string
      • options: { allowNegative?: boolean } = NO_OPTIONS

      Returns bigint