FtTransfer

FtTransfer

new FtTransfer()

Version:
  • 1.0

The FtTransfer model module.

Members

contract :FtContract

Type:

formattedValue :String

Converted value with the contract specific decimal

Type:
  • String

from :String

Sender EOA (20-byte)

Type:
  • String

to :String

Receiver EOA (20-byte)

Type:
  • String

transaction :Transaction

Type:

transferType :String

Type of transaction detail

Type:
  • String

value :String

Number of tokens transferred (in hexadecimal)

Type:
  • String

Methods

(static) constructFromObject(data, obj) → {FtTransfer}

Constructs a FtTransfer from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj FtTransfer

Optional instance to populate.

Returns:

The populated FtTransfer instance.

Type
FtTransfer

FtTransfer

new FtTransfer(contract, formattedValue, from, to, transaction, transferType, value)

Constructs a new FtTransfer.

Parameters:
Name Type Description
contract FtContract
formattedValue String

Converted value with the contract specific decimal

from String

Sender EOA (20-byte)

to String

Receiver EOA (20-byte)

transaction Transaction
transferType String

Type of transaction detail

value String

Number of tokens transferred (in hexadecimal)

Members

contract :FtContract

Type:

formattedValue :String

Converted value with the contract specific decimal

Type:
  • String

from :String

Sender EOA (20-byte)

Type:
  • String

to :String

Receiver EOA (20-byte)

Type:
  • String

transaction :Transaction

Type:

transferType :String

Type of transaction detail

Type:
  • String

value :String

Number of tokens transferred (in hexadecimal)

Type:
  • String

Methods

(static) constructFromObject(data, obj) → {FtTransfer}

Constructs a FtTransfer from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj FtTransfer

Optional instance to populate.

Returns:

The populated FtTransfer instance.

Type
FtTransfer