Skip to content

Base Chain Scanner and Sniper bot using Bun.js, Typescript, and ethers.js with Drizzle and PostgreSQL with Notifications sent to discord

License

Notifications You must be signed in to change notification settings

0xAquaWolf/base-chain-sniper-bot-ts

Repository files navigation

Forks Stars Issues License

Logo

Web3 Base Chain Sniper Bot

Filter out the garbage♻️.
Find the gems 💎.
Land on the moon 🚀

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

mvp-prototype-idea

product-screenshot

Built With

Bun Ethers.js Discord.js TypeScript PostgreSQL Drizzle ORM

Watch me build in public

Daily live on streams on YouTube: https://www.youtube.com/@0xAquaWolf

I have always dreamed about finding a infinite money glitch, making money passively while i'm sleeping, its one of the reasons i learned how to code.

This project endevours to accomplish this goal. If you resonate with that you can contribute to if you would like.

Why i believe in Base Chain

Here's why:

  • I believe that Base Chain (built by Coinbase) will on board and increase user adoption with the Web3 space because they have 115 MAU and they have already onboarded 11.3 Million users https://tokenterminal.com/terminal/projects/base (MAU)

Product Name Screen Shot

  • I see code as leverage, we can deploy bots and run code in the cloud while we are sleeping and potentialy make money from that code

(back to top)

Getting Started

To get a local copy up and running, follow these steps:

Prerequisites

  • local postgreSQL instance

  • Install Bun (a fast JavaScript runtime and package manager)

    curl -fsSL https://bun.sh/install | bash
  • set up postgreSQL with the following creds and make sure to add them to your .env

DB_HOST="localhost"
DB_PORT="5432"
DB_USER="aquawolf" # change to YOUR os username
DB_PASSWORD=""
DB_NAME="base_chain_scanner"

Installation

  1. Get a BaseScan free API Key at https://basescan.org/
  2. Get a Discord Developer free API Key at Discord Developer Portal
  3. Clone the repo
    git clone https://github.com/0xAquaWolf/base-chain-sniper-bot-ts.git
  4. Install NPM packages
    bun install
  5. Enter your APIs & DB Creds inside .env
  • .env needs to be placed inside of ./.env
 DISCORD_BOT_TOKEN="" # Slash Commands Discord bot
 BASE_TOKEN_SNIFFER="" # Discord Bot for blockchain notifications
 BASESCAN_API_TOKEN="" # sign up on basescan to get api key
 STAGING_CHANNEL_ID="" # copy from discord server
 DEBUG="true | false"
 CUSTOM_START_BLOCK="123512352" # for debuging from a block

(back to top)

Usage

  1. bun install

  2. bun run dev

Roadmap

  • setup project
    • open sourced it
    • create a readme
    • added a license
    • create a logo
    • create basic folder structure for project
    • add drizzle support for postgreSQL
    • add drizzle support for postgreSQL
      • setup drizzle kit
      • introspected the current database scheme
  • Create the blockchain scanner for all events
    • New token event
    • addLiquidityETH
    • removeLiquidityETH
  • Save events to the db (postgreSQL)
  • listen db to events
    • send events to discord
      • add new token events
      • addLiqudiityETH
      • removeLiqudiityETH
  • add a 30 sec demo bootstraping the project and it scanning the network

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the GNU General Public License v3.0. See LICENSE for more information.

Contact

Twitter - @0xAquaWolf

Youtube - @0xAquaWolf

Email - aquawolf369

Acknowledgments

These are all of the documentations to the packages that are being used in this project

(back to top)

About

Base Chain Scanner and Sniper bot using Bun.js, Typescript, and ethers.js with Drizzle and PostgreSQL with Notifications sent to discord

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published