src/Stratis.FederatedPeg.IntegrationTests/Utils/FederatedPegTestExtensions.cs
/// <summary>
/// Get balance of the local wallet.
/// </summary>
Get balance of the local wallet.
Get balance of the local wallet .
public static Money GetBalance(this CoreNode node)
        {
            IEnumerable<Bitcoin.Features.Wallet.UnspentOutputReference> spendableOutputs = node.FullNode.WalletManager().GetSpendableTransactionsInWallet(WalletName);
            return spendableOutputs.Sum(x => x.Transaction.Amount);
        }
public static Money GetBalance ( this CoreNode node ) { IEnumerable < Bitcoin . Features . Wallet . UnspentOutputReference > spendableOutputs = node . FullNode . WalletManager ( ) . GetSpendableTransactionsInWallet ( WalletName ) ; return spendableOutputs . Sum ( x => x . Transaction . Amount ) ; }
Get balance of the local wallet.
Get balance of the local wallet .
CoreNode
this