outsmartchad / solana-trading-cli

High-performance modules for develop Solana Trading Bots: CLI, gRPC bots, and low-latency integrations with Jito, bloXroute, Jupiter, and DEXes
MIT License
205 stars 102 forks source link

jito block height exceed #19

Open WSbaikaishui opened 3 months ago

WSbaikaishui commented 3 months ago

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

outsmartchad commented 2 months ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

WSOL

outsmartchad commented 1 month ago

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

wudaowu commented 1 month ago

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

wudaowu commented 1 month ago

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

Lylilaaaa commented 1 month ago

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

Lylilaaaa commented 1 month ago

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

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