id property

String id

Get the transaction id. The encoded transaction is hashed using sha512/256 and base32 encoded.

Returns the id of the transaction.

Implementation

String get id {
  final txBytes = sha512256.convert(getEncodedTransaction()).bytes;

  // Encode with Base32
  return base32.encode(Uint8List.fromList(txBytes)).trimPadding();
}