Alba supports entirely on-chain generative art. Here’s how it works:
AlbaCodeStore
contract on the blockchain.tokenHTML
- this function can be used to return all of the HTML needed to recreate the artwork, with no external dependencies!That’s it! The piece will be preserved fully on-chain for as long as Ethereum lives.
Also, for convenience:
How does it differ to other platforms?
Other platforms like ArtBlocks store the code on-chain, but they do not store dependencies. It is not possible to completely recreate a work without making external calls and relying on centralised repositories (such as CDNs) to re-create a piece.
For each collection, you’d need to create some custom HTML which brought in the right external dependencies.
This means that whilst the code might be on-chain, you may not be able to find the specific version of the library that the artist used. This could lead to inconsistencies with rendering the piece, or in the worst-case scenario, not being able to render it at all.