Data Architecture
Last updated
Last updated
The introduces a structured, multi-layered approach to embedding both visual and semantic data within each .
Rather than treating token content as a single flat layer, XTBTA separates human-facing presentation from system-readable metadata at the architectural level. This is achieved through an SVG-based data model that distinguishes between two complementary data types: Token Text and Metadata Text.
Each TBT is composed using dedicated SVG elements — <text>
for visible, user-generated content, and <desc>
for metadata meant for programmatic consumption. This layered structure enables the token to serve dual purposes: as a visually expressive artifact and as a carrier of structured, queryable information. By embedding both layers directly within the smart contract, XTBTA facilitates rich interaction across interfaces — from user-facing applications to backend indexing systems — without compromising decentralization or on-chain permanence.
XTBTA employs a dual-input model comprising two distinct text functions for composing TBTs: and , each targeting a specific layer of data representation within the on-chain SVG architecture.
The Token Text function allows users to input free-form text that is rendered visually within the SVG graphic of the token. This content is directly inserted into the SVG markup and becomes part of the token's visible, human-readable output — making it ideal for declarative content that should be perceivable at the presentation layer of the token.
In contrast, the Metadata Text function is designed for system-readable content. It embeds a text record inside the SVG file but not as part of the visible image. Instead, it is included as structured data within the token’s tokenURI
metadata field, stored either as raw text or in standardized formats like JSON. This allows developers and off-chain systems to parse and interpret token-specific attributes, logic, or additional semantic data. For example, Metadata Text can encapsulate a JSON object that mirrors or expands on the Token Text content, enabling machine-readable access to the token’s semantics without altering its visual representation.
As a result, TBTs can be leveraged in a wide range of interoperable applications — from human-facing interfaces to automated indexing, querying, or integration with external data pipelines.
XTBTA composes each TBT using a layered SVG-based data structure that cleanly separates human-readable content from machine-readable metadata. This is achieved through the use of two distinct SVG elements — <desc>
and <text>
— each serving a specific role in the token's on-chain representation.
<desc>
: The description element is for .
<text>
: The text element is for .
Example
SVG Output
SVG File
Where
<desc>
:
<text>
: