⚠️ This is an experiment, use it at your own risk
This library allows to verify whether a smart contract supports an interface or not computing it off-chain.
npm install erc165-offchainconst { bytecodeSatisfies } = require('erc165-offchain')
const ABI = contract.abi
const bytecode = contract.deployedBytecode
return bytecodeSatisfies(bytecode, ABI)const { addressSatisfies } = require('erc165-offchain')
const ABI = contract.abi
const web3 = new Web3(...)
return addressSatisfies(contract.address, web3, ABI)