Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Max length of transactionId and eventId?Forum ↗

Max length of transactionId and eventId?

App Development3 posts265 views1 likesLast activity May 2023
MR
Mr_MannorothOP
Mar 2023
  1. Are there any length guarantees on the transactionId and eventId on Canton for PostGres?

  2. We are integrating our Daml-based sytem with another system that uses RDBMS as permanent storage and needs the maximum length of a transactionId and eventId. What should be the max length to assume for these?

MR
Mr_Mannoroth
Mar 2023

Any ideas, anyone?

MA
Mate_Varga
May 2023

There is no defined max length for neither the evnetId nor the transactionId and this is intentional, to support changing how they are particularly generated, in the future. The type used in the DBs of canton nodes is Text while in our codebase the type used to represent them is String. At the time of writing this reply the transactionId is a 128 bit value represented in hex, while the eventId is derived from this value, by adding a prefix(‘#’) and a suffix(‘:{sequence number}’).

← Back to Discussions