Class TransactionHash
- Namespace
- Concordium.Sdk.Types
- Assembly
- Concordium.Sdk.dll
Represents a transaction hash.
public sealed record TransactionHash : Hash, IEquatable<Hash>, IEquatable<TransactionHash>
- Inheritance
-
TransactionHash
- Implements
- Inherited Members
Methods
From(byte[])
Creates an instance from a transaction hash represented by a length-32 byte array.
public static TransactionHash From(byte[] transactionHashAsBytes)
Parameters
transactionHashAsBytes
byte[]The transaction hash represented by a length-32 byte array
Returns
From(string)
Creates an instance from a transaction hash represented by a length-64 encoded string.
public static TransactionHash From(string transactionHashAsBase16String)
Parameters
transactionHashAsBase16String
stringThe transaction hash represented by a length-64 encoded string.
Returns
ToProto()
Converts the transaction hash to its corresponding protocol buffer message instance.
This can be used as the input for class methods of RawClient.
public TransactionHash ToProto()