> ## 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.Wallet.Payment

> Documentation for Splice.Wallet.Payment

## Templates

**template** AcceptedAppPayment

> Signatory: sender, provider, map (\ r -> (DA.Internal.Record.getField @"receiver" r)) amuletReceiverAmounts
>
> | Field | Type | Description |
> | - | - | - |
> | sender | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> | amuletReceiverAmounts | \[ReceiverAmuletAmount] | |
> | 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) | |
> | lockedAmulet | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) LockedAmulet | |
> | round | Round | The round in which the locked amulet was created, added as an extra field so we can avoid ingesting locked amulets. |
> | reference | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) AppPaymentRequest | The contract id of the original payment request to correlate it. Note that the contract will no longer be active. |
>
> * **Choice** AcceptedAppPayment\_Collect
>
>   Controller: signatory this
>
>   Returns: AcceptedAppPayment\_CollectResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | context | AppTransferContext | |
>
> * **Choice** AcceptedAppPayment\_Expire
>
>   Controller: sender
>
>   Returns: AcceptedAppPayment\_ExpireResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | context | AppTransferContext | |
>
> * **Choice** AcceptedAppPayment\_Reject
>
>   Controller: map (\ r -> (DA.Internal.Record.getField @"receiver" r)) amuletReceiverAmounts
>
>   Returns: AcceptedAppPayment\_RejectResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | context | AppTransferContext | |
>
> * **Choice** Archive
>
>   Controller: sender, provider, map (\ r -> (DA.Internal.Record.getField @"receiver" r)) amuletReceiverAmounts
>
>   Returns: ()
>
>   (no fields)

**template** AppPaymentRequest

> Signatory: sender, appPaymentRequest\_receivers this, provider
>
> | Field | Type | Description |
> | - | - | - |
> | sender | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | The party that should pay. |
> | receiverAmounts | \[ReceiverAmount] | Pairs of (party, amount) requesting to be paid. |
> | provider | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | The app provider; receives usage rewards. |
> | dso | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | The DSO party of the amulet that should be used to make the payment. |
> | expiresAt | [Time](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-time-63886) | When the payment request expires. |
> | description | [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) | Human readable description of the reason / good for which the payment is requested. |
>
> * **Choice** AppPaymentRequest\_Accept
>
>   Controller: sender, walletProvider
>
>   Returns: AppPaymentRequest\_AcceptResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | inputs | \[TransferInput] | |
>   | context | PaymentTransferContext | |
>   | walletProvider | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
>
> * **Choice** AppPaymentRequest\_Expire
>
>   Controller: actor
>
>   Returns: AppPaymentRequest\_ExpireResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | actor | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
>
> * **Choice** AppPaymentRequest\_Reject
>
>   Controller: sender
>
>   Returns: AppPaymentRequest\_RejectResult
>
>   (no fields)
>
> * **Choice** AppPaymentRequest\_Withdraw
>
>   Controller: appPaymentRequest\_receivers this
>
>   Returns: AppPaymentRequest\_WithdrawResult
>
>   (no fields)
>
> * **Choice** Archive
>
>   Controller: sender, appPaymentRequest\_receivers this, provider
>
>   Returns: ()
>
>   (no fields)

**template** TerminatedAppPayment

> Instead of just archiving payments (e.g. when the request is accepted) we create an TerminatedAppPayment contract. This allows the coordinating workflow to archive its own contracts once the app-payment workflow terminated.
>
> Signatory: sender, provider, receivers
>
> | Field | Type | Description |
> | - | - | - |
> | sender | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> | provider | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> | receivers | \[[Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)] | |
> | reference | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) AppPaymentRequest | |
>
> * **Choice** Archive
>
>   Controller: sender, provider, receivers
>
>   Returns: ()
>
>   (no fields)

## Data Types

**data** AcceptedAppPayment\_CollectResult

> AcceptedAppPayment\_CollectResult
>
> > | Field | Type | Description |
> > | - | - | - |
> > | receiverAmulets | \[([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) Amulet)] | |
>
> **instance** GetField "receiverAmulets" AcceptedAppPayment\_CollectResult \[([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) Amulet)]
>
> **instance** SetField "receiverAmulets" AcceptedAppPayment\_CollectResult \[([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) Amulet)]
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) AcceptedAppPayment AcceptedAppPayment\_Collect AcceptedAppPayment\_CollectResult
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) AcceptedAppPayment AcceptedAppPayment\_Collect AcceptedAppPayment\_CollectResult
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) AcceptedAppPayment AcceptedAppPayment\_Collect AcceptedAppPayment\_CollectResult

**data** AcceptedAppPayment\_ExpireResult

> AcceptedAppPayment\_ExpireResult
>
> > | Field | Type | Description |
> > | - | - | - |
> > | amulet | AmuletCreateSummary ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) Amulet) | |
>
> **instance** GetField "amulet" AcceptedAppPayment\_ExpireResult (AmuletCreateSummary ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) Amulet))
>
> **instance** SetField "amulet" AcceptedAppPayment\_ExpireResult (AmuletCreateSummary ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) Amulet))
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) AcceptedAppPayment AcceptedAppPayment\_Expire AcceptedAppPayment\_ExpireResult
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) AcceptedAppPayment AcceptedAppPayment\_Expire AcceptedAppPayment\_ExpireResult
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) AcceptedAppPayment AcceptedAppPayment\_Expire AcceptedAppPayment\_ExpireResult

**data** AcceptedAppPayment\_RejectResult

> AcceptedAppPayment\_RejectResult
>
> > | Field | Type | Description |
> > | - | - | - |
> > | amulet | AmuletCreateSummary ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) Amulet) | |
>
> **instance** GetField "amulet" AcceptedAppPayment\_RejectResult (AmuletCreateSummary ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) Amulet))
>
> **instance** SetField "amulet" AcceptedAppPayment\_RejectResult (AmuletCreateSummary ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) Amulet))
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) AcceptedAppPayment AcceptedAppPayment\_Reject AcceptedAppPayment\_RejectResult
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) AcceptedAppPayment AcceptedAppPayment\_Reject AcceptedAppPayment\_RejectResult
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) AcceptedAppPayment AcceptedAppPayment\_Reject AcceptedAppPayment\_RejectResult

**data** AppPaymentRequest\_AcceptResult

> AppPaymentRequest\_AcceptResult
>
> > | Field | Type | Description |
> > | - | - | - |
> > | acceptedPayment | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) AcceptedAppPayment | |
> > | senderChangeAmulet | [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) Amulet) | |
>
> **instance** GetField "acceptedPayment" AppPaymentRequest\_AcceptResult ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) AcceptedAppPayment)
>
> **instance** GetField "senderChangeAmulet" AppPaymentRequest\_AcceptResult ([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) Amulet))
>
> **instance** SetField "acceptedPayment" AppPaymentRequest\_AcceptResult ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) AcceptedAppPayment)
>
> **instance** SetField "senderChangeAmulet" AppPaymentRequest\_AcceptResult ([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) Amulet))
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) AppPaymentRequest AppPaymentRequest\_Accept AppPaymentRequest\_AcceptResult
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) AppPaymentRequest AppPaymentRequest\_Accept AppPaymentRequest\_AcceptResult
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) AppPaymentRequest AppPaymentRequest\_Accept AppPaymentRequest\_AcceptResult

**data** AppPaymentRequest\_ExpireResult

> AppPaymentRequest\_ExpireResult
>
> > | Field | Type | Description |
> > | - | - | - |
> > | terminatedAppPayment | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TerminatedAppPayment | |
>
> **instance** GetField "terminatedAppPayment" AppPaymentRequest\_ExpireResult ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TerminatedAppPayment)
>
> **instance** SetField "terminatedAppPayment" AppPaymentRequest\_ExpireResult ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TerminatedAppPayment)
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) AppPaymentRequest AppPaymentRequest\_Expire AppPaymentRequest\_ExpireResult
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) AppPaymentRequest AppPaymentRequest\_Expire AppPaymentRequest\_ExpireResult
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) AppPaymentRequest AppPaymentRequest\_Expire AppPaymentRequest\_ExpireResult

**data** AppPaymentRequest\_RejectResult

> AppPaymentRequest\_RejectResult
>
> > | Field | Type | Description |
> > | - | - | - |
> > | terminatedAppPayment | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TerminatedAppPayment | |
>
> **instance** GetField "terminatedAppPayment" AppPaymentRequest\_RejectResult ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TerminatedAppPayment)
>
> **instance** SetField "terminatedAppPayment" AppPaymentRequest\_RejectResult ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TerminatedAppPayment)
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) AppPaymentRequest AppPaymentRequest\_Reject AppPaymentRequest\_RejectResult
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) AppPaymentRequest AppPaymentRequest\_Reject AppPaymentRequest\_RejectResult
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) AppPaymentRequest AppPaymentRequest\_Reject AppPaymentRequest\_RejectResult

**data** AppPaymentRequest\_WithdrawResult

> AppPaymentRequest\_WithdrawResult
>
> > | Field | Type | Description |
> > | - | - | - |
> > | terminatedAppPayment | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TerminatedAppPayment | |
>
> **instance** GetField "terminatedAppPayment" AppPaymentRequest\_WithdrawResult ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TerminatedAppPayment)
>
> **instance** SetField "terminatedAppPayment" AppPaymentRequest\_WithdrawResult ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TerminatedAppPayment)
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) AppPaymentRequest AppPaymentRequest\_Withdraw AppPaymentRequest\_WithdrawResult
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) AppPaymentRequest AppPaymentRequest\_Withdraw AppPaymentRequest\_WithdrawResult
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) AppPaymentRequest AppPaymentRequest\_Withdraw AppPaymentRequest\_WithdrawResult

**data** PaymentAmount

> PaymentAmount
>
> > | Field | Type | Description |
> > | - | - | - |
> > | amount | [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135) | |
> > | unit | Unit | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) PaymentAmount
>
> **instance** [Ord](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-ord-6395) PaymentAmount
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) PaymentAmount
>
> **instance** GetField "amount" PaymentAmount [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135)
>
> **instance** GetField "amount" ReceiverAmount PaymentAmount
>
> **instance** GetField "paymentAmount" SubscriptionPayData PaymentAmount
>
> **instance** GetField "unit" PaymentAmount Unit
>
> **instance** SetField "amount" PaymentAmount [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135)
>
> **instance** SetField "amount" ReceiverAmount PaymentAmount
>
> **instance** SetField "paymentAmount" SubscriptionPayData PaymentAmount
>
> **instance** SetField "unit" PaymentAmount Unit

**data** ReceiverAmount

> ReceiverAmount
>
> > | Field | Type | Description |
> > | - | - | - |
> > | receiver | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> > | amount | PaymentAmount | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) ReceiverAmount
>
> **instance** [Ord](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-ord-6395) ReceiverAmount
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) ReceiverAmount
>
> **instance** GetField "amount" ReceiverAmount PaymentAmount
>
> **instance** GetField "receiver" ReceiverAmount [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)
>
> **instance** GetField "receiverAmounts" AppPaymentRequest \[ReceiverAmount]
>
> **instance** SetField "amount" ReceiverAmount PaymentAmount
>
> **instance** SetField "receiver" ReceiverAmount [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)
>
> **instance** SetField "receiverAmounts" AppPaymentRequest \[ReceiverAmount]

**data** ReceiverAmulet

> ReceiverAmulet
>
> > | Field | Type | Description |
> > | - | - | - |
> > | receiver | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> > | lockedAmulet | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) LockedAmulet | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) ReceiverAmulet
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) ReceiverAmulet
>
> **instance** GetField "lockedAmulet" ReceiverAmulet ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) LockedAmulet)
>
> **instance** GetField "receiver" ReceiverAmulet [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)
>
> **instance** SetField "lockedAmulet" ReceiverAmulet ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) LockedAmulet)
>
> **instance** SetField "receiver" ReceiverAmulet [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)

**data** ReceiverAmuletAmount

> ReceiverAmuletAmount
>
> > | Field | Type | Description |
> > | - | - | - |
> > | receiver | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> > | amuletAmount | [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135) | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) ReceiverAmuletAmount
>
> **instance** [Ord](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-ord-6395) ReceiverAmuletAmount
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) ReceiverAmuletAmount
>
> **instance** GetField "amuletAmount" ReceiverAmuletAmount [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135)
>
> **instance** GetField "amuletReceiverAmounts" AcceptedAppPayment \[ReceiverAmuletAmount]
>
> **instance** GetField "receiver" ReceiverAmuletAmount [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)
>
> **instance** SetField "amuletAmount" ReceiverAmuletAmount [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135)
>
> **instance** SetField "amuletReceiverAmounts" AcceptedAppPayment \[ReceiverAmuletAmount]
>
> **instance** SetField "receiver" ReceiverAmuletAmount [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)

**data** Unit

> USDUnit
>
> AmuletUnit
>
> ExtUnit
>
> > Extension constructor to work around the current lack of upgrading for variants in Daml 3.0. Will serve as the default value in a containing record in case of an extension.
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) Unit
>
> **instance** [Ord](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-ord-6395) Unit
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) Unit
>
> **instance** GetField "unit" PaymentAmount Unit
>
> **instance** SetField "unit" PaymentAmount Unit

## Functions

paymentAmountToAmulet
: [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) -> OpenMiningRound -> PaymentAmount -> [Update](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-update-68072) [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135)

receiverAmountToAmuletReceiverAmount
: [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) -> OpenMiningRound -> ReceiverAmount -> [Update](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-update-68072) ReceiverAmuletAmount

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

unzipReceiverAmulets
: \[ReceiverAmulet] -> (\[[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) LockedAmulet])

mkReceiverOutput
: ReceiverAmuletAmount -> TransferOutput
