verified-solidity-source

0.0.5 • Public • Published

verified-solidity-source

NPM package to fetch the Solidity source for a contract deployed on any EVM chain

Supports:

  • Sourcify
  • Etherscan

Installation

npm install verified-solidity-source

Usage

This package exports a single async function that accepts 2 parameters: contract address and chain id.

The first matching result is returned.

import verifiedSource from 'verified-solidity-source';


const sources = await verifiedSource('0x8644C2B4293923BF60c909171F089f4c5F75474c', 11155111);
// { '<filename>': { content: '<solidity source>' }

See Also

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.52latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.52
0.0.41
0.0.31
0.0.21
0.0.11

Package Sidebar

Install

npm i verified-solidity-source

Weekly Downloads

6

Version

0.0.5

License

MIT

Unpacked Size

6.35 kB

Total Files

10

Last publish

Collaborators

  • numtel