new Nft()
- Version:
- 1.0
The Nft model module.
Members
owner :String
Owner EOA (20-byte)
Type:
- String
previousOwner :String
Previous owner EOA (20-byte)
Type:
- String
tokenId :String
Token ID (in hexadecimal)
Type:
- String
tokenUri :String
Token URL
Type:
- String
transactionHash :String
Last transaction hash(32-byte)
Type:
- String
createdAt :Number
Time of token creation (timestamp)
Type:
- Number
updatedAt :Number
Last change in token information (timestamp)
Type:
- Number
Methods
(static) constructFromObject(data, obj) → {Nft}
Constructs a Nft 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 |
Nft | Optional instance to populate. |
Returns:
The populated Nft instance.
- Type
- Nft