# Xyxyx Text-Based Tokenization Architecture (XTBTA)

### Overview

The Xyxyx Text-Based Tokenization Architecture (XTBTA) is a software architecture designed for text-based tokenization.&#x20;

XTBTA serves as the underlying architecture of both the [Xyxyx API ](/products-and-services/api.md)and the [Xyxyx Launchpad](/products-and-services/launchpad.md).

***

### Functionality

**Text Processing**

XTBTA normalizes and encodes input text for EVM compatibility.

***

**SVG Generation**

XTBTA dynamically constructs an SVG document with elements, calculates bounding boxes, and embeds fonts if needed.

***

**Gas Optimization**

XTBTA minifies SVG, applies path simplifications, and explores compressed storage (Base64, gzip) for efficient on-chain persistence.

***

**On-Chain Data Storage**

XTBTA stores the final SVG string inside a Solidity smart contract, eliminating reliance on off-chain dependency (e.g., IPFS, Arweave) for data storage.

***

**Rendering & Retrieval**

Through XTBTA, token data is always retrievable from the EVM itself, being exposed via smart contract methods (`tokenURI`) and directly renderable via `data:image/svg+xml`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.xyxyx.pro/xyxyx-text-based-tokenization-architecture-xtbta.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
