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

GetImmutableTxId() public method

public GetImmutableTxId ( string txId, bool getSha256Hash ) : string
txId string
getSha256Hash bool
return string
        public string GetImmutableTxId(string txId, bool getSha256Hash)
        {
            var response = GetRawTransaction(txId, 1);
            var text = response.Vin.First().TxId + "|" + response.Vin.First().Vout + "|" + response.Vout.First().Value;
            return getSha256Hash ? Hashing.GetSha256(text) : text;
        }