protected override async Task ExecuteAsync(IConsole console) { var wallet = Total ? await ServerAccessor.GetPoolWalletAsync() : await MinerAccessor.GetCurrentWalletAsync(); if (Total) { await InfoLineAsync("[Pool Wallet]"); } else { await InfoLineAsync($"[Your Wallet : {wallet.Percentage}% of the pool wallet]"); } await InfoLineAsync($"Confirmed Balance : {wallet.ConfirmedBalance} XCH"); await InfoLineAsync($"Unconfirmed Balance : {wallet.UnconfirmedBalance} XCH"); await InfoLineAsync($"Spendable Balance : {wallet.SpendableBalance} XCH"); await InfoLineAsync($"Pending Change : {wallet.PendingChange} XCH"); await InfoLineAsync($"Maximum Send Amount : {wallet.MaxSendAmount} XCH"); }
public async Task <IActionResult> GetPoolWalletAsync() => Ok(await ServerAccessor.GetPoolWalletAsync(AuthOptions.Token));