public WalletSigningOptionsModel(
     SigningContextModel signingContext,
     string returnUrl)
 {
     SigningContext = signingContext;
     ReturnUrl      = returnUrl;
 }
 public WalletSigningOptionsModel(
     SigningContextModel signingContext,
     IDictionary <string, string> routeDataBack)
 {
     SigningContext = signingContext;
     RouteDataBack  = routeDataBack;
 }
        public async Task <PSBT> GetPSBT(Network network)
        {
            var psbt = await GetPSBTCore(network);

            if (psbt != null)
            {
                Decoded = psbt.ToString();
                PSBTHex = psbt.ToHex();
                PSBT    = psbt.ToBase64();
                if (SigningContext is null)
                {
                    SigningContext = new SigningContextModel(psbt);
                }
                else
                {
                    SigningContext.PSBT = psbt.ToBase64();
                }
            }
            return(psbt);
        }