Git Product home page Git Product logo

etherclust's Introduction

etherclust

This repository implements address clustering heuristics for Ethereum with Python 3.

The following is an illustration of addresses clustered in the Bionic token network:

bionic token network The airdrop is at F6, the white circle are recipients that never did anything with their tokens. Surrounding, several entities appear to participate multiple times and aggregate their tokens into a single address. At F14, the HotBit exchange is visible. Deposit addresses belonging to HotBit are visible in E12-F13.

To run, the config.py file needs to be adjusted with appropriate data. Example data of the bionic network is included. To run with more data, you first need to extract blocks, transactions, traces and transfers via https://github.com/blockchain-etl/ethereum-etl

Usage:

โžœ  python etherclust.py -h
usage: etherclust.py [-h] [-P] [-E] [-T] [-A]

optional arguments:
  -h, --help          show this help message and exit
  -P, --prepare       prepare database tables (this has to be run once!)
  -E, --ethdeposit    perform ether deposit address clustering
  -T, --tokendeposit  perform token deposit address clustering
  -A, --airdrop       perform multi-airdrop participation clustering

Prepare the database first and then run the heuristics:

  • python etherclust.py -P
  • python etherclust.py -ETA

Package requirements

The following packages need to be installed alongside Python 3:

  • argparse
  • gc
  • os
  • sys
  • sqlite3
  • pandas
  • tqdm

Test

Before performing any tests, the database should be initialized (-P option)

Run tests with python -m unittest

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.