MtToken

MtToken

new MtToken()

Version:
  • 1.0

The MtToken model module.

Members

tokenId :String

Token ID (in hexadecimal)

Type:
  • String

owner :String

Owner EOA (20-byte)

Type:
  • String

tokenAddress :String

CA (20-byte)

Type:
  • String

totalSupply :String

Total issued amount (in hexadecimal)

Type:
  • String

tokenUri :String

Token URL

Type:
  • String

balance :String

Owner's balances in EOA

Type:
  • String

transactionHash :String

Last transaction hash (32-byte)

Type:
  • String

transferFrom :String

Sender EOA of last TransferSingle or TransferBatch (20-byte)

Type:
  • String

transferTo :String

Receiver EOA of recent TransferSingle or TransferBatch (20-byte)

Type:
  • String

updatedAt :Number

Last change in token information (timestamp)

Type:
  • Number

Methods

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

Constructs a MtToken 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 MtToken

Optional instance to populate.

Returns:

The populated MtToken instance.

Type
MtToken

MtToken

new MtToken(tokenId, owner, tokenAddress, totalSupply, tokenUri, balance, transactionHash, transferFrom, transferTo, updatedAt)

Constructs a new MtToken.

Parameters:
Name Type Description
tokenId String

Token ID (in hexadecimal)

owner String

Owner EOA (20-byte)

tokenAddress String

CA (20-byte)

totalSupply String

Total issued amount (in hexadecimal)

tokenUri String

Token URL

balance String

Owner's balances in EOA

transactionHash String

Last transaction hash (32-byte)

transferFrom String

Sender EOA of last TransferSingle or TransferBatch (20-byte)

transferTo String

Receiver EOA of recent TransferSingle or TransferBatch (20-byte)

updatedAt Number

Last change in token information (timestamp)

Members

tokenId :String

Token ID (in hexadecimal)

Type:
  • String

owner :String

Owner EOA (20-byte)

Type:
  • String

tokenAddress :String

CA (20-byte)

Type:
  • String

totalSupply :String

Total issued amount (in hexadecimal)

Type:
  • String

tokenUri :String

Token URL

Type:
  • String

balance :String

Owner's balances in EOA

Type:
  • String

transactionHash :String

Last transaction hash (32-byte)

Type:
  • String

transferFrom :String

Sender EOA of last TransferSingle or TransferBatch (20-byte)

Type:
  • String

transferTo :String

Receiver EOA of recent TransferSingle or TransferBatch (20-byte)

Type:
  • String

updatedAt :Number

Last change in token information (timestamp)

Type:
  • Number

Methods

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

Constructs a MtToken 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 MtToken

Optional instance to populate.

Returns:

The populated MtToken instance.

Type
MtToken