Ejemplo n.º 1
0
        protected ActionResult <string> DepositWallet(uint accountNumber, uint index)
        {
            if (_hDWallet == null)
            {
                return(BadRequest("Wallet wasn't initialized with Mnemonic! Hd Wallet is not available."));
            }

            var wallet = _hDWallet.GetAccount(accountNumber).GetExternalWallet(index);

            return(wallet.Address);
        }
Ejemplo n.º 2
0
        public void ShouldGenerateMultipleFromSeed(int index, string expectedAddress)
        {
            var wallet = hdWallet.GetAccount(0).GetExternalWallet((uint)index);

            Assert.AreEqual(expected: expectedAddress, actual: wallet.Address);
        }