Open scottywm opened 1 year ago
I have no idea what errors you will get cuz there are too many possibilities in the situation. The most important thing is that you will get an error from the function if you can't get a tx successfully. I think it is enough though.
btw I will use getHealth
if I would like to check whether the network is healthy.
Is it possible that the solana network will be down and it would stop the function from being able to query transactions from the Blockchain?
tr, errTran := c.GetTransaction(context.Background(), signature)
When the network is down i understand that we may not be able to query the blockchain to get transactions that occurred so I was wondering that if the network was down what would the error give me if I did the below query?
tr, errTran := c.GetTransaction(context.Background(), signature)
If the network was down would the error give me a specific error code ? a specific message ? ect or anything that can enable me to differentiate between the network being down and the user entering in a wrong signature.
Please give me an answer because i asked a question similar to this three days ago and no one replied.
thanks
scott