Skip to content

facuspagnuolo/erc165-offchain

Repository files navigation

⚠️ This is an experiment, use it at your own risk

ERC165 off-chain

This library allows to verify whether a smart contract supports an interface or not computing it off-chain.

Install

npm install erc165-offchain

Usage

Without a custom Ethereum provider

const { bytecodeSatisfies } = require('erc165-offchain')

const ABI = contract.abi
const bytecode = contract.deployedBytecode

return bytecodeSatisfies(bytecode, ABI)

With a web3 1.x compatible provider

const { addressSatisfies } = require('erc165-offchain')

const ABI = contract.abi
const web3 = new Web3(...)

return addressSatisfies(contract.address, web3, ABI)

About

ERC165 offchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors