Lab: free tools · size first · stock scanner · crypto scanner · journal

General

ERC-721 NFT Standard

ERC-721 is the Ethereum token standard for non-fungible tokens (NFTs), where each unit has a unique identifier (tokenId) and cannot be swapped one-for-one with any other token. It defines a standard interface for ownership, transfer, and approval of individual digital assets, enabling wallets and marketplaces to support any ERC-721 collection through a single contract interface.

ERC-721 is the original standard for non-fungible tokens on Ethereum. Each token has a unique ID and a single owner, and the contract usually points to metadata describing what the token represents. The token proves ownership on-chain, but the image or file it points to often lives on a server or IPFS. If that storage disappears, the token remains while what it represented may not.

What the standard requires

Every token in an ERC-721 contract has a uint256 ID that never changes, so the contract address plus that ID points at one specific item. The contract must answer two basic questions, how many tokens an address holds and who owns a given token, and it must let the owner move a token. There are two kinds of transfer. safeTransferFrom checks whether the receiver is a contract and, if it is, asks that contract to confirm it can handle NFTs. Plain transferFrom skips the check, and a token sent to a contract that can't handle it can be stuck for good.

Approvals

An owner can approve one address for a single token, or approve an operator for every token they hold with setApprovalForAll. Marketplaces ask for that second kind so they can move a sold item without a fresh signature each time. It's convenient, and it's also a lot of power to hand over. A signature given to a fake marketplace hands an attacker the same blanket control, so checking and cutting old operator approvals is worth doing.

Metadata and where it fits

Names, descriptions and images come from an optional extension. Each token returns a URI, and that URI is allowed to change. Minting and burning aren't part of the standard at all, so each project writes its own rules for them. That's why two ERC-721 collections can behave very differently, and why reading a collection's contract tells you more than its logo does.