solana-go
solana-go copied to clipboard
blocked when using SendAndConfirmTransactionWithOpts
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?
That probably means the transaction was never executed/never reached a validator.
Do you get an error somewhere? Are you on mainnet? Devnet?
No, I didn't get any error. Should I check the status before I start the ws listening?