secretclican accept a
--broadcast-modeflag. The value of this flag can be
syncmakes the client return a CheckTx response (default)
asyncmakes the client return immediately
blockmakes the client wait for the Tx to be committed (transaction may fail)
blockmode should not be used in most circumstances because broadcasting can timeout, but the Tx may still be included in a block which can create undesirable situations. Therefore, it is best to use
async, and query by Tx hash to determine when the Tx is included in a block.