vechaindocsgithub
  • Preparing search index...
  • The search index is not available
vechain-sdk
  • vechain-sdk
  • @vechain/sdk-core
  • Units
  • parseEther

Function parseEther

  • parseEther(ether): FixedPointNumber
  • Parse the decimal string expressing a value in Units.ether to return a FixedPointNumber value expressed in Units.wei.

    Parameters

    • ether: string

      = The representation of a numeric value expressed in Units.ether.

    Returns FixedPointNumber

    The equivalent value in Units.wei.

    Throws

    If exp is not a numeric expression.

    Remarks

    The term ether refers to the order of magnitude 10E18, not to the ETH cryptocurrency.

    See

    ethers parseEther

    • Defined in packages/core/src/vcdm/currency/Units.ts:115

Settings

Member Visibility
vechaindocsgithub
vechain-sdk
  • Loading...

Generated using TypeDoc