transaction_identifier

transaction_identifier represents the two canonical transaction identifier types (txid, wtxid).

Synopsis

Declared in <primitives/transaction_identifier.h>

template<bool has_witness>
class transaction_identifier;

Member Functions

NameDescription
transaction_identifier [constructor]Constructors
GetHex Returns the identifier as a hex string.
IsNull Wrapped uint256 methods.
Serialize Serializes the wrapped value to a stream.
SetNull Resets the identifier to its null value.
ToString Returns a human-readable description of the identifier.
ToUint256 Returns the underlying 256-bit value.
Unserialize Unserializes the wrapped value from a stream.
begin Returns an iterator to the first byte of the wrapped value.
data Returns a pointer to the first byte of the wrapped value.
end Returns an iterator past the last byte of the wrapped value.
operator== Compares two identifiers for equality.
operator<=> Orders two identifiers by their wrapped value.

Static Member Functions

NameDescription
FromHex Builds an identifier by parsing a hex string.
FromUint256 Builds an identifier from a raw 256-bit value.
size Returns the identifier size in bytes.