Home > @infiniteobjects/data-types > TokenMetadata
This is the official ERC721 token metadata format
Signature:
export declare class TokenMetadata
Property | Modifiers | Type | Description |
---|---|---|---|
animation_details? | AnimationDetails | (Optional) | |
animation_url | string | ||
animation | string | ||
attributes? | Attribute[] | (Optional) | |
created_by? | string | (Optional) | |
description? | string | (Optional) | |
external_url? | string | (Optional) | |
image_details? | ImageDetails | (Optional) | |
image_url | string | ||
image | string | ||
name | string |
Method | Modifiers | Description |
---|---|---|
setAttribute(traitType, value) | Helper function to upsert attributes. If it finds the attribute it will update the value, if not it will create it |