Re:NFT projects are just MLMs for tech elites
by mcintyre1994 on Saturday October 02, 2021 @10:58AM
(#28729061)
Ah thankyou! In that course we did write a web frontend that interacts with the contract ABI to mint the NFTs, but we didn’t do the display side. I’m curious how opensea are doing it, because they can display NFTs from my contract without me ever giving them the ABI. Can you go from decompiled contract (like etherscan can generate) -> ABI maybe?
Re:NFT projects are just MLMs for tech elites
by miracle2k on Saturday October 02, 2021 @03:50PM
(#28731464)
When you are implementing an NFT, you are likely implementing either the ERC 721 or the ERC 1155 interfaces; as such, certain standard functions will be available using a standard ABI call.
So OpenSea will just try to call `tokenURI`; if you have implemented the interface correctly, that will succeed, if not, OpenSea will not show a placeholder image.
You can use the URI to store base64 encoded image or svg data, and that is super cool; but will be too expensive for larger images, at which point you will link to an IPFS-hosted url.