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

Transaction was not confirmed in 30.01 seconds: RPC delay breaking UX #73

Open
secretshardul opened this issue Aug 17, 2021 · 3 comments

Comments

@secretshardul
Copy link
Contributor

There's over a 30 second delay before swaps are acknowledged. A red error box shows up, which breaks user experience even though the transaction goes through. We're noticing this for few weeks now. This issue is not faced on Raydium. Tested with v0.2.2.

Screenshot 2021-08-17 at 2 26 09 PM

@armaniferrante
Copy link
Contributor

This can probably be fixed in ones own app by subclassing Provider and listening for transaction confirmations manually. The other aspect is to use an app specific validator. This demo uses solana-api.projectserum.com which is public infrastructure shared across many apps so it's not going to be as reliable as using a private one.

@secretshardul
Copy link
Contributor Author

We noticed that https://api.mainnet-beta.solana.com RPC gives much lower latency.

@secretshardul
Copy link
Contributor Author

The swap UI makes a lot of RPC calls, which is probably causing this issue. We tried Figment's private RPC, which immediately timed us out. The price refresh rate needs to be reduced.

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

2 participants