Web3 Pancakeswap Sniper bot written in python3

Overview

Pancakeswap_BSC_Sniper_Bot

TradingTigers
Web3 Pancakeswap Sniper bot written in python3, Please note the license conditions!

The first Binance Smart Chain sniper bot with Honeypot checker!

Infos

If you have 100 Tigs on your BSC address, the bot will check for liquidity every 0.1 seconds, if you have less than 100 TIGS then only every 5 seconds!

TradingTigers Token @BSC

Sniper Preview

Download

If you are not familiar with Python please have a look at Releases, there you can download Windows executable.

Setup your Address and secret key in keys.json. Edit your Start_Sniper.bat or Start_fastBuy.bat, insert your Token Address want to Snipe/Buy!

You don't need Administrator rights!

Here are all options:

'-t', '--token', Token for snipe e.g. "-t 0xc87b88aafb95f0b88c3a74fc96344e4bccab6bde"
'-a', '--amount', float, Amount in Bnb to snipe e.g. "-a 0.1"
'-s', '--slippage', default=10, slippage in % "-s 10"
'-tx', '--txamount', default=1, how mutch tx you want to send? It Split your BNB Amount in e.g. "-tx 5"
'-swap', '--swap', default=[1], Witch Swap? e.g. "-swap [1]" for Panackeswap
'-hp', '--honeypot', default=True, check if your token to buy is a Honeypot

Install Python

First of all, you need install Python3+

python3 -m pip install -r requirements.txt

Start Sniper:

python3 Sniper.py -t <TOKEN_ADDRESS> -a <AMOUNT> -s <SLIPPAGE> -tx <TXAMOUNT>
python3 Sniper.py -t 0x34faa80fec0233e045ed4737cc152a71e490e2e3 -a 0.1 -s 20 -tx 3
Comments
  • Lost BNB when sell token

    Lost BNB when sell token

    Hi,

    I had an issue when i sold drace token. My tx: https://bscscan.com/tx/0xb252923423b57f08f93d59f14e3cc001fea272d425735ae3e17adad6892921a3

    What happend for my metamask account?

    opened by cuongnguyengit 16
  • Error in fees estimate

    Error in fees estimate

    hey First of all, amazing job !

    Bot was working just fine, then today I start having this error returned

    Attention, they pay 0.7% fees on each transaction. Start Sniper Tool with following arguments:

    Amount for Buy: 0.001 BNB Token to Interact : 0xdac17f958d2ee523a2206206994597c13d831ec7 Transaction to send: 1 Amount per transaction : 0.00100000 Await Blocks before buy : 0

    Start BuyOnly, buy now with 0.001BNB tokens! Traceback (most recent call last): XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sniper.py", line 222, in SniperBot().StartUP() XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sniper.py", line 196, in StartUP print(self.TXN.buy_token()[1]) XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/txns.py", line 99, in buy_token txn.update({ 'gas' : int(self.estimateGas(txn))}) XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/txns.py", line 65, in estimateGas gas = self.w3.eth.estimateGas({ File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/web3/eth.py", line 759, in estimate_gas return self._estimate_gas(transaction, block_identifier) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/web3/module.py", line 57, in caller result = w3.manager.request_blocking(method_str, File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/web3/manager.py", line 198, in request_blocking return self.formatted_response(response, File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/web3/manager.py", line 170, in formatted_response apply_error_formatters(error_formatters, response) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/web3/manager.py", line 70, in apply_error_formatters formatted_resp = pipe(response, error_formatters) File "cytoolz/functoolz.pyx", line 667, in cytoolz.functoolz.pipe File "cytoolz/functoolz.pyx", line 642, in cytoolz.functoolz.c_pipe File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/web3/_utils/method_formatters.py", line 580, in raise_solidity_error_on_revert raise ContractLogicError('execution reverted') web3.exceptions.ContractLogicError: execution reverted

    It seems some issue with selfEstimate gas

    Anyone else having trouble? Do you have any idea what's wrong ? I haven't touched any parameter such as gas price or MaxTax

    Cheers A

    opened by CryptoDoe 6
  • sell error

    sell error

    token: 0x141df21e93460216Fe0692e756927118CE4c65BE error logs:

    Traceback (most recent call last):
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/Sniper.py", line 264, in <module>
        SniperBot().StartUP()
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/Sniper.py", line 219, in StartUP
        print(self.TXN.sell_tokens()[1])
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/txns.py", line 173, in sell_tokens
        txn.update({ 'gas' : int(self.estimateGas(txn))})
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/txns.py", line 78, in estimateGas
        gas = self.w3.eth.estimateGas({
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/eth.py", line 759, in estimate_gas
        return self._estimate_gas(transaction, block_identifier)
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/module.py", line 57, in caller
        result = w3.manager.request_blocking(method_str,
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/manager.py", line 198, in request_blocking
        return self.formatted_response(response,
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/manager.py", line 170, in formatted_response
        apply_error_formatters(error_formatters, response)
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/manager.py", line 70, in apply_error_formatters
        formatted_resp = pipe(response, error_formatters)
      File "cytoolz/functoolz.pyx", line 667, in cytoolz.functoolz.pipe
      File "cytoolz/functoolz.pyx", line 642, in cytoolz.functoolz.c_pipe
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/_utils/method_formatters.py", line 576, in raise_solidity_error_on_revert
        raise ContractLogicError(response['error']['message'])
    web3.exceptions.ContractLogicError: execution reverted: TransferHelper: TRANSFER_FROM_FAILED
    
    opened by internalsync 4
  • sell error

    sell error

    I sell I my token to remind you of the error。 I'm using the latest version

    Traceback (most recent call last):
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/Sniper.py", line 264, in <module>
        SniperBot().StartUP()
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/Sniper.py", line 219, in StartUP
        print(self.TXN.sell_tokens()[1])
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/txns.py", line 173, in sell_tokens
        txn.update({ 'gas' : int(self.estimateGas(txn))})
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/txns.py", line 78, in estimateGas
        gas = self.w3.eth.estimateGas({
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/eth.py", line 759, in estimate_gas
        return self._estimate_gas(transaction, block_identifier)
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/module.py", line 57, in caller
        result = w3.manager.request_blocking(method_str,
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/manager.py", line 198, in request_blocking
        return self.formatted_response(response,
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/manager.py", line 170, in formatted_response
        apply_error_formatters(error_formatters, response)
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/manager.py", line 70, in apply_error_formatters
        formatted_resp = pipe(response, error_formatters)
      File "cytoolz/functoolz.pyx", line 667, in cytoolz.functoolz.pipe
      File "cytoolz/functoolz.pyx", line 642, in cytoolz.functoolz.c_pipe
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/_utils/method_formatters.py", line 576, in raise_solidity_error_on_revert
        raise ContractLogicError(response['error']['message'])
    web3.exceptions.ContractLogicError: execution reverted: TransferHelper: TRANSFER_FROM_FAILED
    
    opened by internalsync 4
  • Auto check Liquidity busd or bnb

    Auto check Liquidity busd or bnb

    I got rektt today Because dev add liquidity in busd and bnb but he put only $2 bnb.

    Hope in the future this bot can check Liquidity first whether busd or bnb. If in bnb but less than 100 bnb for example, bot stop automatically.

    Thank you

    opened by ariffinhamzah 4
  • This contract is not verified and it should be.

    This contract is not verified and it should be.

    This contract is not verified and it should be. everyone should know what it does. ** swapper_address = Web3.toChecksumAddress("0x18be7f977Ec1217B71D0C134FBCFF36Ea4366fCD")

    opened by iv7dev 3
  • Token lost to your contract

    Token lost to your contract

    Hi, I run your program, but only sent my token to your contract address and no later liquidity transaction reward, can you confirm? I need my token back

    image image
    opened by hhhwrld 3
  • Error when selling

    Error when selling

    Token: 0x156df0dd6300c73ac692d805720967cf4464776e web3.exceptions.ContractLogicError: execution reverted: TransferHelper: TRANSFER_FROM_FAILED

    When I set max gas to 1.000.000 and remove line txn.update({ 'gas' : int(self.estimateGas(txn))}), it generated tx, but still failed: https://bscscan.com/tx/0xb880fe3a267069c793be48155c9d4cfcdcc063f963793d0b53142c9bf075e378

    I tried increasing selltax, slippage, but not ok Manually swap on pancakeswap is good.

    opened by xDevilz 3
  • "Sell all tokens" is malfunctioning and lost my BNB

    Hi! Great job on the bot so please don't take this the wrong way but i tried selling all of my tokens i previously purchased. I tried the bot buy feature and it works fine, but the "Sell all tokens" lost my BNB.

    I purchased this token during a pre-sale 0xef9e0b75e78c3398329595b8d33b0636b0055455 - I wanted to use your bot to sell all tokens fast and all at once so i pressed the button and it said Successful but then i noticed that the BNB disappeared from my wallet.

    Here's the tx for the transaction that was made when i wanted to sell all tokens - https://bscscan.com/tx/0xf8d956b6f38ec7353ce9e38ec122fdfac61989202759a90659f02727f2274009 My BSC address that was used for the bot - 0x54D0fa1FD92155E858d42376bD07B52f0272dfCa

    You can see I didn't transfer those BNBs anywhere, but they're gone from my account.

    Can you help me?

    opened by syphlect 3
  • How to compute the total of fee in one transaction?

    How to compute the total of fee in one transaction?

    Many thanks for your project.

    I try to explore some documents about transaction fees but I had troubles. I can't compute the total fee for each transaction. Can you explain for me?

    Thank you.

    opened by cuongnguyengit 3
  • Self hosting the HoneyPot checker

    Self hosting the HoneyPot checker

    Hello,

    Another question, I'm getting a timeout on the honeypot checker. I see you are hosting that honeypot checker yourself.

    For reliabilty is it possible we can host that honeypot checker ourselves?

    opened by timvanuum 3
  • A quick question around Honeypot Checker...

    A quick question around Honeypot Checker...

    Hi, great app but I do have a quick question.

    In the honeypot check section, the call to the getTokenInformations contract returns an array. The values in index 5 and 6 are boolean and if they are both True then it's a honeypot.

    My question: what is index 5 checking for? Also, what is index 6 checking for?

    I don't really want to know the code, all I want to know what is it checking in those indexes.

    Thanks!

    opened by furritos 1
  • Error when using the latest GUI

    Error when using the latest GUI

    [email protected] ~ % ./Pancakeswap_BSC_Sniper_Bot/Sniper.app -t 0xc98a8ec7a07f1b743e86896a52434c4c6a0dbc42 -a 0.001 --buyonly Traceback (most recent call last): File "Sniper.py", line 316, in File "Sniper.py", line 40, in init File "Sniper.py", line 44, in loadSettings FileNotFoundError: [Errno 2] No such file or directory: 'Settings.json' [1634] Failed to execute script Sniper

    I got this error even though i do not change the name of the file.

    Any idea how to fix this ??

    opened by limjame28 0
  • [REQUEST] Transaction Log

    [REQUEST] Transaction Log

    Hi,

    can we have log files? like transaction.log - > all the successful transaction that bot run. errors.log - > error that occur when bot run etc

    Thank you

    opened by ariffinhamzah 0
  • [request] add front-running feature to sell before rug-pull

    [request] add front-running feature to sell before rug-pull

    Hello, it would be nice to implement an enhanced check when the script has completed the buy transaction and it's waiting for the take profit. The bot should scan all the pending transaction and, if a removeLiquidity | changeFees method is being called, the bot should immediately front-run that transaction by sending a sell order with higher gwei. Thanks for your effort

    opened by gabrieleginestroni 5
Releases(V2.2)
Owner
Treading-Tigers
Seven, DEV & CEO of TIGS
Treading-Tigers
for those who dont want to pay $10/month for high school game footage with ads

nfhs-scraper Disclaimer: I am in no way responsible for what you choose to do with this script and guide. I do not endorse avoiding paywalls or any il

Conrad Crawford 5 Apr 12, 2022
Script for scrape user data like "id,username,fullname,followers,tweets .. etc" by Twitter's search engine .

TwitterScraper Script for scrape user data like "id,username,fullname,followers,tweets .. etc" by Twitter's search engine . Screenshot Data Users Only

Remax Alghamdi 19 Nov 17, 2022
Scraping Top Repositories for Topics on GitHub,

0.-Webscrapping-using-python Scraping Top Repositories for Topics on GitHub, Web scraping is the process of extracting and parsing data from websites

Dev Aravind D Satprem 2 Mar 18, 2022
Web scraper build using python.

Web Scraper This project is made in pyhthon. It took some info. from website list then add them into data.json file. The dependencies used are: reques

Shashwat Harsh 2 Jul 22, 2022
河南工业大学 完美校园 自动校外打卡

HAUT-checkin 河南工业大学自动校外打卡 由于github actions存在明显延迟,建议直接使用腾讯云函数 特点 多人打卡 使用简单,仅需账号密码以及用于微信推送的uid 自动获取上一次打卡信息用于打卡 向所有成员微信单独推送打卡状态 完美校园服务器繁忙时造成打卡失败会自动重新打卡

36 Oct 27, 2022
Telegram Group Scrapper

this programe is make your work so much easy on telegrame. do you want to send messages on everyone to your group or others group. use this script it will do your work automatically with one click. a

HackArrOw 3 Dec 03, 2022
Auto Join: A GitHub action script to automatically invite everyone to the organization who star your repository.

Auto Invite To The Organization By Star A GitHub Action script to automatically invite everyone to your organization that stars your repository. What

Max Base 11 Dec 11, 2022
京东云无线宝积分推送,支持查看多设备积分使用情况

JDRouterPush 项目简介 本项目调用京东云无线宝API,可每天定时推送积分收益情况,帮助你更好的观察主要信息 更新日志 2021-03-02: 查询绑定的京东账户 通知排版优化 脚本检测更新 支持Server酱Turbo版 2021-02-25: 实现多设备查询 查询今

雷疯 199 Dec 12, 2022
Pro Football Reference Game Data Webscraper

Pro Football Reference Game Data Webscraper Code Copyright Yeetzsche This is a simple Pro Football Reference Webscraper that can either collect all ga

6 Dec 21, 2022
Semplice scraper realizzato in Python tramite la libreria BeautifulSoup

Semplice scraper realizzato in Python tramite la libreria BeautifulSoup

2 Nov 22, 2021
SearchifyX, predecessor to Searchify, is a fast Quizlet, Quizizz, and Brainly webscraper with various stealth features.

SearchifyX SearchifyX, predecessor to Searchify, is a fast Quizlet, Quizizz, and Brainly webscraper with various stealth features. SearchifyX lets you

28 Dec 20, 2022
Crawl the information of a given keyword on Google search engine

Crawl the information of a given keyword on Google search engine

4 Nov 09, 2022
a high-performance, lightweight and human friendly serving engine for scrapy

a high-performance, lightweight and human friendly serving engine for scrapy

Speakol Ads 30 Mar 01, 2022
A package that provides you Latest Cyber/Hacker News from website using Web-Scraping.

cybernews A package that provides you Latest Cyber/Hacker News from website using Web-Scraping. Latest Cyber/Hacker News Using Webscraping Developed b

Hitesh Rana 4 Jun 02, 2022
TikTok Username Swapper/Claimer/etc

TikTok-Turbo TikTok Username Swapper/Claimer/etc I wanted to create it as fast as possible but i eventually gave up and recoded it many many many many

Kevin 12 Dec 19, 2022
Parsel lets you extract data from XML/HTML documents using XPath or CSS selectors

Parsel Parsel is a BSD-licensed Python library to extract and remove data from HTML and XML using XPath and CSS selectors, optionally combined with re

Scrapy project 859 Dec 29, 2022
This is a web crawler that works on employ email data by gmane.org and visualizes it in different ways.

crawler_to_visual_gmane Analyzing an EMAIL Archive from gmane and vizualizing the data using the D3 JavaScript library. This is a set of tools that al

Saim Zafar 1 Dec 20, 2021
Python script for crawling ResearchGate.net papers✨⭐️📎

ResearchGate Crawler Python script for crawling ResearchGate.net papers About the script This code start crawling process by urls in start.txt and giv

Mohammad Sadegh Salimi 4 Aug 30, 2022
Scrapy, a fast high-level web crawling & scraping framework for Python.

Scrapy Overview Scrapy is a fast high-level web crawling and web scraping framework, used to crawl websites and extract structured data from their pag

Scrapy project 45.5k Jan 07, 2023
Find papers by keywords and venues. Then download it automatically

paper finder Find papers by keywords and venues. Then download it automatically. How to use this? Search CLI python search.py -k "knowledge tracing,kn

Jiahao Chen (TabChen) 2 Dec 15, 2022