BitcoinLib.Services.CoinService.IsInWalletTransaction C# (CSharp) Method

IsInWalletTransaction() public method

public IsInWalletTransaction ( string txId ) : bool
txId string
return bool
        public bool IsInWalletTransaction(string txId)
        {
            //  Note: This might not be efficient if iterated, consider caching ListTransactions' results.
            return (this as ICoinService).ListTransactions(null, int.MaxValue).Any(listTransactionsResponse => listTransactionsResponse.TxId == txId);
        }