new Nft()
- Version:
- 1.0
The Nft model module.
Members
owner :String
EOA of owner (20-byte)
Type:
- String
previousOwner :String
EOA of previous owner (20-byte)
Type:
- String
tokenId :String
Token ID (in hexadecimal)
Type:
- String
tokenUri :String
Unique token URL
Type:
- String
transactionHash :String
Latest transaction hash (32-byte)
Type:
- String
createdAt :Number
Time of token's creation (timestamp)
Type:
- Number
updatedAt :Number
Time when token information was last changed (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