raydium-io / raydium-sdk-V2-demo

Open-source Typescript SDK demos
50 stars 31 forks source link

Frequent RPC Node Timeout Issue When Sending Transactions #40

Closed miaoluyao closed 4 months ago

miaoluyao commented 4 months ago

I am encountering an issue with RPC node timeouts when frequently sending transactions. I am currently developing a market cap management tool, and during this process, the getBlockHeight method is called very frequently. I would like to know how to modify the frequency of these calls to prevent the RPC node timeouts.

cruzshia commented 4 months ago

if you frequently send transactions there'e no way to optimize it, block height grows by time, the best way is to reduce sending frequency