Home > @infiniteobjects/data-types > AssetToken
Asset Token data.
Signature:
export declare abstract class AssetToken<Traits extends IAssetTraits> implements IAssetToken<Traits>
Implements: IAssetToken<Traits>
All NFT assets need to extend this class
Property | Modifiers | Type | Description |
---|---|---|---|
assetType | FileType | Type of data the Token points to | |
backgroundColor | Color | Background color for this asset | |
blockchain | Blockchain | Blockchain | |
blockchainNetwork | BlockchainNetwork | Blockchain Network | |
collection | AssetCollection | Collection this token is part of | |
contract | AssetContract | Asset contract that generated this token | |
creator | Nullable<Profile> | The Creator of the asset | |
description | Nullable<string> | Asset Description | |
externalUrl | string | Link to the website for this Asset | |
id | string | The id of the token | |
name | Nullable<string> | Asset name (might be empty???) | |
original | AssetOriginalFile | Original file the token points to | |
owner | Nullable<Profile> | The Creator of the asset | |
previewType | FileType | Type of data the preview points to | |
previewUrl | Nullable<string> | Preview file of the asset | |
printability | AssetPrintabilityStatus | Can we make a video print of this token? | |
thumbnailUrl | Nullable<string> | Thumbnail image of the file | |
tokenAddress | string | The asset’s contract address | |
tokenId | Nullable<string> | The asset’s token ID, or null if ERC-20 | |
tokenService | TokenService | TokenService | |
traits | Traits | Asset Traits |
Method | Modifiers | Description |
---|---|---|
toAssetPointer() | Return an AssetPointer representation of this token | |
toBaseToken() | Return a minimized representation of this token | |
toJSON() | Serializes this class to JSON | |
toVideoPrint(preview) | abstract |
Return a videoPrint representation of the AssetToken The preview of an asset can be requested in place of the original if requested |