Token
Whenever you’re viewing a single token, you’re in the token context. This can be on individual token pages, as well as within a list view.
Use: {{#is "token"}}{{/is}} to detect this context
Templates
The default template for a token is token.hbs, which is a required template in all Token Rodeo themes.
Token object attributes
id— the Object ID of the tokenhidden— a boolean that marks a token as hidden, disabling it from showing up anywhereprivate— a boolean that marks a token as private, which disables it from appearing in indexes, search, and prevents crawling, but does leave a page up so that it can be sharedname— the name of the tokentype— the token type (media)description— the description of the tokencollection— the title of the token collectionminted_by— the address of the originator of the tokenowned_by— the address of the current owner of the tokenis_minted_by_wallet— a boolean that indicates whether or not the creator is the current authenticated wallet owneris_minted_by_and_owned_by_wallet— a boolean that indicates whether or not the token was both created and currently owned by the current authenticated wallet ownertx_hash— the hash of the transactioncontract— the smart contract associated with the tokencontract_address— the address to the smart contractcontract_name— the name of the smart contractcontract_symbol— the symbol of the smart contract (e.g.CKfor CryptoKitties)contract_image— the image associated with the smart contractcontract_description— the description of the smart contractcontract_external_url– the link the original website for this contracttoken_id– the token ID (not to be confused with theid)
background_color– the background color to be displayed beneath the mediamedia— the media of a given token. Can be an image, video, or audio file.image_url— the URL for the image. Renders a static frame if token is a movie.video_url— the URL for the video.audio_url— the URL for the audio.
url— the web URL for the token pageproperties— an dictionary of token properties, otherwise known as traitsfeatured— indicates if the token is featured. Defaults tofalse.received_at— date and time when the token was acquiredminted_at— date and time when the token was first createdpublished_at— date and time when the token was published on the sitetags— an array of tags associated with the tokenmeta_title— custom meta title for the tokenmeta_description— custom meta description for the token
Last updated
Was this helpful?