# Onchain Art

## Onchain Pixel Art

Putting art fully onchain for Dot cards ensures absolute authenticity and ownership, making each card verifiable and tamper-proof.

This transparency builds trust, creating a secure and reliable ecosystem for collectors and players.

Onchain art also guarantees permanence and accessibility, protecting artists' work and enabling innovative gameplay features.

It’s not just a feature—it’s the foundation of a new era in digital art and gaming, where creativity and ownership thrive together.

## Dot Cards

Every time a Dot card is collected, it is given a digital heartbeat -- each pixel of the art is encoded and stored permanently on the Base blockchain.

Even if Dot isn't around in 100 years, you can always retrieve the full art from the blockchain.

Dot encodes images as compact strings instead of storing the full SVG to keep minting costs low. This approach ensures more revenue goes directly to the artists and minimizes gas fees. It's a smart choice that significantly benefits creators.

## Retrieve Onchain Art

1. Go to a Base chain explorer site and look up the Dot contract: [0x7b5673b598a71d27a56781271ec5fa05de216df0](https://basescan.org/address/0x7b5673b598a71d27a56781271ec5fa05de216df0#readContract)
2. Go to the Read Contract tab and enter your token number in the encodedImage section.
3. Take the output and paste it into the [decoder page here](https://dot.fan/decoder).

## Video Walk-through

{% embed url="<https://video.twimg.com/ext_tw_video/1803904411720134656/pu/vid/avc1/798x720/WL0EDvL0iShHifFK.mp4?tag=12>" %}

## Decoder Mirrors

* Full decoder is base64 encoded under "3. decoderCode" in the [contract here.](https://basescan.org/address/0x7b5673b598a71d27a56781271ec5fa05de216df0#readContract)
* Mirrored on Dot here: <https://dot.fan/dot-decoder.zip>
* Mirrored on IPFS here:<https://decoder.dotfan.eth.limo/>


---

# 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://guide.dot.fan/cards/onchain-art.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.
