mirror of openzeppelin-contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
openzeppelin-contracts/contracts/token/ERC721
Nicolás Venturo 13e113df81 Improve usage of toString 5 years ago
..
ERC721.sol Improve usage of toString 5 years ago
ERC721Burnable.sol Bundle ERC721 extensions into base contract (#2149) 5 years ago
ERC721Holder.sol Migrate Contracts to Solidity v0.6 (#2080) 5 years ago
ERC721Pausable.sol Add missing hook to ERC777, fix relevant documentation (#2191) 5 years ago
IERC721.sol Fix some of the code formatting in docs 5 years ago
IERC721Enumerable.sol Make IERC721 contracts interfaces instead (#2113) 5 years ago
IERC721Metadata.sol Make IERC721 contracts interfaces instead (#2113) 5 years ago
IERC721Receiver.sol Migrate Contracts to Solidity v0.6 (#2080) 5 years ago
README.adoc Update docs (#2168) 5 years ago

README.adoc

= ERC 721

This set of interfaces, contracts, and utilities are all related to the https://eips.ethereum.org/EIPS/eip-721[ERC721 Non-Fungible Token Standard].

TIP: For a walkthrough on how to create an ERC721 token read our xref:ROOT:erc721.adoc[ERC721 guide].

The EIP consists of three interfaces, found here as {IERC721}, {IERC721Metadata}, and {IERC721Enumerable}. Only the first one is required in a contract to be ERC721 compliant. However, all three are implemented in {ERC721}.

Additionally, {IERC721Receiver} can be used to prevent tokens from becoming forever locked in contracts. Imagine sending an in-game item to an exchange address that can't send it back!. When using <<IERC721-safeTransferFrom,`safeTransferFrom`>>, the token contract checks to see that the receiver is an {IERC721Receiver}, which implies that it knows how to handle {ERC721} tokens. If you're writing a contract that needs to receive {ERC721} tokens, you'll want to include this interface.

Finally, some custom extensions are also included:

Additionally there are multiple custom extensions, including:

* designation of addresses that can pause token transfers for all users ({ERC721Pausable}).
* destruction of own tokens ({ERC721Burnable}).

== Core

{{IERC721}}

{{IERC721Metadata}}

{{IERC721Enumerable}}

{{ERC721}}

{{IERC721Receiver}}

== Extensions

{{ERC721Pausable}}

{{ERC721Burnable}}

== Convenience

{{ERC721Holder}}