Skip to content

Brenzee/rs-honeypot-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Honeypot Detector

A command-line interface application designed to analyze ERC20 tokens for potential honeypot characteristics. Implemented in Rust and leveraging the Revm for transaction simulation.

Usage: hp [OPTIONS] <TOKEN>

Arguments:
  <TOKEN>
          ERC20 token address to test

Options:
  -l, --logs
          Enable full logging
  -s, --sender <SENDER>
          Address from which the test will be done
  -r, --rpc-url <RPC_URL>
          The RPC endpoint. If no ETH_RPC_URL is set or no rpc_url is not passed, by default Flashbots RPC URL will be used [env: ETH_RPC_URL=http://192.168.0.212:8545/] [default: https://rpc.flashbots.net/fast]
  -h, --help
          Print help
  -V, --version
          Print version

Installation

  1. Clone the repository
git clone https://github.com/flashbots/honeypot-detector.git
  1. Build the project
cargo build --release
  1. Save the binary to your PATH
sudo mv target/release/hp /usr/local/bin/hp

Features Checklist

  • Honeypot test on Uniswap V2
  • Option to specify sender address
  • Option to enable full logging
  • Honeypot test on Uniswap V3
  • Improved printouts in console
  • More options such as token details (name, symbol, decimals, total supply), choose specific protocol to test against.

About

Honeypot Detector written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages