> ## 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.WalletUserProxy

> Documentation for Splice.Util.FeaturedApp.WalletUserProxy

Utility template for proxying token standard choices so that featured app markers are created for a wallet app provider by their users when they are using token standard workflows.

You can either use this template directly, or copy the code under a **different package name** and a **different module name**.

Note: use the `DelegateProxy` if you are building an app that uses multiple parties for its own operations.

## Templates

**template** WalletUserProxy

> A proxy to attribute the activity of a wallet user to the wallet app provider.
>
> The intended usage is for the wallet app provider to
>
> 1. create a `WalletUserProxy` contract with the `provider` set to the app provider's party
> 2. setup their wallet frontend such that users call the proxy's choices instead of the original token standard choices.
>
> Note that the weights are specified on the proxy contract, so that they are under the providers control. If they were specified on the choices, then the user could in principle change them, and grant themselves a higher reward than intended.
>
> Note also that the batch transfer support can be used without having a featured app right.
>
> Signatory: provider
>
> | Field | Type | Description |
> | - | - | - |
> | provider | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | The app provider whose featured app right should be triggered |
> | providerWeight | [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135) | Reward weight for the provider |
> | userWeight | [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135) | Reward weight for the user, set to 0.0 if the user should not receive a reward |
> | extraBeneficiaries | \[AppRewardBeneficiary] | Extra beneficiaries to add |
> | optAllowList | [Optional](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-prelude-optional-37153) \[[Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)] | An optional allow list of parties that can use the proxy |
>
> * **Choice** Archive
>
>   Controller: provider
>
>   Returns: ()
>
>   (no fields)
>
> * **Choice** WalletUserProxy\_AllocationFactory\_Allocate
>
>   Controller: (DA.Internal.Record.getField @"user" proxyArg)
>
>   Returns: ProxyResult AllocationInstructionResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | cid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) AllocationFactory | |
>   | proxyArg | ProxyArg AllocationFactory\_Allocate | |
>
> * **Choice** WalletUserProxy\_Allocation\_Withdraw
>
>   Controller: (DA.Internal.Record.getField @"user" proxyArg)
>
>   Returns: ProxyResult Allocation\_WithdrawResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | cid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) Allocation | |
>   | proxyArg | ProxyArg Allocation\_Withdraw | |
>
> * **Choice** WalletUserProxy\_BatchTransfer
>
>   Controller: getFirstSender transferCalls
>
>   Returns: WalletUserProxy\_BatchTransferResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | transferCalls | \[TransferFactoryCall] | Transfers to execute via their respective transfer factories. Input holdings are properly threaded through for all instrument-ids. The sender change is always added back as an additional input to follow-up transfers for the same instrument-ids. Note that we accept fully specified calls to factories for maximum flexibility. Some token admins may actually use different factories for different recipients, e.g., to implement preapprovals. |
>   | optFeaturedAppRightCid | [Optional](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-prelude-optional-37153) ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) FeaturedAppRight) | The featured app right contract of the provider to use on every transfer. Optional so the batched choice can be used without a featured app right. |
>
> * **Choice** WalletUserProxy\_PublicFetch
>
>   Controller: actor
>
>   Returns: WalletUserProxy
>
>   | Field | Type | Description |
>   | - | - | - |
>   | actor | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
>
> * **Choice** WalletUserProxy\_TransferFactory\_Transfer
>
>   Controller: (DA.Internal.Record.getField @"user" proxyArg)
>
>   Returns: ProxyResult TransferInstructionResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | cid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TransferFactory | |
>   | proxyArg | ProxyArg TransferFactory\_Transfer | |
>
> * **Choice** WalletUserProxy\_TransferInstruction\_Accept
>
>   Controller: (DA.Internal.Record.getField @"user" proxyArg)
>
>   Returns: ProxyResult TransferInstructionResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | cid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TransferInstruction | |
>   | proxyArg | ProxyArg TransferInstruction\_Accept | |
>
> * **Choice** WalletUserProxy\_TransferInstruction\_Reject
>
>   Controller: (DA.Internal.Record.getField @"user" proxyArg)
>
>   Returns: ProxyResult TransferInstructionResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | cid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TransferInstruction | |
>   | proxyArg | ProxyArg TransferInstruction\_Reject | |
>
> * **Choice** WalletUserProxy\_TransferInstruction\_Withdraw
>
>   Controller: (DA.Internal.Record.getField @"user" proxyArg)
>
>   Returns: ProxyResult TransferInstructionResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | cid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TransferInstruction | |
>   | proxyArg | ProxyArg TransferInstruction\_Withdraw | |

## Data Types

**type** InstrumentHoldingMap
\= [Map](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-map-90052) InstrumentId \[[ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) Holding]

**instance** GetField "senderChangeMap" WalletUserProxy\_BatchTransferResult InstrumentHoldingMap

**instance** SetField "senderChangeMap" WalletUserProxy\_BatchTransferResult InstrumentHoldingMap

**data** ProxyArg arg

> Generic argument to the proxy choices.
>
> ProxyArg
>
> > | Field | Type | Description |
> > | - | - | - |
> > | user | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | The wallet user that is using the wallet to exercise a choice. |
> > | choiceArg | arg | The argument to the choice that the user is exercising. |
> > | featuredAppRightCid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) FeaturedAppRight | The featured app right contract of the provider. |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) arg => [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) (ProxyArg arg)
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) arg => [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) (ProxyArg arg)
>
> **instance** GetField "choiceArg" (ProxyArg arg) arg
>
> **instance** GetField "featuredAppRightCid" (ProxyArg arg) ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) FeaturedAppRight)
>
> **instance** GetField "proxyArg" WalletUserProxy\_AllocationFactory\_Allocate (ProxyArg AllocationFactory\_Allocate)
>
> **instance** GetField "proxyArg" WalletUserProxy\_Allocation\_Withdraw (ProxyArg Allocation\_Withdraw)
>
> **instance** GetField "proxyArg" WalletUserProxy\_TransferFactory\_Transfer (ProxyArg TransferFactory\_Transfer)
>
> **instance** GetField "proxyArg" WalletUserProxy\_TransferInstruction\_Accept (ProxyArg TransferInstruction\_Accept)
>
> **instance** GetField "proxyArg" WalletUserProxy\_TransferInstruction\_Reject (ProxyArg TransferInstruction\_Reject)
>
> **instance** GetField "proxyArg" WalletUserProxy\_TransferInstruction\_Withdraw (ProxyArg TransferInstruction\_Withdraw)
>
> **instance** GetField "user" (ProxyArg arg) [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)
>
> **instance** SetField "choiceArg" (ProxyArg arg) arg
>
> **instance** SetField "featuredAppRightCid" (ProxyArg arg) ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) FeaturedAppRight)
>
> **instance** SetField "proxyArg" WalletUserProxy\_AllocationFactory\_Allocate (ProxyArg AllocationFactory\_Allocate)
>
> **instance** SetField "proxyArg" WalletUserProxy\_Allocation\_Withdraw (ProxyArg Allocation\_Withdraw)
>
> **instance** SetField "proxyArg" WalletUserProxy\_TransferFactory\_Transfer (ProxyArg TransferFactory\_Transfer)
>
> **instance** SetField "proxyArg" WalletUserProxy\_TransferInstruction\_Accept (ProxyArg TransferInstruction\_Accept)
>
> **instance** SetField "proxyArg" WalletUserProxy\_TransferInstruction\_Reject (ProxyArg TransferInstruction\_Reject)
>
> **instance** SetField "proxyArg" WalletUserProxy\_TransferInstruction\_Withdraw (ProxyArg TransferInstruction\_Withdraw)
>
> **instance** SetField "user" (ProxyArg arg) [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)

**data** ProxyResult r

> Generic result of the proxy choices.
>
> ProxyResult
>
> > | Field | Type | Description |
> > | - | - | - |
> > | markerResult | FeaturedAppRight\_CreateActivityMarkerResult | |
> > | choiceResult | r | |
>
> **instance** GetField "choiceResult" (ProxyResult r) r
>
> **instance** GetField "markerResult" (ProxyResult r) FeaturedAppRight\_CreateActivityMarkerResult
>
> **instance** SetField "choiceResult" (ProxyResult r) r
>
> **instance** SetField "markerResult" (ProxyResult r) FeaturedAppRight\_CreateActivityMarkerResult
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) WalletUserProxy WalletUserProxy\_AllocationFactory\_Allocate (ProxyResult AllocationInstructionResult)
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) WalletUserProxy WalletUserProxy\_Allocation\_Withdraw (ProxyResult Allocation\_WithdrawResult)
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) WalletUserProxy WalletUserProxy\_TransferFactory\_Transfer (ProxyResult TransferInstructionResult)
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) WalletUserProxy WalletUserProxy\_TransferInstruction\_Accept (ProxyResult TransferInstructionResult)
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) WalletUserProxy WalletUserProxy\_TransferInstruction\_Reject (ProxyResult TransferInstructionResult)
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) WalletUserProxy WalletUserProxy\_TransferInstruction\_Withdraw (ProxyResult TransferInstructionResult)
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) WalletUserProxy WalletUserProxy\_AllocationFactory\_Allocate (ProxyResult AllocationInstructionResult)
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) WalletUserProxy WalletUserProxy\_Allocation\_Withdraw (ProxyResult Allocation\_WithdrawResult)
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) WalletUserProxy WalletUserProxy\_TransferFactory\_Transfer (ProxyResult TransferInstructionResult)
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) WalletUserProxy WalletUserProxy\_TransferInstruction\_Accept (ProxyResult TransferInstructionResult)
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) WalletUserProxy WalletUserProxy\_TransferInstruction\_Reject (ProxyResult TransferInstructionResult)
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) WalletUserProxy WalletUserProxy\_TransferInstruction\_Withdraw (ProxyResult TransferInstructionResult)
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) WalletUserProxy WalletUserProxy\_AllocationFactory\_Allocate (ProxyResult AllocationInstructionResult)
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) WalletUserProxy WalletUserProxy\_Allocation\_Withdraw (ProxyResult Allocation\_WithdrawResult)
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) WalletUserProxy WalletUserProxy\_TransferFactory\_Transfer (ProxyResult TransferInstructionResult)
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) WalletUserProxy WalletUserProxy\_TransferInstruction\_Accept (ProxyResult TransferInstructionResult)
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) WalletUserProxy WalletUserProxy\_TransferInstruction\_Reject (ProxyResult TransferInstructionResult)
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) WalletUserProxy WalletUserProxy\_TransferInstruction\_Withdraw (ProxyResult TransferInstructionResult)

**data** TransferFactoryCall

> A call to the token standard factory to initiate a token standard transfer. Specialized because it is used in the batch transfer choice below.
>
> TransferFactoryCall
>
> > | Field | Type | Description |
> > | - | - | - |
> > | factoryCid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TransferFactory | |
> > | choiceArg | TransferFactory\_Transfer | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) TransferFactoryCall
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) TransferFactoryCall
>
> **instance** GetField "choiceArg" TransferFactoryCall TransferFactory\_Transfer
>
> **instance** GetField "factoryCid" TransferFactoryCall ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TransferFactory)
>
> **instance** GetField "transferCalls" WalletUserProxy\_BatchTransfer \[TransferFactoryCall]
>
> **instance** SetField "choiceArg" TransferFactoryCall TransferFactory\_Transfer
>
> **instance** SetField "factoryCid" TransferFactoryCall ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TransferFactory)
>
> **instance** SetField "transferCalls" WalletUserProxy\_BatchTransfer \[TransferFactoryCall]

**data** WalletUserProxy\_BatchTransferResult

> WalletUserProxy\_BatchTransferResult
>
> > | Field | Type | Description |
> > | - | - | - |
> > | transferResults | \[TransferInstructionResult] | |
> > | senderChangeMap | InstrumentHoldingMap | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) WalletUserProxy\_BatchTransferResult
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) WalletUserProxy\_BatchTransferResult
>
> **instance** GetField "senderChangeMap" WalletUserProxy\_BatchTransferResult InstrumentHoldingMap
>
> **instance** GetField "transferResults" WalletUserProxy\_BatchTransferResult \[TransferInstructionResult]
>
> **instance** SetField "senderChangeMap" WalletUserProxy\_BatchTransferResult InstrumentHoldingMap
>
> **instance** SetField "transferResults" WalletUserProxy\_BatchTransferResult \[TransferInstructionResult]
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) WalletUserProxy WalletUserProxy\_BatchTransfer WalletUserProxy\_BatchTransferResult
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) WalletUserProxy WalletUserProxy\_BatchTransfer WalletUserProxy\_BatchTransferResult
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) WalletUserProxy WalletUserProxy\_BatchTransfer WalletUserProxy\_BatchTransferResult

## Functions

getFirstSender
: \[TransferFactoryCall] -> [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)

Determine the sender of the transfer in the first call.

runBatch
: WalletUserProxy -> WalletUserProxy\_BatchTransfer -> [Update](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-update-68072) WalletUserProxy\_BatchTransferResult

Validate the batch call and run it

executeTransferCalls
: WalletUserProxy -> [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) -> [Optional](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-prelude-optional-37153) ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) FeaturedAppRight) -> \[TransferFactoryCall] -> InstrumentHoldingMap -> \[TransferInstructionResult] -> [Update](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-update-68072) WalletUserProxy\_BatchTransferResult

Run the individual transfer calls in the batch with proper threading of input holdings.

exerciseProxyChoice
: [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) t ch r => WalletUserProxy -> [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) t -> ProxyArg ch -> ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) t -> [Update](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-update-68072) [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)) -> [Update](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-update-68072) (ProxyResult r)

Shared code to execute the proxied choice.

validateAppRight
: WalletUserProxy -> [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) FeaturedAppRight -> [Update](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-update-68072) ()

checkAllowList
: [Optional](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-prelude-optional-37153) \[[Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)] -> [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) -> [Update](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-update-68072) ()

createAppMarker
: WalletUserProxy -> [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) -> [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) FeaturedAppRight -> [Update](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-update-68072) FeaturedAppRight\_CreateActivityMarkerResult

proxyBeneficiaries
: WalletUserProxy -> [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) -> \[AppRewardBeneficiary]

Get the list of beneficiaries for the featured app marker.

validProxy
: WalletUserProxy -> [Bool](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-bool-66265)

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.
