erc165-offchain

1.0.0 • Public • Published

ERC165 off-chain

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

Install

npm install --save facuspagnuolo/erc165-offchain#v1.0.0

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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    6
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    6

Package Sidebar

Install

npm i erc165-offchain

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

18 kB

Total Files

10

Last publish

Collaborators

  • facuspagnuolo