Function parse

  • Parse a well-formatted string into a NEAR object or a Gas object.

    Parameters

    • x: string

      string representing a value

    Returns Gas | NEAR

    Example

    parse('1 N') // => NEAR<'1000000000000000000000000'>
    parse('1mN') // => NEAR<'1000000000000000000000'>
    parse('1Tgas') // => Gas<'1000000000000'>

Generated using TypeDoc