ERC-721

Standards

परिभाषा

ERC-721 non-fungible tokens (NFTs) का standard है। ERC-20 के विपरीत जहां सभी tokens identical हैं, ERC-721 में हर token unique होता है और एक unique ID से identify होता है। यह digital art, collectibles, in-game items और real estate जैसी unique assets को represent करने के लिए use होता है।

English version

ERC-721 is the standard for non-fungible tokens (NFTs). Unlike ERC-20 where all tokens are identical, in ERC-721 each token is unique and identified by a unique ID. It is used to represent unique assets like digital art, collectibles, in-game items and real estate.

Code Example

interface IERC721 {
    function balanceOf(address owner) external view returns (uint256 balance);
    function ownerOf(uint256 tokenId) external view returns (address owner);
    function safeTransferFrom(address from, address to, uint256 tokenId) external;
    function transferFrom(address from, address to, uint256 tokenId) external;
    function approve(address to, uint256 tokenId) external;
    function getApproved(uint256 tokenId) external view returns (address operator);
    function setApprovalForAll(address operator, bool approved) external;
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

संबंधित शब्द

Solingo पर इस concept को practice करें

ERC-721 को interactive exercises और integrated IDE के साथ master करें।

मुफ्त में शुरू करें