Function transferCoins

  • Transfers coins from the current address 'to' a given address.

    See

    massa units standard

    Throws

    • if the given address is not a valid address.
    • if the balance of the current address is insufficient to make the transaction.

    Parameters

    • to: Address

      the address to send coins to.

    • amount: number

      value in the smallest unit.

    Returns void

Generated using TypeDoc