getHash method
Implementation
String getHash() {
if (txnSignature == null && (signers?.isEmpty ?? true)) {
throw ArgumentError("Cannot get the hash from an unsigned Transaction.");
}
final encodeStr =
"$_transactionHashPrefix${toBlob(forSigning: false)}".toUpperCase();
final toDigest =
bytesToHex(hash512(hexToBytes(encodeStr))).substring(0, 64);
return toDigest.toUpperCase();
}