npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

getmefcknabi

v0.1.3

Published

✨ Extract ABIs from any smart contract with minimal hassle - CLI tool with interactive mode to extract ABIs from verified and unverified contracts on any EVM chain

Readme

GetMeFcknABI CLI


🚀 Features

  • 🎯 Extract ABIs from any smart contract address
  • 🛡️ Works with unverified contracts by analyzing their bytecode
  • 🔗 Support for all major EVM chains (Ethereum, Polygon, Arbitrum, Optimism, etc.)
  • 🎨 Interactive mode with guided prompts
  • 📝 Multiple output formats (JSON and TypeScript)
  • 🧩 Custom RPC support for any chain
  • 🎭 Proxy contract resolution to get the implementation ABI
  • 💻 Beautiful terminal UI with colors and animations

📦 Installation

# Install globally
npm install -g getmefcknabi

# Or run directly with npx
npx getmefcknabi --interactive

🔧 Usage

Interactive Mode (Recommended)

The easiest way to use GetMeFcknABI is in interactive mode:

getmefcknabi --interactive

This will guide you through a series of prompts to:

  1. Enter a contract address
  2. Select a blockchain network
  3. Optionally provide a custom RPC URL
  4. Choose an output format (JSON or TypeScript)
  5. Specify a custom output filename (optional)

Command Line Arguments

For scripting or quick use, you can provide all parameters directly:

getmefcknabi -a 0xContractAddress -c 1 -f json

Required Arguments:

  • -a, --address <address> - Smart contract address
  • -c, --chainId <chainId> - Chain ID (e.g., 1 for Ethereum Mainnet)
  • -f, --format <format> - Output format: json or typescript

Optional Arguments:

  • -r, --rpcUrl <url> - Custom RPC URL (will use default if not provided)
  • -o, --output <file> - Output file path (defaults to <address>.<extension>)
  • -q, --quiet - Suppress logs and only output the ABI
  • -i, --interactive - Run in interactive mode
  • -h, --help - Display help information
  • -V, --version - Output the version number

Examples

# Get ABI from Ethereum mainnet contract in JSON format
getmefcknabi -a 0xf08a50178dfcde18524640ea6618a1f965821715 -c 1 -f json

# Get ABI from Polygon using a custom RPC in TypeScript format with custom output path
getmefcknabi -a 0xf08a50178dfcde18524640ea6618a1f965821715 -c 137 -r https://polygon-rpc.com -f typescript -o ./contracts/MyContract.ts

# Run in interactive mode
getmefcknabi --interactive

🌐 Supported Chains

GetMeFcknABI supports all EVM-compatible chains, including:

  • Ethereum Mainnet (1)
  • Ethereum Sepolia (11155111)
  • Polygon (137)
  • Polygon Mumbai (80001)
  • Arbitrum One (42161)
  • Arbitrum Sepolia (421614)
  • Optimism (10)
  • Optimism Sepolia (11155420)
  • Base (8453)
  • Base Sepolia (84532)
  • BNB Smart Chain (56)
  • Avalanche C-Chain (43114)

And any other EVM chain when providing a custom RPC URL and chain ID!

🔍 How It Works

GetMeFcknABI uses a combination of techniques to extract the most complete ABI possible:

  1. Block Explorer APIs - To get verified contract ABIs
  2. Bytecode Analysis - For unverified contracts
  3. 4byte Directory - To resolve function signatures
  4. Proxy Resolution - To handle proxy contracts (EIP-1967, UUPS, etc.)

🤝 Contributing

Contributions are welcome! Feel free to open issues and pull requests.

  1. Fork the repository
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

📄 License

MIT License - see LICENSE for details