private async void BroadcastTx()
        {
            IsSending = true;
            Errors    = string.Empty;
            Status    = "Broadcasting Transaction...";

            Response <ResultWrapper> resp = await SelectedApi.PushTx(RawTx);

            ResultList.Add(resp.Result);

            if (resp.Errors.Any())
            {
                Errors = resp.Errors.GetErrors();
            }
            Status    = resp.Result.ResultString;
            IsSending = false;
        }
Пример #2
0
        private async void BroadcastTx()
        {
            IsSending = true;
            Errors    = string.Empty;
            Status    = "Broadcasting Transaction...";

            Response <string> resp = await SelectedApi.PushTx(RawTx);

            if (resp.Errors.Any())
            {
                Errors = resp.Errors.GetErrors();
                Status = "Finished with error.";
            }
            else
            {
                Status = resp.Result;
            }
            IsSending = false;
        }