Skip to Content
Mastering Blockchain Programming with Solidity
book

Mastering Blockchain Programming with Solidity

by Jitendra Chittoda
August 2019
Intermediate to advanced
486 pages
13h 52m
English
Packt Publishing
Content preview from Mastering Blockchain Programming with Solidity

ERC721 inherits from ERC165

The ERC721 contract inherits from the ERC165 contract, which contains its implementation. ERC165 also inherits from IERC165, which is the interface definition for ERC165 standard interface detection. The ERC165 contract inheritance is defined as follows:

contract ERC165 is IERC165 {

As we have discussed, ERC165 is used for standard interface detection, meaning that it allows the client application/contract to know whether a particular function is available to call on the contract. The contract defines the following function:

function supportsInterface(bytes4 interfaceId) external view returns (bool)

Using this function, we can pass the first four bytes of the function signature that the caller wants to check whether ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Ethereum

Mastering Ethereum

Andreas M. Antonopoulos, Gavin Wood
Complete Cryptocurrency and Blockchain Course | Learn Solidity

Complete Cryptocurrency and Blockchain Course | Learn Solidity

Ravinder Deol, Codestars By Rob Percival, Thomas Wiesner

Publisher Resources

ISBN: 9781839218262Supplemental Content