chainstacklabs / pump-fun-bot

A fully functional pump.fun trading and sniping bot not relying on any 3rd party APIs
101 stars 49 forks source link

error #8

Closed kuw13 closed 2 weeks ago

kuw13 commented 3 weeks ago

Waiting for a new token creation... Subscribed to blocks mentioning program: 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P New token created: { "name": "First Coin The Dev Is A Baby", "symbol": "BABY", "uri": "https://ipfs.io/ipfs/QmYL2X262KyKL7KVM8Z4GLVGsYUzPQRm2LF9mBuwgUJ4jQ", "mint": "9xBsKEyC2131RdTLr3gXEmGLBjdS8gR7KGwwmxD3pump", "bondingCurve": "HztG5iw7f8gsRaRhjuUsReYy8PuCRRVUmaxc6UkRkxwc", "associatedBondingCurve": "Gdy1LRAWBuaCgGnYUyGAFzfoL9kALLkKmjG7hrSsigPZ", "user": "5aigAKtEYBNdcuarH7wrzaPHyphmkYtSxtkdkMRfPwu4" } Token information saved to trades/9xBsKEyC2131RdTLr3gXEmGLBjdS8gR7KGwwmxD3pump.txt Waiting for 15 seconds for things to stabilize... Bonding curve address: HztG5iw7f8gsRaRhjuUsReYy8PuCRRVUmaxc6UkRkxwc Token price: 0.0000000366 SOL Buying 0.050000 SOL worth of the new token with 20.0% slippage tolerance... Creating associated token account (Attempt 1)... Attempt 1 to create associated token account failed: cannot convert 'Transaction' object to bytes Retrying in 1 seconds... Creating associated token account (Attempt 2)... Attempt 2 to create associated token account failed: cannot convert 'Transaction' object to bytes Retrying in 2 seconds... Creating associated token account (Attempt 3)... Attempt 3 to create associated token account failed: cannot convert 'Transaction' object to bytes Retrying in 4 seconds... Creating associated token account (Attempt 4)... Attempt 4 to create associated token account failed: cannot convert 'Transaction' object to bytes Retrying in 8 seconds... Creating associated token account (Attempt 5)... Attempt 5 to create associated token account failed: cannot convert 'Transaction' object to bytes Max retries reached. Unable to create associated token account. Buy transaction failed. Waiting for 20 seconds before selling... Selling tokens with 20.0% slippage tolerance... Traceback (most recent call last): File "/mnt/e/download/pump-fun-bot-main/pump-fun-bot-main/trade.py", line 157, in asyncio.run(main(yolo_mode=args.yolo, match_string=args.match, bro_address=args.bro, marry_mode=args.marry)) File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/mnt/e/download/pump-fun-bot-main/pump-fun-bot-main/trade.py", line 140, in main await trade(websocket, match_string, bro_address, marry_mode, yolo_mode) File "/mnt/e/download/pump-fun-bot-main/pump-fun-bot-main/trade.py", line 52, in trade await _trade(websocket, match_string, bro_address, marry_mode, yolo_mode) File "/mnt/e/download/pump-fun-bot-main/pump-fun-bot-main/trade.py", line 107, in _trade sell_tx_hash = await sell_token(mint, bonding_curve, associated_bonding_curve, SELL_SLIPPAGE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/mnt/e/download/pump-fun-bot-main/pump-fun-bot-main/sell.py", line 74, in sell_token token_balance = await get_token_balance(client, associated_token_account) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/mnt/e/download/pump-fun-bot-main/pump-fun-bot-main/sell.py", line 62, in get_token_balance if response.value: ^^^^^^^^^^^^^^ AttributeError: 'solders.rpc.errors.InvalidParamsMessage' object has no attribute 'value'

kuw13 commented 3 weeks ago

any help please cannot convert 'Transaction' object to bytes Max retries reached. Unable to create associated token account.

kuw13 commented 3 weeks ago

now i git this ? Creating associated token account (Attempt 1)... Attempt 1 to create associated token account failed: 'solders.message.Message' object has no attribute 'nonce_instruction' Retrying in 1 seconds... Creating associated token account (Attempt 2)... Attempt 2 to create associated token account failed: 'solders.message.Message' object has no attribute 'nonce_instruction' Retrying in 2 seconds... Creating associated token account (Attempt 3)... Attempt 3 to create associated token account failed: 'solders.message.Message' object has no attribute 'nonce_instruction' Retrying in 4 seconds... Creating associated token account (Attempt 4)... Attempt 4 to create associated token account failed: 'solders.message.Message' object has no attribute 'nonce_instruction' Retrying in 8 seconds... Creating associated token account (Attempt 5)... Attempt 5 to create associated token account failed: 'solders.message.Message' object has no attribute 'nonce_instruction' Max retries reached. Unable to create associated token account. Buy transaction failed. Waiting for 20 seconds before selling... Selling tokens with 20.0% slippage tolerance... Traceback (most recent call last): File "/mnt/e/download/pump-fun-bot-main/pump-fun-bot-main/trade.py", line 157, in asyncio.run(main(yolo_mode=args.yolo, match_string=args.match, bro_address=args.bro, marry_mode=args.marry)) File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/mnt/e/download/pump-fun-bot-main/pump-fun-bot-main/trade.py", line 140, in main await trade(websocket, match_string, bro_address, marry_mode, yolo_mode) File "/mnt/e/download/pump-fun-bot-main/pump-fun-bot-main/trade.py", line 52, in trade await _trade(websocket, match_string, bro_address, marry_mode, yolo_mode) File "/mnt/e/download/pump-fun-bot-main/pump-fun-bot-main/trade.py", line 107, in _trade sell_tx_hash = await sell_token(mint, bonding_curve, associated_bonding_curve, SELL_SLIPPAGE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/mnt/e/download/pump-fun-bot-main/pump-fun-bot-main/sell.py", line 74, in sell_token token_balance = await get_token_balance(client, associated_token_account) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/mnt/e/download/pump-fun-bot-main/pump-fun-bot-main/sell.py", line 62, in get_token_balance if response.value: ^^^^^^^^^^^^^^ AttributeError: 'solders.rpc.errors.InvalidParamsMessage' object has no attribute 'value'

creosmart commented 3 weeks ago

Check out #1