solana mainnet // terminal
SNAKE█
an entire playable video game inside the transaction that created this coin.
not a link to a game. not metadata pointing somewhere. the game itself. on-chain. forever.
$ cat ca.txt
> SnakeA83mEybe3CbWTyHXZmJdHP9fiuY58bpmNwtat3
$ cat how.txt
> snake golfed to 402 bytes of raw html
> embedded as a memo instruction inside the pump.fun create transaction
> 1230 / 1232 bytes. 2 bytes to spare.
> no server. no ipfs. no link rot. the chain is the cartridge.
$ cat snake.html
<body bgcolor=0><canvas id=c><script>with(c.getContext`2d`)t=[],L=5,X=0,k=1,A=3,f=p=>fillRect(p%20*15,(p/20|0)*15,14,14),onkeydown=e=>k=(v=[-1,-20,1,20][e.which-37])+k?v:k,setInterval(_=>{X=(X+k+200)%200;t.includes(X)&&(L=5,t=[]);c.width|=0;fillStyle='#0f0';t.push(X);t=t.slice(-L);t.map(f);X==A&&(L++,A=(A*21+7)%200);fillStyle='red';f(A);fillStyle='#fff';font='20px a';fillText(L-5,2,17)},99)</script>
$ play it straight from the chain
node -e 'fetch("https://api.mainnet-beta.solana.com",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"getSignaturesForAddress",params:["SnakeA83mEybe3CbWTyHXZmJdHP9fiuY58bpmNwtat3",{limit:1000}]})}).then(r=>r.json()).then(r=>{const game=r.result.map(s=>s.memo).filter(Boolean).map(m=>m.replace(/^\[\d+\] /,"")).find(m=>m.startsWith("<"));require("fs").writeFileSync("game.html",game);require("child_process").exec("open game.html")})'
$ ./snake --live
click the board. arrow keys to steer. this is the exact 402 bytes from the transaction, running.
$ ls proof/
[ creation transaction ]
[ pump.fun ]
[ x ]
this token's transaction history is a video game.