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 in example manual_sell #51

Open
Colojp opened this issue Feb 3, 2025 · 1 comment
Open

Error in example manual_sell #51

Colojp opened this issue Feb 3, 2025 · 1 comment
Assignees

Comments

@Colojp
Copy link

Colojp commented Feb 3, 2025

Hi, i have this error when I try to sell a token:
Attempt 1 failed: AsyncClient.send_transaction() got multiple values for argument 'opts'
Error type: TypeError
Error message: AsyncClient.send_transaction() got multiple values for argument 'opts'
Full traceback:
Traceback (most recent call last):
File "/Users/clouddistrict/Documents/devs/pump-fun-bot/learning-examples/manual_sell.py", line 141, in sell_token
tx = await client.send_transaction(
^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: AsyncClient.send_transaction() got multiple values for argument 'opts'

reviewing this section of the code it seems to be correct: " tx = await client.send_transaction(
transaction,
[payer],
opts=TxOpts(skip_preflight=True, preflight_commitment=Confirmed),
)"

I'm using this version of solana and solder:
"Name: solana
Version: 0.35.1
Summary: Solana Python API
Home-page: https://github.com/michaelhly/solanapy
Author: Michael Huang
Author-email: [email protected]
License: MIT
Location: /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages
Requires: construct-typing, httpx, solders, typing-extensions, websockets
Required-by: anchorpy, pyserum
clouddistrict@MacBook-Pro-de-Cloud-4 learning-examples % pip show solders
Name: solders
Version: 0.21.0
Summary: Python bindings for Solana Rust tools
Home-page: https://github.com/kevinheavey/solders
Author:
Author-email: kevinheavey [email protected]
License: MIT
Location: /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages
Requires: jsonalias, typing-extensions
Required-by: anchorpy, solana"

Could you help me with this.

Regard, Juan

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

3 participants
@akegaviar @Colojp and others