solana-go icon indicating copy to clipboard operation
solana-go copied to clipboard

blocked when using SendAndConfirmTransactionWithOpts

Open boyi opened this issue 2 years ago • 2 comments

Sometimes the websocket in SendAndConfirmTransactionWithOpts just blocked and did't return anything. Even if I pass c ContextWithDeadline as the context of the wsClient.

Any one know how to solve this issue?

boyi avatar Jul 19 '22 02:07 boyi

That probably means the transaction was never executed/never reached a validator.

Do you get an error somewhere? Are you on mainnet? Devnet?

gagliardetto avatar Jul 28 '22 10:07 gagliardetto

No, I didn't get any error. Should I check the status before I start the ws listening?

boyi avatar Aug 04 '22 11:08 boyi