Ejemplo n.º 1
0
        /// <summary>
        /// Broadcast the signed transaction to the network.
        /// </summary>
        /// <returns></returns>
        public async Task <string> Broadcast()
        {
            // broadcast
            try
            {
                if (!string.IsNullOrEmpty(TxHexSigned))
                {
                    var res = await NeblioTransactionHelpers.BroadcastSignedTransaction(TxHexSigned);

                    return(res);
                }
                return("Cannot broadcast unsigned transaction. ");
            }
            catch (Exception ex)
            {
                return(ex.Message);
            }
        }