Code Monkey home page Code Monkey logo

chainwalker's Introduction

chainwalker

What

ChainWalker is a smart contract scraper which uses RCP/IPC calls to extract the information. A small tool that can help us find contracts, extract the EVM code, and disassemble the opcodes. It allows us to select specific blocks or even specific contract balances.

Features

  • cross-platform
  • concurrent and fast
  • It doesn't require 3rd party API
  • downloads contract EVM
  • disassemble EVM to opcode

Use cases

  • academia: machine learning and data science, sampling contracts
  • cybersecurity: audit companies, threat intel, researchers
  • web3.0 startups: building next dApps, building web3.0 and blockchain specific APIs
  • marketing: unique insights (to make educated guesses)

Usage

Download the artifact for your distro from the release section, execute it and follow the usage guide.

if you want to use EVM downloader (without -p) option make sure you have EVM installed


chainwalker -h
7:50PM INF ChainWalker 1.0.3-alpha - Usage
  -b float
    	minimum balance (default 0)
  -c int
    	concurrency (default 1)
  -d	sets log level to debug
  -e int
    	end block (int) (default 14010000)
  -ev string
    	EVM path (default "/usr/local/bin/evm")
  -h	shows usage
  -o string
    	output directory (default "output/")
  -p	print on console only and do not download or disassemble contracts
  -s int
    	start block (int) (default 14000000)
  -u string
    	RCP/IPC endpoint (default "https://cloudflare-eth.com")

Demo

Extracts contracts with minumum balance of 3 eth

chainwalker

Extracts contracts any balance on given block

chainwalker

without -p option this is what created output will look like

chainwalker

limitation

  • can not directly grab internal contract transactions

Dev

  • clone the repo
go build main.go 

Troubleshooting

If you are using a remote server and the program crashes or gives you an error, here are things you can try.

  • try to lower the concurrency number to as low as 1
  • make sure you didn't hit the API limits of your provider
  • change the node provider
  • change the block numbers
  • go with a smaller block distance (between start and end)
  • make sure output directory exists in same directory as binary
  • better solution : run you own node and connect to IPC using /root/.ethereum/geth.ipc as -u (url)

Credits :

  • eth.wiki
  • core-geth
  • go-Ethereum

chainwalker's People

Contributors

0xsha avatar dependabot[bot] avatar

Watchers

 avatar

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.