Skip to content

samuelmanzanera/eth-contract-search

Repository files navigation

eth-contract-search Build Status

NPM

List and query verified Ethereum smart contracts based on etherscan.io

Installation

$ npm install eth-contract-search

Usage

Because Etherscan.io does not provide an CORS endpoint, the package needs to be used on NodeJS application and not browser application

Find a contract name DAO

let ethContractSearch = require('eth-contract-search')
let results = await ethContractSearch.query('DAO')

Return:

{
	"data": [
		{
			"address": "0x00000000000",
			"name": "MyContract",
			"compiler": "v0.4.21",
			"balance": "1 Ether",
			"txCount": "500",
			"verificationDate": "4/19/2018"	
		}
	],
	"pagination": {
		"next": "2",
		"last": "502"
	}
}

Using pagination:

let resultsOnSecondPage = await ethContractSearch.query('DAO', 2)

Licence

MIT

About

List and query verified Ethereum smart contracts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published