Storing Nakamigos Fully Onchain.
The collection is preserved on Ethereum using compact token bytes, reusable SVG fragments, and a renderer contract that reconstructs each token's metadata and image onchain.
0xB37a75DF18b8a0ca8631aFF5E387138375c5F545
0x940a40A10d0066f4ae650CE1cf82465d19c794B1
tokenTraitIds(tokenId) for bytes and tokenURI(tokenId) for metadata + image.
Try A Token
Enter a token ID. The tool reads the token's 16 packed bytes, calls tokenURI, decodes the base64 metadata, and displays the onchain SVG image.
Ready.
0x
How It Works
The system stores the reusable parts of the art instead of storing 20,000 finished image files. Each token points to the traits it needs, and the renderer assembles the final SVG when it is read.
Data Contract
NakamigosArtData is the registry. Each stored byte blob lives in a small bytecode-storage contract, and the registry keeps the pointer address.
Renderer Contract
NakamigosRenderer reads the registry, copies stored bytes with extcodecopy, assembles the SVG, and returns the same kind of metadata NFT viewers expect.