NFT minting upon transfer of ether and ownership

When an NFT is sold, are the NFTs pre-minted onto the ethereum blockchain or is it possible to mint an NFT upon purchase? Do you use the await function or do a promise so that ether is transferred to the website’s wallet first before minting and transfer of ownership. Can someone kind and patient enough supply a sample code for this? Thank you!!!

I’ll answer my own question. no can do!

Well you actually can. OpenSea calls it lazy minting, but I’m not sure how they go about it.

One simple idea that comes to mind is that the seller/creator could send a simple, minimal “approve” transaction to the NFT which would allow the buyer to trigger the rest of the minting process, paying for most of the gas.

1 Like