Dear daml forum,
I need to fetch the list of archived contracts of a certain template for a certain party, using java reactive.
I read there fetching-archived-contracts-to-be-displayed-in-the-ui that such an action is possible :
Archived contracts can only be retrieved from the full transaction stream on the gRPC API, and this is fairly expensive since you have to traverse the ledger from genesis. It’s really mostly intended for “forensic” purposes, for example, if you have to provide an audit trail for a particular contract to verify its provenance.
Would you please guide me in the right direction?
So far I have been using DamlLedgerClient.getActiveContractSetClient– which is for active contracts only.
I see DamlLedgerClient.getTransactionsClient and TransactionsClient might be the way, but I don’t know what
getTransactions to use and what
LedgerOffset to give. Is 0 the beginning of the ledger and will I be able to retrieve archived contracts that way?
Thank you in advance