0x01ffc9a7
supportsInterface(bytes4)
以太坊 4 字节函数选择器 0x01ffc9a7 (supportsInterface(bytes4)) 详细规范。归属标准:ERC-165,分类:Core Interface Detection。提供 Solidity 接口代码、返回值类型、执行 Gas 估算与 Keccak-256 原生推导。
Solidity 接口声明
function supportsInterface(bytes4 interfaceId) external view returns (bool)
参数 ABI 编码与偏移量规范
| # | 参数类型 | Calldata 偏移量 | 编码规则 |
|---|---|---|---|
| 1 | bytes4 | 0x04 + 00 | ABI 32 字节字对齐补零 |
执行度量与 Keccak-256 原生推导
返回值类型: bool
基准 Gas 预估: 2,100 ~ 4,000 gas (view)
Keccak-256 (supportsInterface(bytes4)):
0x01ffc9a7a5cef8baa21ed3c5c0d7e23accb804b619e9333b597f47a0d84076e2