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); }
public void ShouldGenerateMultipleFromSeed(int index, string expectedAddress) { var wallet = hdWallet.GetAccount(0).GetExternalWallet((uint)index); Assert.AreEqual(expected: expectedAddress, actual: wallet.Address); }