new MtToken()
- Version:
- 1.0
The MtToken model module.
Members
tokenId :String
Token ID (hex)
Type:
- String
owner :String
Owner address (20-byte)
Type:
- String
tokenAddress :String
CA (20-byte)
Type:
- String
totalSupply :String
Total supply (hex)
Type:
- String
tokenUri :String
Token URI
Type:
- String
balance :String
Owner balance
Type:
- String
transactionHash :String
Last transaction hash (32-byte)
Type:
- String
transferFrom :String
Sender address of last transfer (either TransferSingle or TransferBatch) (20-byte)
Type:
- String
transferTo :String
Receiver address of last transfer (either TransferSingle or TransferBatch) (20-byte)
Type:
- String
updatedAt :Number
UNIX timestamp of when the token information last changed
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