Skip to main content

NFTs / Collectibles / SOCKS

A lot of people don’t understand what an NFT is. So what is an NFT, here’s some example code of an NFT written in pseudo-python.

class EvansFirstNFT():    def init():        # caller is a keyword that represents who called the function        self.owner = caller
    def transferTo(recipient):        if caller == self.owner:            self.owner = recipient
    def owner():        return self.owner
    def uri():        return "https://ethspring.com/nft/EvansFirstNFT.json"

The code above is deployed to the blockchain. Clearly though, there is a URL to some data that's off-chain on the Eth Spring servers. This metadata has important information such as the title of the NFT, description, and the artwork jpeg. An NFT could modify its code to have that data stored on chain, but the costs are higher so there’s a trade off to be made.

Readings#

The first recommended reading for newbies in the NFT space is The Anatomy of ERC721. They do a good job of explaining what "non-fungible" (the NF in NFT) means.

ERC-721 token standard

ERC-721 tutorial on ethereum.org with Web3.py example

CryptoKitties ERC-721 implementation

Learn how our last mystery smart contract works - CryptoKitties updated their geneScience smart contract, see how the contract works, and try to figure out how they updated it

How to breed AI the Alpacat and seven Alpacat Purrstige Traits 🦙

Nifty.ink (alpha release) - Austin's project, a scaffold-eth build for creating an NFT platform that scales

A beginner's guide to NFTs

NFT Issuance Landscape

Zora

foundation.app

Quests#

  • Buy and breed a CryptoKitty
  • Draw something on nifty.ink and mint the NFT, send it to another address; (Optional) upgrade it to the Ethereum mainnet, and sell it on OpenSea; use your ENS name to sign your artwork for true authenticity
  • (Optional) Purchase an NFT digital asset on OpenSea