ERC-721

From WEB3 Vulnerapedia
Jump to navigation Jump to search

Ethereum Request for Comments 721 is a standard that allows the implementation of a standard API for NFTs within smart contracts. It provides basic functionality to track and transfer NFTs.

Technical details

ERC-721 Token Contracts

Methods

    function balanceOf(address _owner) external view returns (uint256);
    function ownerOf(uint256 _tokenId) external view returns (address);
    function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes data) external payable;
    function safeTransferFrom(address _from, address _to, uint256 _tokenId) external payable;
    function transferFrom(address _from, address _to, uint256 _tokenId) external payable;
    function approve(address _approved, uint256 _tokenId) external payable;
    function setApprovalForAll(address _operator, bool _approved) external;
    function getApproved(uint256 _tokenId) external view returns (address);
    function isApprovedForAll(address _owner, address _operator) external view returns (bool);

Events

    event Transfer(address indexed _from, address indexed _to, uint256 indexed _tokenId);
    event Approval(address indexed _owner, address indexed _approved, uint256 indexed _tokenId);
    event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved);

History

Created on 2018-01-24

Authors William Entriken (@fulldecent), Dieter Shirley <dete@axiomzen.co>, Jacob Evans <jacob@dekz.net>, Nastassia Sachs <nastassia.sachs@protonmail.com>

Vulnerabilities

onERC721Receive()

External links

References

https://eips.ethereum.org/EIPS/eip-721

https://ethereum.org/en/developers/docs/standards/tokens/erc-721/