コード例 #1
0
        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");
        }
コード例 #2
0
ファイル: ServerController.cs プロジェクト: tancau/ChiaPool
 public async Task <IActionResult> GetPoolWalletAsync()
 => Ok(await ServerAccessor.GetPoolWalletAsync(AuthOptions.Token));