> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# Splice.Util.FeaturedApp.BatchedMarkersProxy

> Documentation for Splice.Util.FeaturedApp.BatchedMarkersProxy

This module provides a BatchedMarkersProxy that can be used to create multiple markers in one view.

## Templates

**template** BatchedMarkersProxy

> Signatory: provider
>
> | Field | Type | Description |
> | - | - | - |
> | provider | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> | dso | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
>
> * **Choice** Archive
>
>   Controller: provider
>
>   Returns: ()
>
>   (no fields)
>
> * **Choice** BatchedMarkersProxy\_CreateMarkers
>
>   Controller: provider
>
>   Returns: BatchedMarkersProxy\_CreateMarkersResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | featuredAppRightCid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) FeaturedAppRight | |
>   | batches | \[RewardBatch] | |
>
> * **Choice** BatchedMarkersProxy\_CreateMarkersV2
>
>   Controller: provider
>
>   Returns: BatchedMarkersProxy\_CreateMarkersV2Result
>
>   | Field | Type | Description |
>   | - | - | - |
>   | featuredAppRightCid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) FeaturedAppRight | |
>   | batches | \[RewardBatchV2] | |

## Data Types

**data** BatchedMarkersProxy\_CreateMarkersResult

> BatchedMarkersProxy\_CreateMarkersResult
>
> > | Field | Type | Description |
> > | - | - | - |
> > | results | \[\[FeaturedAppRight\_CreateActivityMarkerResult]] | |
>
> **instance** GetField "results" BatchedMarkersProxy\_CreateMarkersResult \[\[FeaturedAppRight\_CreateActivityMarkerResult]]
>
> **instance** SetField "results" BatchedMarkersProxy\_CreateMarkersResult \[\[FeaturedAppRight\_CreateActivityMarkerResult]]
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) BatchedMarkersProxy BatchedMarkersProxy\_CreateMarkers BatchedMarkersProxy\_CreateMarkersResult
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) BatchedMarkersProxy BatchedMarkersProxy\_CreateMarkers BatchedMarkersProxy\_CreateMarkersResult
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) BatchedMarkersProxy BatchedMarkersProxy\_CreateMarkers BatchedMarkersProxy\_CreateMarkersResult

**data** BatchedMarkersProxy\_CreateMarkersV2Result

> BatchedMarkersProxy\_CreateMarkersV2Result
>
> > | Field | Type | Description |
> > | - | - | - |
> > | results | \[FeaturedAppRight\_CreateActivityMarkerResult] | |
>
> **instance** GetField "results" BatchedMarkersProxy\_CreateMarkersV2Result \[FeaturedAppRight\_CreateActivityMarkerResult]
>
> **instance** SetField "results" BatchedMarkersProxy\_CreateMarkersV2Result \[FeaturedAppRight\_CreateActivityMarkerResult]
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) BatchedMarkersProxy BatchedMarkersProxy\_CreateMarkersV2 BatchedMarkersProxy\_CreateMarkersV2Result
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) BatchedMarkersProxy BatchedMarkersProxy\_CreateMarkersV2 BatchedMarkersProxy\_CreateMarkersV2Result
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) BatchedMarkersProxy BatchedMarkersProxy\_CreateMarkersV2 BatchedMarkersProxy\_CreateMarkersV2Result

**data** RewardBatch

> RewardBatch
>
> > | Field | Type | Description |
> > | - | - | - |
> > | beneficiaries | \[AppRewardBeneficiary] | |
> > | numMarkers | [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261) | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) RewardBatch
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) RewardBatch
>
> **instance** GetField "batches" BatchedMarkersProxy\_CreateMarkers \[RewardBatch]
>
> **instance** GetField "beneficiaries" RewardBatch \[AppRewardBeneficiary]
>
> **instance** GetField "numMarkers" RewardBatch [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** SetField "batches" BatchedMarkersProxy\_CreateMarkers \[RewardBatch]
>
> **instance** SetField "beneficiaries" RewardBatch \[AppRewardBeneficiary]
>
> **instance** SetField "numMarkers" RewardBatch [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)

**data** RewardBatchV2

> RewardBatchV2
>
> > | Field | Type | Description |
> > | - | - | - |
> > | beneficiaries | \[AppRewardBeneficiary] | |
> > | markerWeight | [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135) | The total weight of the markers that should be created. |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) RewardBatchV2
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) RewardBatchV2
>
> **instance** GetField "batches" BatchedMarkersProxy\_CreateMarkersV2 \[RewardBatchV2]
>
> **instance** GetField "beneficiaries" RewardBatchV2 \[AppRewardBeneficiary]
>
> **instance** GetField "markerWeight" RewardBatchV2 [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135)
>
> **instance** SetField "batches" BatchedMarkersProxy\_CreateMarkersV2 \[RewardBatchV2]
>
> **instance** SetField "beneficiaries" RewardBatchV2 \[AppRewardBeneficiary]
>
> **instance** SetField "markerWeight" RewardBatchV2 [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135)

## Functions

require
: [CanAssert](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-assert-canassert-67323) m => [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) -> [Bool](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-bool-66265) -> m ()

Check whether a required condition is true. If it's not, abort the transaction with a message saying that the requirement was not met.
