Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Comparing Ledger OffsetsForum ↗

Comparing Ledger Offsets

App Development2 posts258 views1 likesLast activity Mar 2022
HU
huwOP
Mar 2022

Is it possible to compare two ledger offsets to determine which came first? I’m trying to do this in java. I guess this may not be possible as the offset format is opaque.

ST
stefanobaghino-da
Mar 2022

As mentioned on the Ledger API reference documentation, offsets are opaque in the sense that “no client-side transformation of an offset is guaranteed to return a meaningful offset.” However the Ledger API server “ensures internally that offsets are lexicographically comparable”.

← Back to Discussions