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

Rerurn empty from getpoolIdByMint when run buy_with_jito.py #23

Open
dh12306 opened this issue Jan 22, 2025 · 4 comments
Open

Rerurn empty from getpoolIdByMint when run buy_with_jito.py #23

dh12306 opened this issue Jan 22, 2025 · 4 comments

Comments

@dh12306
Copy link

dh12306 commented Jan 22, 2025

hello,Thanks for your job ,but I met some problems,can you help me ?
First I aim to buy some token in Priority Fee, that means I have to use jito to send transaction,So I chose the script :

buy_with_jito.py 

then I chose a grpc endpoints using quicknode like this :

Image

  • then I change the code :
# buy_with_jito.py  

token_toBuy="8a6WvkVRevWM1W3HFwTPfuLMinvahxNNQb5n6VYipump"
  • the log shows :
memcmp_opts_base: MemcmpOpts(offset=400, bytes=b'p|6M\x80\xadPC\xedk\x93\xec#\x8b\xe2%\xe8\xba\xdb\xa5\x19\x92\x80\xb2\xfa\xe9\xdd\xf3$\xb3!?')
  • the this line returns empty :
poolids = (await ctx.get_program_accounts(pubkey=RAY_V4, commitment=Confirmed, encoding="jsonParsed",
                                                      filters=filters_tokens)).value
# poolids  returns []

so how can I fix this problem to run , thanks a lot @henrytirla

@henrytirla
Copy link
Owner

henrytirla commented Jan 22, 2025

First you need to wrap your sol, and the folder to use for priority fees is Wrapsol_Priority fee folder. Also i haven't tested the code with Grpc endpoints but only rpc endpoints

@dh12306
Copy link
Author

dh12306 commented Jan 22, 2025

First you need to wrap your sol, and the folder to use for priority fees is Wrapsol_Priority fee folder. Also i haven't tested the code with Grpc endpoints but only rpc endpoints首先,您需要包装您的 sol,用于优先费用的文件夹是 Wrapsol_Priority fee 文件夹。此外,我没有使用 Grpc 端点测试代码,而只使用 rpc 端点测试

sorry, I am incorrectly expressed,and I still want to use jito ;
I means that I want to use both ,priority fees and jito ;jito is used for mev protection
This is my setting on bullx : there are priority fee and mev protection
what can I do for achieve this setting @henrytirla

Image

@dh12306
Copy link
Author

dh12306 commented Jan 22, 2025

First you need to wrap your sol, and the folder to use for priority fees is Wrapsol_Priority fee folder. Also i haven't tested the code with Grpc endpoints but only rpc endpoints

I run the buy_wrap_sol.py ,but the transcation is failed :


https://solscan.io/tx/5MJQudWToWeM7vHD2nyjCDx5CM7YkmtGYoJzZpJoD4mDcnTirnG5ugb6JVkB9nm7aZHogePtZein6XFwbyBmSVUC

ps, these code below was no used:

token_symbol, SOl_Symbol = getSymbol(TOKEN_TO_SWAP_BUY)

@henrytirla
Copy link
Owner

I will review this tomorrow and get back to you

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