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

jito block height exceed #19

Open
WSbaikaishui opened this issue Aug 8, 2024 · 11 comments
Open

jito block height exceed #19

WSbaikaishui opened this issue Aug 8, 2024 · 11 comments

Comments

@WSbaikaishui
Copy link

when using jito tx, I always have this error
image
code like this,Is there any solutions?
image

@outsmartchad
Copy link
Owner

what function you are using? if you use >=0.000001 sol jito tips, it's failing only when the transaction has logical error. https://jito-labs.gitbook.io/mev/searcher-resources/bundles. Or you can send the transaction to bloXroute server(they have some high staked rpc to send your transaction to the current blockleader), it would be a better performance. https://github.com/outsmartchad/solana-trading-cli/blob/main/src/Transactions/bloXroute_tips_tx_executor.js

@wudaowu
Copy link

wudaowu commented Sep 14, 2024

I have the same problem, it keeps failing when I use this buy function, here are my logs
ts-node src/raydium/buy.ts --token_address JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN --sol 0.03
bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
here
Fetching pool id...
AMM Pool ID: EYErUp5muPYEEkeaUCY22JibeZX7E9UuMcJFZkmNAN7c
Pool id fetched.
Executing transaction (jito)...
Selected Jito Validator: 3AVi9Tg9Uo68tJfuvoKvqKNWKkC5wPdSSdeBnizKZ6jT
Jito Fee: 0.0001 sol
Sending tx to Jito validators...
Jito validator accepted the tx
Confirming the jito transaction...
Error during jito transaction execution: TransactionExpiredBlockheightExceededError: Signature 3FfsP9HYbsUqQpR1JVq1RHrABFP6dgmoBi7UPMrCBFp2HtQphjnvXyJpAfjyKDDUk42ykbHfPV4RAh7ioe9K8bDK has expired: block height exceeded.

@wudaowu
Copy link

wudaowu commented Sep 14, 2024

I also printed the log to see the final_transaction, and then resent it with postman, it looks like the parameters are wrong, sorry I don't know how to fix it
微信截图_20240914162152

@outsmartchad
Copy link
Owner

WSOL

@outsmartchad
Copy link
Owner

Raydium swap functions & cli uses WSOL for settlement now, but Orca & Meteora swap & cli use SOL for settlement now

@wudaowu
Copy link

wudaowu commented Sep 14, 2024

I don't understand, so how can I buy RAY or JUP using this method. I know that all token swaps require WSOL

@wudaowu
Copy link

wudaowu commented Sep 14, 2024

You mean raydium is temporarily unavailable. If I want to use it, I should use orca or Meteora swap.

@Lylilaaaa
Copy link

I have this prob, too. Hope that someone can help. Many thanks ❤️.

@Lylilaaaa
Copy link

I have this prob, too. Hope that someone can help. Many thanks ❤️.

I know that from discord, we should swap SOL for WSOL first.

@italoHonoratoSA
Copy link

This error is not specific, but it is due to the lack of WSOL in your wallet. In fact, I noticed that creating the WSOL account without funding it was enough for the code to work.

Swapping to WSOL on the dex seems to be really difficult. Try doing this via Solana CLI or a swap script.

@tundachef
Copy link

This error is not specific, but it is due to the lack of WSOL in your wallet. In fact, I noticed that creating the WSOL account without funding it was enough for the code to work.

Swapping to WSOL on the dex seems to be really difficult. Try doing this via Solana CLI or a swap script.

The repo includes a swap script, I think you should use that, it is in src\helpers\wrap_sol.ts

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

6 participants