transactionID property

String get transactionID

Returns the transaction hash (ID) after the signing process.

Throws an exception if the transaction is not signed.

Implementation

String get transactionID {
  if (_signature == null) {
    throw const ETHPluginException(
        "The transaction hash cannot be obtained before the signing process.");
  }
  return BytesUtils.toHexString(
      QuickCrypto.keccack256Hash(signedSerializedTransaction()),
      prefix: "0x");
}