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