This is the conservator's bench. Below, the mint account is fetched from a public node and taken apart in your browser — extension by extension, field by field — until the 448 bytes of the object fall out and are hashed against the file in Solana's repository. Nothing is pre-rendered.
This runs against a public RPC every time the page loads. Nothing is cached, nothing is pre-rendered.
getAccountInfo for the mint address, base64 encoded.
After the 82-byte legacy mint, Token-2022 stores extensions as type-length-value records. We're looking for MetadataPointer (18) and TokenMetadata (19).
Name, symbol, uri, then the additional key/value fields — the same structure the tutorial writes.
base64 → bytes → crypto.subtle.digest. Compared to the sha-256 of src/cat.png in the repo.
The bytes become a Blob, the Blob becomes an image, the image goes on a canvas at 32×32, upscaled with pixel snapping. That's the hero.
The Solana course mints Cat NFT / EMB with species: Cat and breed: Cool, then uploads the picture off-chain. We kept every field and added the picture as one more field.
Or with the Solana CLI:
Or in five lines of the same library the tutorial uses: