concept RES4 in category blockchain

appears as: RES4, RES4, The RES4
Blockchain in Action

This is an excerpt from Manning's book Blockchain in Action.

In the highly popular Cryptokitties (https://www.cryptokitties.co) Dapp, a token (symbol CK) is used to represent a kitty, and the rules for its creation, life cycle, breeding, and so on are written into the immutable Ethereum blockchain and the smart contracts supported by it. At predetermined times, a certain number of new tokens are released and auctioned off to raise new funds. Assets--kitties, in this case--also appreciate or depreciate (value) based on demand and individual characteristics. Every asset is unique; one asset is not the same as the other. The kitties are not interchangeable. So these tokens are also non-fungible.

The Ethereum community designed a fungible and non-fungible token and a standard for each type. ERC20 is the fungible token, and thousands of exchangeable ERC20-compliant cryptocurrencies were deployed. ERC721 is the standard for a non-fungible token, and Cryptokitties, where it originated, made it famous.

interface ERC721 {
function balanceOf(address _owner) external view returns (uint256 balance); 
function ownerOf(uint256 _tokenId) external view returns (address owner); 
function approve(address _to, uint256 _tokenId) external payable; 
function transferFrom(address _from, address _to, uint256 _tokenId) external 
➥ payable; 
function safeTransferFrom(address _from, address _to, uint256 _tokenId) 
➥ external payable;
...}
Figure 9.12 Buy from unapproved account reverted