Collections
mint you own generative art collection on 4tuna.art - soon
All data is decentrally stored on the block-chain and openly accessible to allow integration into other products. This website 4tuna.art only serves as a front-end to assemble transactions and fetch blockchain data. Deploying collections and minting art work directly via the Cardano blockchain accessing the block hashes from the $TUNA blockchain for randomization.
The document will have this structure, with templates provided by 4tuna.art.
All data is decentrally stored on the block-chain and openly accessible to allow integration into other products. This website 4tuna.art only serves as a front-end to assemble transactions and fetch blockchain data. Deploying collections and minting art work directly via the Cardano blockchain accessing the block hashes from the $TUNA blockchain for randomization.
features
- decentralized smart contract minting
- using 4tuna.art front-end
- or with your own infrastructure (node, Ogmios) and command line tools
- CIP-68 standard
- up to 14kB of code - stored on-chain
- set mint price in ADA/$TUNA
- set range in $TUNA blocks/time during which your collection can be minted
- fixed or unlimited supply
- view in you wallet on 4tuna.art
workflow
- create your generative art collection in vanilla JS without external libraries (templates and examples are available)
- derive your art from a variable, which will be replaced by a 256-bit hash of a $TUNA block, for example: 00000000077c1b2339ca1d7b396e11a0f19a79104950082b635f234c9be78a74.
- define your collection settings
- 4tuna.art turns this data into a smart contract with a unique policy ID
- deploy contract to Cardano (deposit for MinUTxOAda required)
- enable the minting
fees
- 4tuna.art does not collect fees for deploying collections. Blockchain fees and deposits apply:
- blockchain transaction fee to deploy contract with metadata (~0.5 ADA) and deposit for script reference (up to ~30 ADA), which can be reclaimed after the mint for limited time mints
- blockchain transaction fee to enscribe master art code to the chain (~0.7 ADA) and deposit for MinUTxOAda (variable ~5-50 ADA depending on size)
- for minting art, the following fees exist
- blockchain transaction fee (~0.6 ADA) + MinUTxOAda deposits (~2.5 ADA)
- miner reward fee 1.2 ADA to the miner of the used block. You can mint your own blocks in case you mined yourself to collect this fee.
- only for minting from blocks older than 144 $TUNA-blocks (~ 1 day): a small linearly increasing fee in $TUNA: 0.1 $TUNA/block
how to create art
The artwork is created within a self-contained HTML document, which will be saved on-chain.
To make sure the art is durable and self-contained, no links to external libraries can be used.
(Later standards might allow references to popular graphics libraries which are too big to include on-chain.)
The document will have this structure, with templates provided by 4tuna.art.
┌────────────────────────────────────────────────────────────────────────┐ │HTML template - header │ ├────────────────────────────────────────────────────────────────────────┤ │// Javascript code: pre-defined variables: canvas, context, │ │// r = random number generator initialized from $TUNA block hash │ │ │ │context.width = 1024; │ │context.height = 1024; │ │context.fillStyle = "white"; │ │context.fillRect(0,0,1024,1024); │ │context.fillStyle = rgb(r.i()%256, r.i()%256, r.i()%256); │ │context.fillRect(100,100,824,824); │ ├────────────────────────────────────────────────────────────────────────┤ │HTML template - footer │ └────────────────────────────────────────────────────────────────────────┘
The artist can access the canvas to draw by the variables canvas and context provided by the template.
A pseudo-random number generator r is automatically initialized from the $TUNA block hash and can compute random integers with r.i() and floating-point numbers between a and b with r.f(a, b).