Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Custom views Envelope offsetForum ↗

Custom views Envelope offset

App Development4 posts175 viewsLast activity Apr 2023
HU
huwOP
Apr 2023

Hi, I am experimenting with the custom views early access feature. I notice that the Envelope has an offset but it is optional. In what cases will there be no offset on an Envelope? I’d like to have access to the transaction offset for every Event inside my Project function, is this possible?

CO
cocreature
Apr 2023

It’s None during the ACS ingestion initially. It’s set for transactions afterwards.

HU
huw
Apr 2023

I thought that the tool would use getTransactions instead of using ACS? Quoting the docs - “A newly created projection by default has no offset, which means a projection starts from the beginning of the ledger”. That seems to imply it would initially stream transactions from the ledger beginning, rather than getting the ACS?

CO
cocreature
Apr 2023

I believe the docs are off there. If the offset is not set, it starts from the ACS not from ledger beginning.

← Back to Discussions