Giter VIP home page Giter VIP logo

pancakeswap_bsc_sniper_bot's Introduction

🚀 BSC Pancakeswap, BiSwap & Mdex Sniper Bot 🚀

Python Version Release Build Status

If support is needed, feel free to contact me on Telegram.

Telegram

Web3 Pancakeswap, BiSwap & Mdex Sniper && Take Profit/StopLose bot written in python3, for V2 and V3 from Uniswap.

Please note the license conditions!

Changelog: Version 3 to Version 4

New Feature: Pancakeswap V3 Support

  • The bot now includes support for Pancakeswap V3 pools.

Improvements:

  • Various performance enhancements and bug fixes to ensure smoother execution.
  • Updated algorithms for better analysis of multiple exchange routes.

The first Binance Smart Chain sniper bot with Honeypot checker!

Install

First of all, you need install Python3+ Run on Android you need Install Termux only from F-Droid works atm.

termux: 
$ pkg install python git cmake 
Debian/Ubuntu: 
$ sudo apt install python3 git cmake gcc
Windows:
You Need to install Visual Studio BuildTools & Python3

Setup your Address and secret key in Settings.json.

Clone Repo:

git clone https://github.com/Trading-Tiger/Pancakeswap_BSC_Sniper_Bot
cd Pancakeswap_BSC_Sniper_Bot

Install Requirements:

python -m pip install -r requirements.txt

Maximize Your Profits with Our Token Launch Solution

Our sniper bot is specifically designed to help you quickly purchase tokens during high-demand events such as token launches and swap enablement. With its lightning-fast speed, the bot is capable of executing trades in a matter of seconds, giving you a competitive edge in securing a significant portion of the new tokens. This powerful tool is designed to buy and sell with BNB to ensure you always get the best return on investment.

Multi Hops for Optimal Results

The tool uses advanced algorithms to analyze multiple exchange routes to find the most efficient path for your swap.

Low Tax Rates

There's a 0.7% tax on the swap amount, but if you hold 1k TIGS, your tax rate drops to an incredibly low 0.2%. This means you can keep more of your profits.

Enjoy a Seamless Swapping Experience

With this tool, you can effortlessly swap your assets for BNB and take advantage of the many benefits it offers. So why wait? Start maximizing your returns today!



Documentations


Start Sniper:

python Sniper.py -t <TOKEN_ADDRESS> -a <AMOUNT> -tx <TXAMOUNT> -hp -wb <BLOCKS WAIT BEFORE BUY> -tp <TAKE PROFIT IN PERCENT> -sl <STOP LOSE IN PERCENT>
python Sniper.py -t 0x34faa80fec0233e045ed4737cc152a71e490e2e3 -a 0.001 -tx 2 -hp  -wb 10 -tp 50
python Sniper.py -t 0x34faa80fec0233e045ed4737cc152a71e490e2e3 --sellonly
python Sniper.py -t 0x34faa80fec0233e045ed4737cc152a71e490e2e3 -a 0.001 --buyonly
python Sniper.py -t 0x34faa80fec0233e045ed4737cc152a71e490e2e3 -tsl 10 -tp 10 -sl 10 -nb

pancakeswap_bsc_sniper_bot's People

Contributors

sevens-w3-lab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pancakeswap_bsc_sniper_bot's Issues

Thanks for ur job! And a little question.

Im sorry, im just started with programming couple month ago, including crypto. I have few questions.

  1. I've just tested this bot, its very good, including bad node and only 5 gwei at transaction, he bought 9 sec after adding liquidity, thats good, but. How can you speed up? Will it be enough to add another node to the settings file, for example, a quickcode?
  2. The bot works through your smart contract. Could this affect the speed of the bot? I'm sorry, it's even nice to give 1% for your work, but it's just interesting. And, if you change the smart contract, then just set up a pancake router?
  3. When I set it to wait for 0 blocks, he bought it only after 3. Can I somehow speed it up?
    Thanks for your job!

web3.exceptions.ContractLogicError: execution reverted: Wrapped forbiden

Hi, I have installed the python version on a VPS with Windows server 2019, I have setup the private KEY and the address to buy, but when I run a command I get the following error:

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

Start BuyOnly, buy now with {self.amountForSnipe}BNB tokens!
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\Pancakeswap_BSC_Sniper_Bot-main\Sniper.py", line 286, in
SniperBot().StartUP()
File "C:\Users\Administrator\Desktop\Pancakeswap_BSC_Sniper_Bot-main\Sniper.py", line 249, in StartUP
print(self.TXN.buy_token()[1])
File "C:\Users\Administrator\Desktop\Pancakeswap_BSC_Sniper_Bot-main\txns.py", line 146, in buy_token
txn.update({ 'gas' : int(self.estimateGas(txn))})
File "C:\Users\Administrator\Desktop\Pancakeswap_BSC_Sniper_Bot-main\txns.py", line 94, in estimateGas
gas = self.w3.eth.estimateGas({
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\web3\eth.py", line 855, in estimate_gas
return self._estimate_gas(transaction, block_identifier)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\web3\module.py", line 57, in caller
result = w3.manager.request_blocking(method_str,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\web3\manager.py", line 198, in request_blocking
return self.formatted_response(response,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\web3\manager.py", line 170, in formatted_response
apply_error_formatters(error_formatters, response)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\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
return c_pipe(data, funcs)
File "cytoolz/functoolz.pyx", line 642, in cytoolz.functoolz.c_pipe
data = func(data)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\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: Wrapped forbiden`

I tried to change any setting but absolutely nothing happens, I tried with different token addresses but always the same problem, I tried to use moralis as rpc but nothing.

I run the command via cmd in the following way:

C: \ Users \ Administrator \ Desktop \ Pancakeswap_BSC_Sniper_Bot-main> py Sniper.py -t 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c -a 0.001 --buyonly

I have tried all available commands but nothing.

I noticed that this problem was mentioned in previous issue requests:

#27

but in my case it has persisted for several hours

Any solutions ?

add quick sell

Hello again, would be nice to see the next feature:
For example, if bot bought the token from start and u chosed to sell with 400% profit, but its cant be true and no time for sell via pancake because presalers can sell it faster, just add the function with fast sell ignoring the 400% setted before profit.
F/E:
--Do u want sell now? (Y/N)
--Y
--Selling
--TX ID:

only a question :)

Hi, I am new to this type of bot (I come from freqtrade, which is a great project). This project catches my attention and I want to congratulate you for the effort you put into it!

I ask you a rookie query :)

1> How do you detect that a token has Liquidity?
2> Why are you waiting for some blocks to buy?

Thank you and keep it up!

Can this bot sell tokens ?

This is not a bug but a query

This bot can only buys token or sells too

Actually I need sell function.. thank u

i got fail

Waiting BlocksHTTPSConnectionPool(host='ishoneypot.trading-tigers.com', port=443): Max retries exceeded with url: /token/0x265f638eab14dd43d80bb71aae3289b1c6d46a3f (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001BC46A90430>: Failed to establish a new connection: [WinError 10060]

what does it mean bro and how to resolve this problem?

"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?

Great Work

I was using it for past 1 month its really good work, I request escape Antibot tokens function and front run function,

Once again great work tigers, people like me non technical still bot functions self explanatory, try solving above request, really you were very professional in answering queries too.

binascii.Error: Non-hexadecimal digit found

[DONE] Liquidity is Added!
Checking Token is Honeypot...
[DONE] Token is NOT a Honeypot!
🌕 await BuyTraceback (most recent call last):
File "Sniper.py", line 264, in
File "Sniper.py", line 255, in StartUP
File "Sniper.py", line 111, in awaitBuy
File "txns.py", line 117, in buy_token
File "eth_utils\decorators.py", line 18, in _wrapper
File "eth_account\account.py", line 727, in sign_transaction
File "eth_utils\decorators.py", line 18, in _wrapper
File "eth_account\account.py", line 250, in from_key
File "eth_utils\decorators.py", line 18, in _wrapper
File "eth_account\account.py", line 774, in _parsePrivateKey
File "hexbytes\main.py", line 23, in new
File "hexbytes_utils.py", line 17, in to_bytes
File "hexbytes_utils.py", line 50, in hexstr_to_bytes
binascii.Error: Non-hexadecimal digit found
[16220] Failed to execute script 'Sniper' due to unhandled exception!

Hey mate, how can I solve this problem, thank you.

A little request

Hello,I am a BSC Bot beginner.I want to know the functions in your contract how to work,but the contract seems to be unauthorized in BSC explorer,so I can't look the your contract code,can you help me?

Feature request

hey mate, we need to be able to scan the bsc automatically and snipe tokens once liquidity is added. pleasseeeeee :)

Newly listed tokens?

As far as I know, sniper bots buy newly listed tokens, but this bot always requires a token address? How do you find a newly listed token to buy (we don't know the address yet until there are transactions to add liquidity?)

Router for Transactions

Hello,

I was reading the code in order to understand and I noticed that there is a wallet (ROUTER) that is doing all the transactions for us: 0xde937d83e62764c1f4809b87d4c8c5779c351fbf

Is that what you mean by "You pay 1% fees on each transaction." ? And how can I use this project in testnet? I know how to configurate, but which router provider should I use in this case?

Thanks in advance

[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

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

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

Wait for liquidity

Hello, I'm using your project and I find it very helpful!

I have a question: before a new listing the liquidity is disabled. So a possible solution would be checking if the token is a honeypot inside a loop? Or the wait for block feature already does this? Thanks in advance

Error when using the latest GUI

jameslim@Jamess-MacBook-Pro ~ % ./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 ??

[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

Trailing Stop Error

Traceback (most recent call last):put: 0.01622485
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\websockets\legacy\protocol.py", line 404, in recv
await asyncio.wait(
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\asyncio\tasks.py", line 413, in wait
return await _wait(fs, timeout, return_when, loop)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\asyncio\tasks.py", line 529, in _wait
await waiter
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\asyncio\tasks.py", line 492, in wait_for
fut.result()
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\Tuan Khairul\Desktop\Pancakeswap_BSC_Sniper_Bot\Sniper.py", line 253, in
SniperBot().StartUP()
File "C:\Users\Tuan Khairul\Desktop\Pancakeswap_BSC_Sniper_Bot\Sniper.py", line 247, in StartUP
self.awaitTrailingStopLoss()
File "C:\Users\Tuan Khairul\Desktop\Pancakeswap_BSC_Sniper_Bot\Sniper.py", line 199, in awaitTrailingStopLoss
LastPrice = float(self.TXN.getOutputfromTokentoBNB() / (10**18))
File "C:\Users\Tuan Khairul\Desktop\Pancakeswap_BSC_Sniper_Bot\txns.py", line 86, in getOutputfromTokentoBNB
int(self.token_contract.functions.balanceOf(self.address).call()),
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\web3\contract.py", line 957, in call
return call_contract_function(
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\web3\contract.py", line 1501, in call_contract_function
return_data = web3.eth.call(
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\web3\module.py", line 57, in caller
result = w3.manager.request_blocking(method_str,
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\web3\manager.py", line 197, in request_blocking
response = self._make_request(method, params)
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\web3\manager.py", line 150, in _make_request
return request_func(method, params)
File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
return self.func(*args, **kwargs)
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\web3\middleware\formatting.py", line 76, in apply_formatters
response = make_request(method, params)
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\web3\middleware\gas_price_strategy.py", line 90, in middleware
return make_request(method, params)
File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
return self.func(*args, **kwargs)
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\web3\middleware\formatting.py", line 74, in apply_formatters
response = make_request(method, formatted_params)
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\web3\middleware\attrdict.py", line 33, in middleware
response = make_request(method, params)
File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
return self.func(*args, **kwargs)
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\web3\middleware\formatting.py", line 74, in apply_formatters
response = make_request(method, formatted_params)
File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
return self.func(*args, **kwargs)
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\web3\middleware\formatting.py", line 74, in apply_formatters
response = make_request(method, formatted_params)
File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
return self.func(*args, **kwargs)
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\web3\middleware\formatting.py", line 74, in apply_formatters
response = make_request(method, formatted_params)
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\web3\middleware\buffered_gas_estimate.py", line 40, in middleware
return make_request(method, params)
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\web3\providers\websocket.py", line 144, in make_request
return future.result()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\concurrent\futures_base.py", line 445, in result
return self.__get_result()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\concurrent\futures_base.py", line 390, in __get_result
raise self._exception
File "C:\Users\Tuan Khairul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\web3\providers\websocket.py", line 130, in coro_make_request
await asyncio.wait_for(
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\asyncio\tasks.py", line 494, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

[ERROR] i have received this exception error

i have received this error but the buying order execution happened

`await BuyTraceback (most recent call last):
File "web3\eth.py", line 674, in wait_for_transaction_receipt
File "web3_utils\transactions.py", line 144, in wait_for_transaction_receipt
File "web3_utils\threads.py", line 89, in sleep
File "web3_utils\threads.py", line 82, in check
web3._utils.threads.Timeout: 120 seconds

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Sniper.py", line 264, in
File "Sniper.py", line 255, in StartUP
File "Sniper.py", line 111, in awaitBuy
File "txns.py", line 123, in buy_token
File "web3_utils\decorators.py", line 51, in wrapper
File "web3\eth.py", line 668, in waitForTransactionReceipt
File "web3\eth.py", line 676, in wait_for_transaction_receipt
web3.exceptions.TimeExhausted: Transaction HexBytes('0xfc30bc687706383290fd3207f4499b572dbf58bexxxxxxxxxxxxxxxx') is not in the chain, after 120 seconds
[3288] Failed to execute script 'Sniper' due to unhandled exception!`

Honeypot

In the honeypot check function, it considers that the contract is a honeypot from how many buy/sell taxes?

Some question

1.For sale token button , can we approve "sell" first then we don't need to wait the approve when we want to sell
2.Can we show the contract token how many Usd value you own it now it's will helpful for sell timing
3.can we using busd to buy token?

Can I promo my Fullnode and vps it's low to 0ms
image

requests.exceptions.HTTPError

If the -tp parameter is used, the connection times out. Can you optimize this problem and retry after the connection times out?

requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://bsc-dataseed.binance.org/

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

Fairlaunch entry

Whats the best settings for a fairlaunch entry, do i have to change gwei and slippage pls inform me

Error during execution

Hello ,

Thank you for this bot Tiger , but I have this problem while the bot is running, does anyone have a solution?

error

Thank you

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?

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

Estimate Gas Error

I had an error about gas estimation below:

"data": txn['data']})

Python37\site-packages\web3\module.py", line 44, in caller
result = w3.manager.request_blocking(method_str, params, error_formatters)
Python37\site-packages\web3\manager.py", line 158, in request_blocking
raise ValueError(response["error"])
ValueError: {'code': -32000, 'message': 'err: insufficient funds for transfer: address 0x10442e208F743911ab5cE501764923DD976aA965 (supplied gas 12510499)'}

Can u help me with this?

My txn:

'chainId' = {int} 56
'from' = {str} '0x10442e208F743911ab5cE501764923DD976aA965'
'gas' = {int} 480000
'gasPrice' = {int} 6000000000
'nonce' = {int} 107
'value' = {int} 1000000000000000000
'to' = {str} '0x7437122D8E2Cf47326cB341bc2C357a3324c14eD'
'data' = {str} '0xab56822b000000000000000000000000f4ed363144981d3a65f42e7d0dc54ff9eef559a1000000000000000000000000000000000000000000000000000000000000000a'

Thank you.

TX **** is not in the chain, after 120 seconds

Often i'm getting a TimeOut issue, cant figure out what it could be. Checked the tx hash, and its indeed not in BSCS

Do you hava a clue or is this just back luck?

`Amount for Buy: 0.03 BNB
Token to Interact : 0x817aea85fa208f499f08276a4340e4e35d50b643
Transaction to send: 1
Amount per transaction : 0.03000000
Await Blocks before buy : 0
Take Profit Percent : 50
Target Output for Take Profit: 0.04500000

[DONE] Liquidity is Added!
Checking Token is Honeypot...
[DONE] Token is NOT a Honeypot!
🚀 await Buy
BUY Hash: 0xdd4ad458434be4885f3130ffcaab3d7e07e24f0ed390400e1abe97b61ab67c12
🚀 await BuyTraceback (most recent call last):
File "web3\eth.py", line 674, in wait_for_transaction_receipt
🌙 await Buy File "web3_utils\transactions.py", line 144, in wait_for_transaction_receipt
File "web3_utils\threads.py", line 89, in sleep
File "web3_utils\threads.py", line 82, in check
web3._utils.threads.Timeout: 120 seconds

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Sniper.py", line 253, in
File "Sniper.py", line 244, in StartUP
File "Sniper.py", line 117, in awaitBuy
File "txns.py", line 106, in buy_token
File "web3_utils\decorators.py", line 51, in wrapper
File "web3\eth.py", line 668, in waitForTransactionReceipt
File "web3\eth.py", line 676, in wait_for_transaction_receipt
web3.exceptions.TimeExhausted: Transaction HexBytes('0xdd4ad458434be4885f3130ffcaab3d7e07e24f0ed390400e1abe97b61ab67c12') is not in the chain, after 120 seconds
[27216] Failed to execute script 'Sniper' due to unhandled exception!`

SellTax - issue

tried running this with 0x42981d0bfbAf196529376EE702F2a9Eb9092fcB5 as token adress, always get buy_tax = 10 and sell tax=100%

i know for a fact that the sell tax is not 100%

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.