# README
eof-crawler
Simple CLI tool to scan all accounts in a geth LevelDB for contracts that begin with the EOF prefix.
Usage
- Pass the directory of the Geth DB into the tool
go run ./cmd/eof-crawler/main.go --db-path <db_path> [--out <out_file>]
- Once the indexing has completed, an array of all EOF-prefixed contracts will be written to
eof_contracts.json
or the designated output file.
# Functions
IndexEOFContracts indexes all the EOF contracts in the state trie of the head block for the given db and writes them to a JSON file.