package
0.0.0-20230803065340-eb934a0893fc
Repository: https://github.com/sliceledger-blockchain/slice-ledger.git
Documentation: pkg.go.dev

# README

eof-crawler

Simple CLI tool to scan all accounts in a geth LevelDB for contracts that begin with the EOF prefix.

Usage

  1. Pass the directory of the Geth DB into the tool
go run ./cmd/eof-crawler/main.go --db-path <db_path> [--out <out_file>]
  1. 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.

# Structs

Account represents an account in the state.