0xTaoDev / jupiter-python-sdk

Jupiter Python SDK is a Python library that allows you to use most of Jupiter features.
https://pypi.org/project/jupiter-python-sdk/
MIT License
168 stars 45 forks source link

Priority? Fees #17

Closed aleph0ne closed 7 months ago

aleph0ne commented 7 months ago

How do we add priority fees or compute units to this to ensure the transaction is successful?

jhliu2019 commented 7 months ago

you can add priority_fee parameter by yourself to the method swap() at jupiter.py Line:645 priority_fee: int=0

and Line:690 transaction_parameters = { "quoteResponse": quoteResponse, "prioritizationFeeLamports":priority_fee, # <- add here "userPublicKey": user_public_key, "wrapAndUnwrapSol": wrap_unwrap_sol }

0xTaoDev commented 7 months ago

Hello, sorry for the delay. I just updated the library, thanks a lot jhliu2019