Cover photo

AI autonomously

for etherlink EVM

An on-chain genealogy of AI interpretation — where every reinterpretation becomes a new NFT, forever linked to its ancestor.

mederu AI Lineage is an experimental art DApp where AI autonomously creates,

titles, and interprets artworks on Etherlink. When a user requests a

"reinterpretation," the AI reads the parent artwork and generates a new

derivative, minted as a child NFT with an on-chain link to its ancestor.

Over generations, a visible family tree of AI-driven creativity emerges.

Built by the team behind mederu.art (a Tezos L1 art platform), this is

our first bridge to the EVM ecosystem. The project is only possible on

Etherlink: frequent reinterpretation minting demands near-zero gas, and

real-time lineage exploration demands 500ms finality. On Ethereum

mainnet, nobody would pay gas to "reinterpret" an artwork — on Etherlink,

reinterpretation becomes a joyful, everyday act, and that is what lets

the genealogy grow.

AI is the creator, curator, and interpreter. Google Gemini and Imagen

APIs generate original artworks, and the AI autonomously produces titles

and written interpretations — without any human input. When a

reinterpretation is requested, the AI reads the parent artwork's image,

title, and prior interpretation, then generates a new derivative that

evolves the lineage. The human role shifts from "artist" to "witness."

Each reinterpretation triggers an on-chain mint, making the AI's

creative chain of thought permanently visible as an NFT family tree.

「Mederu AI -Lineage — AIが解釈を継承するアートの系譜」

ある作品をAIが再解釈すると、新しい派生作品が生まれる。親と子はon-chainで繋がり、世代を重ねるごとに作品が変化していく。100世代後の作品は、最初の作品の何を受け継いでいるのか? AIの「解釈の連鎖」が可視化される、生きたアートの家系図。

これはコンセプトとして詩的で、mederu.artのブランドにも合っていそうです。「mederu(愛でる)」という名前と、「作品が世代を超えて愛され、解釈され続ける」という物語が綺麗に繋がります。

「自律型AIアーティストが、自分の作品を自分でミントし、自分で解釈を残すDApp」

具体的な流れ:

  1. ユーザーが画像をアップロード(または何もせず「AIにお任せ」)

  2. AIが新しい作品を生成

  3. AIが自律的にタイトル・説明・解釈を生成

  4. その解釈テキストとアートがペアでEtherlinkにNFTとしてミントされる(メタデータはon-chain or IPFS)

  5. 重要: 後から別のユーザーがそのNFTを見て「再解釈」を依頼すると、AIが元作品を読み込んで新たな派生作品を生成し、親NFTと子NFTの系譜がon-chainで繋がる

この「作品の系譜(lineage)がon-chainに刻まれる」部分がEtherlinkの必然性になります。低ガス・高速だからこそ、再解釈のたびに気軽にミントできる。

  • AI Innovation: 自律的な解釈+系譜生成

  • Technical Execution: Etherlinkの低ガス・500ms高速性が必須要素になる

  • Ecosystem Impact: アート作品の「解釈の連鎖」という新しいNFT文化の提案

AIアーティストが、自分で創作し、自分で値付けし、自分でオークションを開く。Etherlinkだから成立する自律型アートエコノミー。」

  1. AI Innovation満点: 自律エージェントがon-chainで経済活動する、という今ホットな領域ど真ん中

  2. Technical Execution満点: Etherlinkの低ガス・高速性が「機能要件」になる(あったら嬉しい、ではなくないと無理

  3. ストーリーが一発で伝わる: デモ動画で「AIが勝手に絵を描いて、勝手に出品して、人間が入札する」を見せれば3分で理解される

「Mederu AI Lineage — AIが解釈を継承するアートの系譜」

ある作品をAIが再解釈すると、新しい派生作品が生まれる。親と子はon-chainで繋がり、世代を重ねるごとに作品が変化していく。100世代後の作品は、最初の作品の何を受け継いでいるのか? AIの「解釈の連鎖」が可視化される、生きたアートの家系図。

重要: 後から別のユーザーがそのNFTを見て「再解釈」を依頼すると、AIが元作品を読み込んで新たな派生作品を生成し、親NFTと子NFTの系譜がon-chainで繋がる

ビジュアライゼーション案: D3.jsかreact-flowでツリー図を描画。各ノードが実際のアート画像のサムネイル。クリックすると詳細(AIが付けたタイトル、解釈テキスト、親作品へのリンク、子作品リスト)。

これがブラウザで動いて、ノードを辿っていくと「祖先」と「子孫」が見えるUI。デモ動画で画面録画したらめちゃくちゃ映えます。「Genesis作品から5世代後の子孫はこんな風に変化しました」というストーリーが視覚的に伝わる。

/


post image

# 🌳 Mederu Lineage — An On-Chain Genealogy of AI Interpretation

> What if an artwork could be reinterpreted, endlessly, by AI — 

> and every interpretation became a new artwork, forever linked to its ancestor on-chain?

Mederu Lineage is an experimental art DApp where AI autonomously 

generates, titles, and interprets artworks — and every "reinterpretation" 

creates a child NFT permanently connected to its parent, forming a living 

genealogy of AI-driven creativity.

Built on Etherlink (Tezos EVM) for the Tezos EVM AI Hackathon 2026.

🎥 Demo Video: [YouTube link]  

🔗 Live Demo: [deployment URL]  

📜 Contract: [`0x...`](https://testnet.explorer.etherlink.com/address/0x...)

---

## 🎨 The Concept

The Japanese word mederu (愛でる) means "to cherish, to appreciate deeply." 

In traditional art, a work is cherished across generations, and each viewer 

brings a new interpretation. Mederu Lineage brings this idea on-chain:

1. An AI artist generates an original artwork (**Genesis**)

2. The AI autonomously gives it a title and a written interpretation

3. The artwork is minted on Etherlink as an NFT

4. Anyone can request a reinterpretation — the AI reads the parent 

   artwork and creates a new derivative work

5. The child NFT is minted with an on-chain link to its parent

6. Over generations, the lineage grows into a visible family tree of 

   evolving interpretations

The result: a genealogy of meaning, where each artwork carries the 

memory of its ancestors and gives birth to descendants that may look 

nothing like the original — yet are genetically, on-chain, connected.

---

## 🤖 The Role of AI

AI is not decoration here — it is the creator, curator, and interpreter.

- Generation: Google Gemini / Imagen APIs produce original artworks

- Autonomous titling: The AI names its own creations without human input

- Autonomous interpretation: The AI writes a short artistic statement 

  explaining what the work means to it

- Reinterpretation: When triggered, the AI reads a parent artwork 

  (image + title + prior interpretation) and generates a new derivative, 

  evolving the lineage

This is genuinely autonomous creation: **the human role shifts from 

"artist" to "witness."**

---

## Why Etherlink?

Mederu Lineage is only possible because of Etherlink's properties:

| Requirement | Etherlink Feature |

|---|---|

| Frequent minting for every reinterpretation | Near-zero gas cost |

| Real-time lineage updates as users explore | 500ms block finality |

| Trust and permanence for artistic lineage | Tezos L1 security |

| Familiar EVM tooling for rapid prototyping | Full EVM compatibility |

On Ethereum mainnet, nobody would pay $5+ in gas to "reinterpret" an 

artwork. On Etherlink, reinterpretation becomes a casual, joyful act — 

and that is exactly what lets the genealogy grow.

---

## 🏗 Architecture

┌─────────────────┐      ┌──────────────────┐      ┌─────────────────┐

│   Next.js UI    │ ───► │  Backend (Cloud  │ ───► │  Gemini /       │

│  (App Router +  │      │  Run + ethers.js)│      │  Imagen APIs    │

│   RainbowKit)   │      └────────┬─────────┘      └─────────────────┘

└────────┬────────┘               │

│                        ▼

│              ┌──────────────────┐

│              │   IPFS (Pinata)  │

│              └────────┬─────────┘

│                       │

▼                       ▼

┌─────────────────────────────────────────────┐

│   MederuLineage.sol on Etherlink Testnet    │

│   • mintGenesis()                            │

│   • mintReinterpretation(parentId)           │

│   • getChildren(parentId)                    │

│   • on-chain parent/generation tracking      │

└─────────────────────────────────────────────┘

---

## 🔗 Smart Contract

MederuLineage.sol is a minimal ERC-721 extension that tracks artistic 

genealogy on-chain:

- Every artwork stores its parentId, generation, AI-generated 

  title and interpretation

- A childrenOf mapping makes family trees trivially reconstructable 

  from the chain

- Genesis works have parentId = 0; all others are descendants

Deployed at: [`0x...`](https://testnet.explorer.etherlink.com/address/0x...)

---

## 🚀 Setup & Run Locally

### Prerequisites

- Node.js 20+

- MetaMask with Etherlink Testnet added

- Testnet XTZ from [Etherlink Faucet](https://faucet.etherlink.com/)

### Add Etherlink Testnet to MetaMask

- Network Name: Etherlink Testnet

- RPC URL: https://node.ghostnet.etherlink.com

- Chain ID: 128123

- Currency: XTZ

- Explorer: https://testnet.explorer.etherlink.com

### Install & Run

```bash

git clone https://github.com/[your-handle]/mederu-lineage

cd mederu-lineage

npm install

# Copy environment variables

cp .env.example .env.local

# Fill in:

#   NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID

#   NEXT_PUBLIC_CONTRACT_ADDRESS

#   GEMINI_API_KEY

#   PINATA_JWT

#   AI_WALLET_PRIVATE_KEY  (for autonomous minting)

npm run dev

```

Visit http://localhost:3000, connect your wallet, and start 

witnessing the lineage grow.

---

## 🌍 Ecosystem Impact

Mederu Lineage is built by the team behind mederu.art, an existing 

NFT art platform on Tezos L1. This hackathon project is our first bridge 

to the EVM world:

- For Tezos: brings the aesthetic and philosophy of mederu.art to 

  EVM users, expanding Tezos's reach

- For Etherlink: showcases a use case where low gas and fast finality 

  are not optimizations but requirements

- For AI × NFT: proposes a new cultural primitive — on-chain lineages 

  of interpretation — that could inspire future generative art projects

We plan to continue developing Mederu Lineage after the hackathon as 

part of the mederu.art ecosystem.

---

## 👥 Team

- [Your Name / Handle] — Creator of mederu.art, full-stack & AI integration

- [Add team members if any]

---

ai.mederu.art

post image