yeti labs

field note 013 · 2026-08-24 · onchain, storage

the art was on ipfs, and a $20 plan still decided whether it rendered

in 2022 we launched a 3,000-piece nft (non-fungible token) collection on ethereum, with the art on ipfs (the interplanetary file system, the "decentralized" storage everyone points at). this august we cancelled the $20-a-month pinning plan that held it. before the plan ran out, we traced where the contract actually sends people.

pieces
3,000
pinning plan
$20/mo
lifetime spend
~$900
hosts it all hangs on
1

the setup

an nft's picture isn't on the chain. the contract has a tokenURI (uniform resource identifier) for each token, which points at a small metadata file with the name, the traits, and a link to the image. marketplaces read that link and fetch whatever it says.

we pinned two folders with a hosted ipfs service back in october 2022: 3,000 metadata files and 3,000 images, plus the collection's theme song. on ipfs a file's address is a cid (content identifier), a hash of its bytes, so any node holding the bytes can serve it. that's the whole pitch.

the contract doesn't use that pitch. where you'd expect an ipfs:// address, every tokenURI is a plain web url on our account's personal gateway, shaped like this:

https://<our-gateway>.mypinata.cloud/ipfs/<metadata cid>/<id>

that hostname belongs to the paid account. the cid in the middle is content-addressed and portable. the host in front of it is a subscription. cancel the plan and the gateway stops serving, so all 3,000 tokens lose their metadata and their images on every marketplace at once.

and it's in the metadata too

on paper the fix is one contract call to re-point the base uri. then we read the metadata itself. the image field in 3,000 of 3,000 files is the same personal gateway url, pointing at the images folder. re-pointing the contract would bring back names and traits, and every image link inside them would still name the dead host.

the metadata files are part of the hashed folder, so rewriting those links means a new metadata cid. the original cid stays reproducible from the archive. it just can't be the one that renders the art somewhere new.

why we couldn't just downgrade

the obvious move was the free tier. we checked the limits first: it caps at 500 files. the account held 6,009.

the free tier holds 500 files, and the collection alone is 6,000

files pinned on the hosted ipfs account at cancellation, by what they were

02,0004,0006,000 fileswhole account6,009collection metadata3,000collection images3,000everything else9 · theme song, logs, csvsfree tier limit500the art alone is 12 freetiers' worth of files.downgrading was never on the table.
source: the account's pin records, exported before cancellationyeti labs · field note 013

the archive

so before the plan lapsed we pulled every byte down into a private repo: the 3,000 metadata files, the 3,000 images, the theme song, and the original pin records. the handful of unrelated pins (old logs, a few csvs, a zip) went somewhere else.

a copy is only worth something if it's the same bytes, so we re-derived both folder cids from the files on disk with a default-configured ipfs node (ipfs add -r --cid-version=0) and compared them to the cids the contract and the metadata point at. both matched.

folderfilesbytescid reproduced
metadata3,0002,105,563yes
images3,000243,158,045yes

we also checked the metadata field by field: every file parses, every name is the collection name plus its id, and every image points at the matching file.

one quirk worth writing down: every image is named .png and is actually an 800×800 progressive jpeg. that's how it was published in 2022. it's tempting to "fix" the extensions in the archive, and doing it would change the images cid and break the match with everything that points at it. we left the bytes alone.

what we'd do instead

  1. put ipfs:// addresses in the contract and in the metadata's image field from day one. a gateway url is fine for a website, and a terrible thing to write into something you can't easily edit.
  2. before cancelling anything that serves onchain content, trace every link a marketplace would follow, from the contract to the metadata to the image, and write down which host each hop depends on.
  3. archive, then reproduce the cids from the archive before the plan lapses. a backup you haven't hashed is a hope.
  4. read the free tier's limits early. we'd have known in 2022 that 6,000 files meant paying forever, or moving.

the contract does have a setTokenURI(string) function, so the base uri can be re-pointed later. if we ever want the collection rendering again, it's a re-pin of the images, rewritten metadata with ipfs:// image links, and that one call.

got something onchain that quietly depends on a subscription?

we'll trace every link before you cancel anything.

talk to the agent →