pub struct GetActiveContractsRequest {
pub filter: Option<Box<TransactionFilter>>,
pub verbose: bool,
pub active_at_offset: i64,
pub event_format: Option<Box<EventFormat>>,
}
Expand description
GetActiveContractsRequest : If the given offset is different than the ledger end, and there are (un)assignments in-flight at the given offset, the snapshot may fail with "FAILED_PRECONDITION/PARTICIPANT_PRUNED_DATA_ACCESSED". Note that it is ok to request acs snapshots for party migration with offsets other than ledger end, because party migration is not concerned with incomplete (un)assignments.
Fields§
§filter: Option<Box<TransactionFilter>>
§verbose: bool
Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. If enabled, values served over the API will contain more information than strictly necessary to interpret the data. In particular, setting the verbose flag to true triggers the ledger to include labels for record fields. Optional, if specified event_format must be unset.
active_at_offset: i64
The offset at which the snapshot of the active contracts will be computed. Must be no greater than the current ledger end offset. Must be greater than or equal to the last pruning offset. Required, must be a valid absolute offset (positive integer) or ledger begin offset (zero). If zero, the empty set will be returned.
event_format: Option<Box<EventFormat>>
Implementations§
Source§impl GetActiveContractsRequest
impl GetActiveContractsRequest
Sourcepub fn new(verbose: bool, active_at_offset: i64) -> GetActiveContractsRequest
pub fn new(verbose: bool, active_at_offset: i64) -> GetActiveContractsRequest
If the given offset is different than the ledger end, and there are (un)assignments in-flight at the given offset, the snapshot may fail with "FAILED_PRECONDITION/PARTICIPANT_PRUNED_DATA_ACCESSED". Note that it is ok to request acs snapshots for party migration with offsets other than ledger end, because party migration is not concerned with incomplete (un)assignments.
Trait Implementations§
Source§impl Clone for GetActiveContractsRequest
impl Clone for GetActiveContractsRequest
Source§fn clone(&self) -> GetActiveContractsRequest
fn clone(&self) -> GetActiveContractsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more