-
Notifications
You must be signed in to change notification settings - Fork 124
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
Initiating transactions on copy trading is slow #7
Comments
@skybl1ue It depends some factors, 1. the distance between the rpc provider host locations to your host locations. 2. the distance between the jito block engine host location and the ur host (if you are using jito bundles), This two could be fixed by hosting a server that is near to them. 3. Higher priority fee 4. Higher jito fee, i am using >=0.005 sol jito and 0.007 sol for priority fees when the network is congested. |
We might also try to build a new websocket to fetch the real-time data using Geyser-enhanced Websockets (grpc method) (https://github.com/rpcpool/yellowstone-grpc), now we are using the rpc method (onProgramAccountChange) provided by solana web3.js library |
|
yes! it could be, study these jito block engine endpoints in this file (
https://github.com/outsmartchad/solana-memecoin-cli/blob/main/src/Transactions/jito_tips_tx_executor.js),
choose one that is nearest to your location, and uncomment others and try
again.
skybl1ue ***@***.***> 於 2024年6月26日 週三 下午4:40寫道:
… We might also try to build a new websocket to fetch the real-time data
using Geyser-enhanced Websockets (grpc method) (
https://github.com/rpcpool/yellowstone-grpc), now we are using the rpc
method (onProgramAccountChange) provided by solana web3.js library
@outsmartchad <https://github.com/outsmartchad> The detection speed is
fast, but the transaction processing speed has been delayed. Could it be
that accessing Jito is too slow?
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVC7H376KMOBUHY3ATH54RTZJJ5BBAVCNFSM6AAAAABJ5JSQWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJRGE2DEMBWGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
[image: image.png]
wang chi ***@***.***> 於 2024年6月26日 週三 下午4:42寫道:
… yes! it could be, study these jito block engine endpoints in this file (
https://github.com/outsmartchad/solana-memecoin-cli/blob/main/src/Transactions/jito_tips_tx_executor.js),
choose one that is nearest to your location, and uncomment others and try
again.
skybl1ue ***@***.***> 於 2024年6月26日 週三 下午4:40寫道:
> We might also try to build a new websocket to fetch the real-time data
> using Geyser-enhanced Websockets (grpc method) (
> https://github.com/rpcpool/yellowstone-grpc), now we are using the rpc
> method (onProgramAccountChange) provided by solana web3.js library
> @outsmartchad <https://github.com/outsmartchad> The detection speed is
> fast, but the transaction processing speed has been delayed. Could it be
> that accessing Jito is too slow?
>
> —
> Reply to this email directly, view it on GitHub
> <#7 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AVC7H376KMOBUHY3ATH54RTZJJ5BBAVCNFSM6AAAAABJ5JSQWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJRGE2DEMBWGQ>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
I cant see this picture TnT |
|
There is an issue in copy-buy.js, sometimes the code doesn't know the
trader is buying(idk why), if you have time, please help us to refine the
logic of it.;(((
skybl1ue ***@***.***> 於 2024年6月26日 週三 下午4:52寫道:
… [image: image.png] wang chi *@*.
*> 於 2024年6月26日 週三 下午4:42寫道: … <#m_564610719300031922_> yes! it could be,
study these jito block engine endpoints in this file (
https://github.com/outsmartchad/solana-memecoin-cli/blob/main/src/Transactions/jito_tips_tx_executor.js
<https://github.com/outsmartchad/solana-memecoin-cli/blob/main/src/Transactions/jito_tips_tx_executor.js>),
choose one that is nearest to your location, and uncomment others and try
again. skybl1ue @.*> 於 2024年6月26日 週三 下午4:40寫道: > We might also try to
build a new websocket to fetch the real-time data > using Geyser-enhanced
Websockets (grpc method) ( > https://github.com/rpcpool/yellowstone-grpc),
now we are using the rpc > method (onProgramAccountChange) provided by
solana web3.js library > @outsmartchad <https://github.com/outsmartchad>
https://github.com/outsmartchad The detection speed is > fast, but the
transaction processing speed has been delayed. Could it be > that accessing
Jito is too slow? > > — > Reply to this email directly, view it on GitHub >
<#7 (comment)
<#7 (comment)>>,
> or unsubscribe >
https://github.com/notifications/unsubscribe-auth/AVC7H376KMOBUHY3ATH54RTZJJ5BBAVCNFSM6AAAAABJ5JSQWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJRGE2DEMBWGQ
> . > You are receiving this because you were mentioned.Message ID: > *@*.***>
>
I cant see this picture TnT
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVC7H326AWYUKQK73LVABXLZJJ6NHAVCNFSM6AAAAABJ5JSQWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJRGE3DIOJYGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@skybl1ue you could try to use jup swap instead, I will update two different code, 1. Swap using jup 2. Swap using raydium |
ok,thanks!:-D |
It's slow for me as well on copytrading, i get the error "TransactionExpiredBlockheightExceededError:". Any idea on how to fix? My fee is 0.005 sol, and im using the closest endpoint. |
@skybl1ue https://github.com/outsmartchad/solana-memecoin-cli/tree/main/src/Trading/dex/jupiter/swap, the code is easy to use and have integrated jito bundles + base gas, please have a look |
let it retries |
Using the jupiter swap functions now, with 0.01 sol jito tip and 0.01 prioritization fee for Jupiter. Average copy trade transaction now takes 3-6 seconds. Which is fairly quick, Jupiter responds quickly but the confirmation from Jito takes up most of the time would this improve if i increase the jito tip to more? New to Solana transaction with Jito tips, thanks for providing the code @outsmartchad |
Copy trade = you must be slower than the trader by few seconds, the way he made is sending the same request at the same time using the multi-thread, this will guarantee the tx will be land on mainnet successfully, yeah this is one of the options to make sure the tx is landing |
It takes 20 seconds from detecting address transactions to completing copying transactions. How can I optimize the process to be as fast as possible?
The text was updated successfully, but these errors were encountered: