npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

evm-labels

v0.0.3

Published

A public dataset of Etherscan labels

Downloads

111

Readme

Ethereum

| Label | CSV | JSON | Updated | | -------------------------------------------------------------------------------------------------- | ------------------------------------------------ | -------------------------------------------------- | ------------ | | exchange (Centralized Exchanges) | View CSV | View JSON | May 9, 2022 | | phish-hack (Phishing/Hacking) | View CSV | View JSON | May 15, 2022 | | genesis (Null/black hole addresses) | View CSV | View JSON | May 21, 2022 | | token-contract (ERC-20 and similar tokens) | View CSV | View JSON | May 25, 2022 |

More chains coming soon

Install

npm install --save evm-labels

# or with yarn
yarn add evm-labels

Use

You can install the CSV or JSON manually if you are not a dev. If you want to use this in code:

Exchange (CEX's)

import { exchange } from "evm-labels";

// A Coinbase hot wallet
const COINBASE_ADDRESS = "0x71660c4005ba85c37ccec55d0c4493e66fe775d3";
exchange.isExchangeAddress(COINBASE_ADDRESS);
// true

const NULL_ADDRESS = "0x0000000000000000000000000000000000000000";
exchange.isExchangeAddress(NULL_ADDRESS);
// false

Phish/Hack (Addresses that performed phishing or hacks)

import { phishHack } from "evm-labels";

// A Nexus Mutual Hacker
const HACKER_ADDRESS = "0x09923e35f19687a524bbca7d42b92b6748534f25";
phishHack.isPhishHackAddress(HACKER_ADDRESS);
// true

const NULL_ADDRESS = "0x0000000000000000000000000000000000000000";
phishHack.isPhishHackAddress(NULL_ADDRESS);
// false

Genesis

import { genesis } from "evm-labels";

const GENESIS_ADDRESS = "0x0000000000000000000000000000000000000002";
genesis.isGenesisAddress(GENESIS_ADDRESS);
// true

const OATHER_ADDRESS = "0x09923e35f19687a524bbca7d42b92b6748534f25";
genesis.isGenesisAddress(OATHER_ADDRESS);
// false

Token Contract

import { tokenContract } from "evm-labels";

const TOKEN_CONTRACT_ADDRESS = "0x5dd57da40e6866c9fcc34f4b6ddc89f1ba740dfe";
tokenContract.isTokenContractAddress(TOKEN_CONTRACT_ADDRESS);
// true

const OATHER_ADDRESS = "0x0000000000000000000000000000000000000002";
tokenContract.isTokenContractAddress(OATHER_ADDRESS);
// false

Contributing

Each label is currently pulled with custom scripts. Partially documented, partially not.

Phish / Hack addresses

  1. Install tampermonkey
  2. Copy scripts/phishhack-userscript.js to tampermonkey extension
  3. Open the URL https://etherscan.io/accounts/label/phish-hack?subcatid=undefined&size=100&start=0&col=1&order=asc. only support size = 100
  4. Open the chrome dev tools. Copy the outputted csv and json to src/phish-hack

Genesis addresses

  1. Install tampermonkey
  2. Copy scripts/genesis-userscript.js to tampermonkey extension
  3. Open the URL https://etherscan.io/accounts/label/genesis?subcatid=1&size=100&start=0&col=1&order=asc. only support size = 100
  4. Open the chrome dev tools. Copy the outputted csv and json to src/genesis

Token Contract addresses

  1. Install tampermonkey
  2. Copy scripts/tokencontract-userscript.js to tampermonkey extension
  3. Open the URL https://etherscan.io/accounts/label/token-contract?subcatid=undefined&size=100&start=0&col=1&order=asc. only support size = 100
  4. Open the chrome dev tools. Copy the outputted csv and json to src/token-contract