Exemple #1
0
        public bool Create()
        {
            var wallet = WalletHelper.CreateWallet();

            if (wallet == null || String.IsNullOrEmpty(wallet.Address) || String.IsNullOrEmpty(wallet.PrivateKey))
            {
                return(false);
            }

            return(true);
        }
Exemple #2
0
 /// <summary>
 /// Creates the wallet and user account for the hosted user wallet
 /// </summary>
 /// <returns>The created wallet info</returns>
 public ActionResult Create()
 {
     return(Json(WalletHelper.CreateWallet(), JsonRequestBehavior.AllowGet));
 }