Git Product home page Git Product logo

blockchaintokensniper's People

Contributors

bytephoenixcoding avatar fabifighter007 avatar gcvanasel avatar geeks121 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blockchaintokensniper's Issues

ERROR - Buytoken error, please notify dev

Version 1.3
OS: Windows
Python Version 3.9
Sample token with error : EmpireDEX (EMPIRE): 0xc83859C413a6bA5ca1620cD876c7E33a232c1C34

Every token that passes the mini audit is failing with this error:

[ERROR] buyToken error, please notify dev:
Traceback (most recent call last):
  File "BSCTokenSniper.py", line 353, in Buy
TypeError: can only concatenate str (not "float") to str

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "BSCTokenSniper.py", line 359, in Buy
TypeError: can only concatenate str (not "TypeError") to str

Config settings (excluded personal settings such as API / Wallet address etc

 "amountToSpendPerSnipe": "0.00025",
   "transactionRevertTimeSeconds": "10000",
   "gasAmount": "250000",
   "gasPrice": "5",
   "liquidityPairAddress": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
   "antiBotDelay": "10",
   "minLiquidityAmount": "0.1",
   "autoSell": "True",
   "autoSellTakeProfitMultiplier": "1.51",
   "approveSellTimeDelay": "10",
   "observeOnly": "False",
   "checkSourceCode": "True",
   "checkHoneypot": "True",
   "checkForTest": "True"

SUGGESTION about LP addresses

is it possible to add the other styles of pcs V2 as the sniper over looks the other address for v2 LP

  1. 0x10ED43C718714eb63d5aA57B78B54704E256024E
  2. 0x10ed43c718714eb63d5aa57b78b54704e256024e~~~~~~ This one gets overlooked as it doesnt match the code in the json file

v1.1 Specifictokensniper

Good day,

Thanks for the awesome project!

I'm having an issue with the specific token sniper.

I'm currently trying to test it with an already established token. I enter the token address to search and all it says is "searching for token liquidity event" - Nothing happens after that...no errors...

Any idea as to what I could be doing wrong?

[FEATURE REQUEST] Add Some Feature

Features :

  • Take Profit / Stop loss
  • Trailing stop
  • Twitter Scraper
  • Simulated transaction mode
  • Tax checker
  • Multiwallet
  • Sniper liquidity
  • Sniper liquidity after DxSale
  • Sniper antibot tokens
  • Sniper Telegram
  • Trading mode / Pump bot mode
  • Auto Approve tokens
  • Price/Profit live stream
  • Take Profit / Stop Loss
  • Trailing stop
  • Sell in instant with hotkeys
  • Rebuy dip
  • Simulated transactions mode to avoid loss of gas
  • Rug SHIELD
  • Honeypot SHIELD
  • High tax SHIELD
  • Support PancakeSwap / ApeSwap / Uniswap / Koffeeswap

at 1.3 mini audit success

[ERROR] buyToken error, please notify dev:
Traceback (most recent call last):
File "BSCTokenSniper.py", line 353, in Buy
TypeError: can only concatenate str (not "float") to str

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "BSCTokenSniper.py", line 359, in Buy
TypeError: can only concatenate str (not "TypeError") to str

SpecifiedTokenSniper 1.1

I have a request, could you make so that the bot could buy specific token without checking liquidity?

You just enter token address and it buys the tokens for specified amount of BNB.

Would really appreciate it!

Everything works except the buying part

Thanks for this cool bot! 👍
Every 20 minutes or so a token passes the mini audit so I know it works.
But every time the transaction fails. Tried it on different platforms and with different gas prices and limits.
Should I have BNB or BSC or WBNB in my wallet?
Also should the bsc api key be connected to the wallet?

thanks a lot in advance

SpecifiedTokenSniper

Hey there, I get an error when running the above .py
\specifiedTokenSniper.py", line 267
if (tokenAddress = targetContractAddress):


I then edit the code to a double ==
and run it again but then I get that the json file is not configured correctly(Even though I double checked everything)

feature : anti rug and can't sell

Anti rug scan and can't sell tester.

buy with small amount and try sell the token, if token succesfully sell,, then buy with big amount of bnb / busd

[QUESTIONS] For anyone who has tried and tested the bot:

Question for everyone who has tried and tested the bot:

1.) Is the bot affected by the tax system most of these meme coins have built-in their smart contracts?

2.) I assume the bot is not affected by slippage since it's almost instant, however, some meme coins would specify minimum slippage eg 12% or so. Is the bot affected by this?

Also if you could help me with this inquiry on Stackflow, I'd really appreciate it https://stackoverflow.com/questions/68899410/check-if-wallet-is-approved-to-spend-token

Insights will be very much appreciated, thanks!

Liquidity

Question, does anyone know if there is a way to check if there is an swap pair with an token with enough Liquidity to swap back when the script have buy some tokens.

V1.3 Specific Sniper fix

Update Config to add the missing keys
{ "pancakeSwapRouterAddress": "0x10ED43C718714eb63d5aA57B78B54704E256024E", "pancakeSwapFactoryAddress": "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73", "walletAddress": "", "walletPrivateKey": "", "bscNode": "", "amountToSpendPerSnipe": "0.00025", "transactionRevertTimeSeconds": "10000", "gasAmount": "250000", "gasPrice": "5", "bscScanAPIKey": "", "liquidityPairAddress": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c", "antiBotDelay": "5", "checkSourceCode": "True", "checkValidPancakeV2": "True", "checkMintFunction": "True", "checkHoneypot": "True", "checkPancakeV1Router": "True", "checkForTest": "True" }

update specifiedTokenSniper.py to include the definitions for audit checks that were missing
pancakeSwapRouterAddress = configData['pancakeSwapRouterAddress'] #load config data from JSON file into program pancakeSwapFactoryAddress = configData['pancakeSwapFactoryAddress'] walletAddress = configData['walletAddress'] walletPrivateKey = configData['walletPrivateKey'] #private key is kept safe and only used in the program bscNode = configData['bscNode'] checkValidPancakeV2 = configData['checkValidPancakeV2'] snipeBNBAmount = float(configData['amountToSpendPerSnipe']) transactionRevertTime = int(configData['transactionRevertTimeSeconds']) #number of seconds after transaction processes to cancel it if it hasn't completed gasAmount = int(configData['gasAmount']) gasPrice = int(configData['gasPrice']) bscScanAPIKey = configData['bscScanAPIKey'] liquidityPairAddress = configData['liquidityPairAddress'] checkSourceCode = configData['checkSourceCode'] antiBotDelay = float(configData['antiBotDelay'])

Fix line 268 to have two == instead of 1 =

if (tokenAddress == targetContractAddress):

no module web3 found

i have installed web3 with npm and pip but its say no module web3 found, how to fix it

ERROR - tokenLoop error, please notify dev

I let v1.3 run through the night. No issues before I went to bed, but I woke up to this error:
[ERROR] tokenLoop error, please notify dev:
Traceback (most recent call last):
File "BSCTokenSniper.py", line 596, in tokenLoop
File "C:\Users\xxxxx\AppData\Roaming\Python\Python39\site-packages\web3_utils\filters.py", line 160, in get_new_entries
log_entries = self._filter_valid_entries(self.eth_module.get_filter_changes(self.filter_id))
File "C:\Users\xxxxx\AppData\Roaming\Python\Python39\site-packages\web3\module.py", line 57, in caller
result = w3.manager.request_blocking(method_str,
File "C:\Users\xxxxx\AppData\Roaming\Python\Python39\site-packages\web3\manager.py", line 187, in request_blocking
return self.formatted_response(response,
File "C:\Users\xxxxx\AppData\Roaming\Python\Python39\site-packages\web3\manager.py", line 168, in formatted_response
raise ValueError(response["error"])
ValueError: {'code': -32000, 'message': 'filter not found'}

My adjusted settings were:
"amountToSpendPerSnipe": "0.002",
"minLiquidityAmount": "1",
"autoSellTakeProfitMultiplier": "2",
"approveSellTimeDelay": "15",

[SSL: CERTIFICATE_VERIFY_FAILED]

Im trying to use a BSC node from Quicknode, but im getting this message when starting the bot:

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1129)

It works fine when using the node provided by you

buyToken error, please notify dev?

Hey team love the work! the buy function is throwing this error:

[ERROR] buyToken error, please notify dev:
Traceback (most recent call last):
File "BSCTokenSniper.py", line 356, in Buy
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\eth_utils\decorators.py", line 18, in _wrapper
return self.method(obj, *args, **kwargs)
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\eth_account\account.py", line 727, in sign_transaction
account = self.from_key(private_key)
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\eth_utils\decorators.py", line 18, in _wrapper
return self.method(obj, *args, **kwargs)
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\eth_account\account.py", line 250, in from_key
key = self._parsePrivateKey(private_key)
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\eth_utils\decorators.py", line 18, in _wrapper
return self.method(obj, *args, **kwargs)
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\eth_account\account.py", line 774, in _parsePrivateKey
return self._keys.PrivateKey(HexBytes(key))
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\hexbytes\main.py", line 23, in new
bytesval = to_bytes(val)
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\hexbytes_utils.py", line 17, in to_bytes
return hexstr_to_bytes(val)
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\hexbytes_utils.py", line 50, in hexstr_to_bytes
return binascii.unhexlify(ascii_hex)
binascii.Error: Non-hexadecimal digit found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "BSCTokenSniper.py", line 359, in Buy
TypeError: can only concatenate str (not "Error") to str

Opens and closes

Hi, I have tried everything you suggested and I still cannot get this to work. Are there any fixes?
Or does anyone know a way round this please?

Honeypot code needs updating

Take a recently added contract as an example: 0xe4B473c657120ebc91586c335ad9E5aF203F2dC3
Look at the transfer and approve functions.

I see more complex code poping up to bypass honeypot identification bots.

Let me know if you would like to collab in finding a way to be optimal in finding the 1% of tokens that are not scams

How does the Honeypot detection works and avoid false positive ?

Hi guys, nice work with this so far, it helped me so much to dev my own tools

BTW I have a question regarding the honeypot detection and false positives. How does the following code makes the contract a Honeypot ? It's looks pretty legit in some contract source code I readed...

function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool)

and same for

function _approve(address owner, address spender, uint256 amount) internal

What is "newun" ?

Regards

V1.3 error and other problems

Hi,
Thank you for this interesting code. I managed to launch v1.3 through anaconda but now I am getting a bad magic number error even though I am sure I did not before? Do you know a work around for this or should we just wait for the version you will be uploading shortly?
Also with v1.2 and others it seems to run for a bit and just stop - the program is running but no new tokens are sourced? I usually close and reopen if that happens and it starts working against n so maybe I'm being impatient.
Lastly, the telegram group isn't working. Would be good to chat on there about this.
Thanks

web3 issue

i keep getting BSCTokenSniper-main\BSCTokenSniper.py", line 3, in
from web3 import web3
ModuleNotFoundError: No module named 'web3'

Error

Anyone getting this error when trying to run python3 BSCTokenSniper.py on Mac?

BSCTokenSniper/BSCTokenSniper.py", line 40, in
ctypes.windll.kernel32.SetConsoleTitleW("BSCTokenSniper | Loading...")
AttributeError: module 'ctypes' has no attribute 'windll'

Issues and Suggestions

Great project btw ! Thanks for open sourcing this.

  • This should be OS agnostic. Right now it is windows based.
  • After a while it looks like the token parsers just hangs and doesn't pick up new tokens
  • Source code verification could have an option to scan again maybe a small delay or retry as sometimes it take a bit for it to show up
  • Have an option to watch for a specific contract only vs parsing all new token releases.
  • Mini audit check could possibly use a regex system help clean that up and make adding new checks easier.

I am swamped with other projects but when I have time I can help contribute. Great work btw in getting this out to the community !!!

server reject websocket

On Ubuntu 20.04.2 LTS, running v1.2 I get:

BSCTokenSniper | Loading...Traceback (most recent call last): File "BSCTokenSniper.py", line 100, in <module> if web3.isConnected(): File "/home/jose/.local/lib/python3.8/site-packages/web3/main.py", line 327, in isConnected return self.provider.isConnected() File "/home/jose/.local/lib/python3.8/site-packages/web3/providers/base.py", line 103, in isConnected response = self.make_request(RPCEndpoint('web3_clientVersion'), []) File "/home/jose/.local/lib/python3.8/site-packages/web3/providers/websocket.py", line 144, in make_request return future.result() File "/usr/lib/python3.8/concurrent/futures/_base.py", line 444, in result return self.__get_result() File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result raise self._exception File "/home/jose/.local/lib/python3.8/site-packages/web3/providers/websocket.py", line 124, in coro_make_request async with self.conn as conn: File "/home/jose/.local/lib/python3.8/site-packages/web3/providers/websocket.py", line 72, in __aenter__ self.ws = await connect( File "/home/jose/.local/lib/python3.8/site-packages/websockets/legacy/client.py", line 629, in __await_impl__ await protocol.handshake( File "/home/jose/.local/lib/python3.8/site-packages/websockets/legacy/client.py", line 388, in handshake raise InvalidStatusCode(status_code) websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 503

Fail during run

Hello,

I'm running the script, but after a while I get the next error when it's going to made a swap:

[FAIL] Contract source code isn't verified

What is this for failure and how can I solve this problem?

foundToken error

Description: Error is triggered when trying to monitor a token to autosell when it is already monitoring another token to sell.

Error:
[16:08:53.676] [Token] New potential token detected: ThankYouElon (thankyouelon.fun): 0x843E7471B8AF7Cce4f37D7A9Bf465bBB70B43CA6
[16:08:54.507] [Token] Liquidity amount: 0.25BNB
[16:08:54.513] [Token] Starting Mini Audit...
[16:08:55.587] [Token] RugDoc Pass
[16:08:55.593] [SUCCESS] Token has passed mini audit.
[16:08:57.355] [BUY] Successfully bought $thankyouelon.fun for 0.0019 BNB - TX ID: 0xe61b7c548140a68354671730a19dedcd35cd6e8b7d4ffc4fe21888ac0a7e26c0
[16:08:57.627] [SELL] Monitoring $thankyouelon.fun and selling at 2.01x original price.
[ERROR] foundToken error, please notify dev:
Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\threading.py", line 973, in _bootstrap_inner
self.run()
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "BSCTokenSniper.py", line 281, in monitor_and_sell
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\contract.py", line 957, in call
return call_contract_function(
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\contract.py", line 1501, in call_contract_function
return_data = web3.eth.call(
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\module.py", line 57, in caller
result = w3.manager.request_blocking(method_str,
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\manager.py", line 186, in request_blocking
response = self._make_request(method, params)
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\manager.py", line 147, in _make_request
return request_func(method, params)
File "cytoolz\functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\middleware\formatting.py", line 76, in apply_formatters
Traceback (most recent call last):
File "BSCTokenSniper.py", line 546, in foundToken
File "BSCTokenSniper.py", line 240, in approve_token_for_sell
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\contract.py", line 957, in call
return call_contract_function(
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\contract.py", line 1501, in call_contract_function
return_data = web3.eth.call(
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\module.py", line 57, in caller
result = w3.manager.request_blocking(method_str,
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\manager.py", line 186, in request_blocking
response = self._make_request(method, params)
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\manager.py", line 147, in _make_request
return request_func(method, params)
File "cytoolz\functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\middleware\formatting.py", line 76, in apply_formatters
response = make_request(method, params)
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\middleware\gas_price_strategy.py", line 84, in middleware
return make_request(method, params)
File "cytoolz\functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\middleware\formatting.py", line 74, in apply_formatters
response = make_request(method, formatted_params)
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\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
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\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
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\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
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\middleware\formatting.py", line 74, in apply_formatters
response = make_request(method, formatted_params)
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\middleware\buffered_gas_estimate.py", line 40, in middleware
return make_request(method, params)
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\providers\websocket.py", line 144, in make_request
return future.result()
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\concurrent\futures_base.py", line 445, in result
return self.__get_result()
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\concurrent\futures_base.py", line 390, in __get_result
raise self._exception
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\providers\websocket.py", line 130, in coro_make_request
await asyncio.wait_for(
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\asyncio\tasks.py", line 481, in wait_for
return fut.result()
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\protocol.py", line 385, in recv
raise RuntimeError(
RuntimeError: cannot call recv while another coroutine is already waiting for the next message

response = make_request(method, params)
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\middleware\gas_price_strategy.py", line 84, in middleware
return make_request(method, params)
File "cytoolz\functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\middleware\formatting.py", line 74, in apply_formatters
response = make_request(method, formatted_params)
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\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
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\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
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\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
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\middleware\formatting.py", line 74, in apply_formatters
response = make_request(method, formatted_params)
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\middleware\buffered_gas_estimate.py", line 40, in middleware
return make_request(method, params)
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\providers\websocket.py", line 144, in make_request
return future.result()
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\concurrent\futures_base.py", line 445, in result
return self.__get_result()
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\concurrent\futures_base.py", line 390, in __get_result
raise self._exception
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\providers\websocket.py", line 125, in coro_make_request
await asyncio.wait_for(
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\asyncio\tasks.py", line 481, in wait_for
return fut.result()
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\protocol.py", line 471, in send
await self.ensure_open()
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\protocol.py", line 735, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: code = 1000 (OK), no reason

lp checker section

hi dev
Can you add lp checker section ? for example : i wanna buy 0.5 added to lq tokens . I hope u understand me . Thanks

Buy is working fine but selling got issue, can you please fix soon, Thank You

[ERROR] foundToken error, please notify dev:
Exception in thread Thread-4:
Traceback (most recent call last):
  File "C:\Python39\lib\threading.py", line 973, in _bootstrap_inner
    self.run()
  File "C:\Python39\lib\threading.py", line 910, in run
    self._target(*self._args, **self._kwargs)
  File "BSCTokenSniper.py", line 281, in monitor_and_sell
  File "C:\Python39\lib\site-packages\web3\contract.py", line 957, in call
    return call_contract_function(
  File "C:\Python39\lib\site-packages\web3\contract.py", line 1501, in call_contract_function
    return_data = web3.eth.call(
  File "C:\Python39\lib\site-packages\web3\module.py", line 57, in caller
    result = w3.manager.request_blocking(method_str,
  File "C:\Python39\lib\site-packages\web3\manager.py", line 186, in request_blocking
    response = self._make_request(method, params)
  File "C:\Python39\lib\site-packages\web3\manager.py", line 147, in _make_request
    return request_func(method, params)
  File "cytoolz\functoolz.pyx", line 250, in cytoolz.functoolz.curry.__call__
Traceback (most recent call last):
  File "BSCTokenSniper.py", line 546, in foundToken
  File "BSCTokenSniper.py", line 241, in approve_token_for_sell
  File "C:\Python39\lib\site-packages\web3\contract.py", line 957, in call
    return call_contract_function(
  File "C:\Python39\lib\site-packages\web3\contract.py", line 1501, in call_contract_function
    return_data = web3.eth.call(
  File "C:\Python39\lib\site-packages\web3\module.py", line 57, in caller
    result = w3.manager.request_blocking(method_str,
  File "C:\Python39\lib\site-packages\web3\manager.py", line 186, in request_blocking
    response = self._make_request(method, params)
  File "C:\Python39\lib\site-packages\web3\manager.py", line 147, in _make_request
    return request_func(method, params)
  File "cytoolz\functoolz.pyx", line 250, in cytoolz.functoolz.curry.__call__
  File "C:\Python39\lib\site-packages\web3\middleware\formatting.py", line 76, in apply_formatters
    response = make_request(method, params)
  File "C:\Python39\lib\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__
  File "C:\Python39\lib\site-packages\web3\middleware\formatting.py", line 74, in apply_formatters
    response = make_request(method, formatted_params)
  File "C:\Python39\lib\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__
  File "C:\Python39\lib\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__
  File "C:\Python39\lib\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__
  File "C:\Python39\lib\site-packages\web3\middleware\formatting.py", line 74, in apply_formatters
    response = make_request(method, formatted_params)
  File "C:\Python39\lib\site-packages\web3\middleware\buffered_gas_estimate.py", line 40, in middleware
    return make_request(method, params)
  File "C:\Python39\lib\site-packages\web3\providers\websocket.py", line 144, in make_request
    return future.result()
  File "C:\Python39\lib\concurrent\futures\_base.py", line 445, in result
    return self.__get_result()
  File "C:\Python39\lib\concurrent\futures\_base.py", line 390, in __get_result
    raise self._exception
  File "C:\Python39\lib\site-packages\web3\providers\websocket.py", line 125, in coro_make_request
    await asyncio.wait_for(
  File "C:\Python39\lib\asyncio\tasks.py", line 481, in wait_for
    return fut.result()
  File "C:\Python39\lib\site-packages\websockets\legacy\protocol.py", line 471, in send
    await self.ensure_open()
  File "C:\Python39\lib\site-packages\websockets\legacy\protocol.py", line 735, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: code = 1000 (OK), no reason
  File "C:\Python39\lib\site-packages\web3\middleware\formatting.py", line 76, in apply_formatters

    response = make_request(method, params)
  File "C:\Python39\lib\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__
  File "C:\Python39\lib\site-packages\web3\middleware\formatting.py", line 74, in apply_formatters
    response = make_request(method, formatted_params)
  File "C:\Python39\lib\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__
  File "C:\Python39\lib\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__
  File "C:\Python39\lib\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__
  File "C:\Python39\lib\site-packages\web3\middleware\formatting.py", line 74, in apply_formatters
    response = make_request(method, formatted_params)
  File "C:\Python39\lib\site-packages\web3\middleware\buffered_gas_estimate.py", line 40, in middleware
    return make_request(method, params)
  File "C:\Python39\lib\site-packages\web3\providers\websocket.py", line 144, in make_request
    return future.result()
  File "C:\Python39\lib\concurrent\futures\_base.py", line 445, in result
    return self.__get_result()
  File "C:\Python39\lib\concurrent\futures\_base.py", line 390, in __get_result
    raise self._exception
  File "C:\Python39\lib\site-packages\web3\providers\websocket.py", line 130, in coro_make_request
    await asyncio.wait_for(
  File "C:\Python39\lib\asyncio\tasks.py", line 481, in wait_for
    return fut.result()
  File "C:\Python39\lib\site-packages\websockets\legacy\protocol.py", line 385, in recv
    raise RuntimeError(
RuntimeError: cannot call recv while another coroutine is already waiting for the next message

Great but can you optimize for reduce CPU Usage

I'm using i5 8th gen lap my CPU usage goes for 40% when running this, is there anyway to reduce it becoz, i have to do other works while running this without heating the laptop,
Thank You

SyntaxError: invalid syntax

When try to run SpecificTokenSniper v1.3 received below error:-

File "C:\Users\xx\Documents\GitHub\BSCTokenSniper\BSCTokenSniper v1.3\SpecificTokenSniper\bot.py", line 267
if (tokenAddress = targetContractAddress):
^
SyntaxError: invalid syntax

Updated:-
if (tokenAddress == targetContractAddress):

Receiving another error after fixing above problem:-

FATAL ERROR: Incorrectly configured config.json file.
Please check that it syntactically correct with no missing/extra colons, quotation marks, curly brackets or omitted entries, or that data types are correct, and restart the program.

Trying to use back SpecificTokenSniper v1.1 config.json but still can't solve the problem.

Colors.

Hi and thanks for bringing out this sniper. Nice job. I am currently exploring it in watch only mode.
But I have some questions about the colors, they don´t work. i am on a win10 with normal cmd usage. What do I need to install to let the colors show up. thats all...

thanks

Error at selling stage

This error occurs after buying the token and then trying to approve the token for selling

[16:15:19.470] [SELL] Monitoring $xpnet and selling at 3.0x original price.
Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Users*\AppData\Local\Programs\Python\Python39\lib\threading.py", line 973, in _bootstrap_inner
self.run()
[ERROR] foundToken error, please notify dev:
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\threading.py", line 910, in run
self._target(self._args, self._kwargs)
File "BSCTokenSniper.py", line 282, in monitor_and_sell
IndexError: list index out of range
Traceback (most recent call last):
File "BSCTokenSniper.py", line 546, in foundToken
File "BSCTokenSniper.py", line 241, in approve_token_for_sell
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\contract.py", line 957, in call
return call_contract_function(
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\contract.py", line 1501, in call_contract_function
return_data = web3.eth.call(
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\module.py", line 57, in caller
result = w3.manager.request_blocking(method_str,
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\manager.py", line 186, in request_blocking
response = self._make_request(method, params)
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\manager.py", line 147, in _make_request
return request_func(method, params)
File "cytoolz\functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\middleware\formatting.py", line 76, in apply_formatters
response = make_request(method, params)
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\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
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\middleware\formatting.py", line 74, in apply_formatters
response = make_request(method, formatted_params)
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\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
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\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
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\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
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\middleware\formatting.py", line 74, in apply_formatters
response = make_request(method, formatted_params)
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\middleware\buffered_gas_estimate.py", line 40, in middleware
return make_request(method, params)
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\providers\websocket.py", line 144, in make_request
return future.result()
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\concurrent\futures_base.py", line 445, in result
return self.__get_result()
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\concurrent\futures_base.py", line 390, in __get_result
raise self._exception
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\site-packages\web3\providers\websocket.py", line 130, in coro_make_request
await asyncio.wait_for(
File "C:\Users*
\AppData\Local\Programs\Python\Python39\lib\asyncio\tasks.py", line 481, in wait_for
return fut.result()
File "C:\Users*
**\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\protocol.py", line 385, in recv
raise RuntimeError(
RuntimeError: cannot call recv while another coroutine is already waiting for the next message

mini audit additional scan requested

Seeing a few rugs happening where tokens get trasnfered and sold from burn address somehow. Do not know the exact details here and might be misinterpreting the issue:

see chart with just a few transactions before rugpul: https://poocoin.app/tokens/0x9a1a8046d2648bd101c3bd6c6746055418686b7d

the trasnaction that kills it:
https://bscscan.com/tx/0x0f218d5aece288d4223d232c10d5b603467cbf4a6af9777dbfd9062feef709af

Could it be related to this:
https://ethereum.stackexchange.com/questions/98215/why-is-it-considered-a-bad-practice-to-burn-tokens-to-0x0-when-creating-an-erc20

Any way we can write a function to check for the inproper implementation of burn ?

Anyway thanks for opensourcing this, this is great work!

Request feature

  1. Minimal liquidity balance checker and lock
    Its important to check liquidity balance,
    Example
    some token can't sell after buy with 0,25 usd because price impact is too high.

  2. Logging for succed swap token only
    this log can be used for sell action from profit percentage.
    current bot loss their past action after restarted the terminal.
    this can be turned on or off.

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.