Class Web3Provider

Hierarchy (view full)

Implements

Constructors

Properties

_providerName: string = 'Massa web3 provider'
account: Account
client: PublicAPI

Accessors

Methods

  • Transfers tokens.

    Parameters

    • to: string | Address

      The address of the recipient.

    • amount: bigint

      The amount of tokens to transfer.

    • Optional opts: OperationOptions

      Optional operation details.

    Returns Promise<Operation>

    The ID of the operation.

    Throws

    If the amount of tokens is not a positive non-zero value.