Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error #8

Open
kuw13 opened this issue Nov 1, 2024 · 3 comments
Open

error #8

kuw13 opened this issue Nov 1, 2024 · 3 comments

Comments

@kuw13
Copy link

kuw13 commented Nov 1, 2024

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
Copy link
Author

kuw13 commented Nov 1, 2024

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

@kuw13
Copy link
Author

kuw13 commented Nov 1, 2024

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
Copy link

Check out #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants