IERC165

Standard interface detection for smart contracts

ERC-165introspectiondetectionstandardcompatibility

What is IERC165?

IERC165 defines a standard method for contracts to publish and detect which interfaces they implement. It allows contracts and dapps to check whether a contract supports a specific interface before calling its functions, preventing failed transactions.

Supported chains
EthereumPolygonArbitrumOptimismBaseBNB ChainAvalanche

Key Features

supportsInterface() for capability checking
4-byte interface identifier system
Prevents calls to unsupported functions
Foundation for ERC-721 and ERC-1155

OpenZeppelin Solidity Interfaces

Reference guide to the most important Solidity interfaces from OpenZeppelin Contracts. ERC-20, ERC-721, ERC-1155, vaults, royalties, and more.

View all 14 tools

Build smart contracts visually

Design, test, and deploy Solidity contracts with a visual drag-and-drop editor. No coding experience required.

Start building for free