Skip to main content

Where is the Art Stored?

Welcome to this tutorial on where the art is stored. Let's take a closer look at the first ever artwork created on Code Canvas, Fract #1 by Leander Herzog.

When an artist creates generative art on Code Canvas, the code that generates the artwork is stored in three different places: on the Solana blockchain, on IPFS, and on Arweave.

Fract #1

To access the artwork, click on the link above and look for the Metadata hyperlink on the page. This will open up the Solana account where the artwork is stored.


The code that generates the artwork is stored in a Solana account, identified by the address 53Veg72veKEn6zQFDbqBKZmErBQG3UFNjZHEAUDuENYW.


Learn more about the concepts behind Solana accounts.

You can use the following code to access the Solana account:

import { Connection, PublicKey } from "@solana/web3.js";
import fs from "fs";

(async () => {
const rpc = "https://...";
const connection = new Connection(rpc, "confirmed");
const accountInfo = await connection.getAccountInfo(new PublicKey("53Veg72veKEn6zQFDbqBKZmErBQG3UFNjZHEAUDuENYW"));


IPFS is a decentralized storage system that is used to store the code.

The code is stored at the following URI:


The link above uses Code Canvas's gateway - learm more on how IPFS works.


Arweave is a Decentralized Storage Network that is used to store the Artwork's metadata, the image output and the source code.


The code that generates the artworks is stored on three separate systems. This ensures that the artwork is secure and accessible to collectors worldwide.