blockworks-foundation / lite-rpc

This is a solana lite rpc which optimizes sending transactions and confirming transactions strategies.
GNU Affero General Public License v3.0
161 stars 43 forks source link

block polling interval #388

Open gherkins opened 2 months ago

gherkins commented 2 months ago

When using lite-rpc to optimize some rather rarely occurring swap transactions, would there a possibility to tone down the block polling interval in between transactions?

Or would that undermine the whole optimization strategy? So in other words does lite-rpc have to continually poll the current slot and block that fast?

Asking mainly because, when using in conjunction with paid RPC services, the getSlot & getBlock methods calls amount for a really large amount of credits...🤔

jordanamr commented 2 months ago

Stop using Helius then. It's garbage anyway.

gherkins commented 2 months ago

Cheers, thanks for the suggestion! What setup would you suggest - you'd still need some RPC service, right?

Sorry, if I got this backwards, but lite-rpc acts as a kind of optimization "proxy" between a full RPC service and the client, doesn't it? So you'd need to have some kind of (full) RPC service? Do you have a setup suggestion?

godmodegalactus commented 2 months ago

o in other words does lite-rpc have to continually poll the current slot and block that f

Do you have way to get geyser subscriptions , if you do not want to poll blocks ?? May some developement can be done to get singature status for transactions sent by lite-rpc instead of polling blocks.

gherkins commented 2 months ago

so the polling is mainly done as a confirmation strategy? If so, would making that feature optional be a possibility?

So that you could use lite-rpc to send transaction, but just subscribe to the signature-status updates on the "original” rpc connection... 🤷‍♂️

tymur999 commented 4 weeks ago

Stop using Helius then. It's garbage anyway.

What is wrong with Helius? @jordanamr