bmresearch / Solnet

Solana's .NET SDK and integration library.
https://blockmountain.io/Solnet
MIT License
313 stars 126 forks source link

SendTransaction and batch.Composer.Execute is not reliable? #423

Closed JavinYang closed 5 months ago

JavinYang commented 1 year ago

When SendTransaction is used, it is possible that the request has been sent to the block and write succeeded, but it still returns a request failure(For example, timeout). At this time, it is impossible to judge whether the transaction is successful. If the transaction is retried, there will be two transactions, which will cause serious consequences. As far as I know, there is a way to avoid this situation: https://docs.solana.com/integrations/retrying-transactions, But it seems that Solnet does not support this function. I urgently need a method to know whether the transaction is successful or not.