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

> Documentation for Splice.ExternalPartyAmuletRules

## Templates

**template** ExternalPartyAmuletRules

> Rules contract that can be used in transactions that require signatures from an external party. This is intended to get archived and recreated as rarely as possible to support long delays between preparing and signing a transaction.
>
> Signatory: dso
>
> | Field | Type | Description |
> | - | - | - |
> | dso | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
>
> * **Choice** Archive
>
>   Controller: dso
>
>   Returns: ()
>
>   (no fields)
>
> * **Choice** ExternalPartyAmuletRules\_CreateTransferCommand
>
>   Controller: sender
>
>   Returns: ExternalPartyAmuletRules\_CreateTransferCommandResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | sender | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
>   | receiver | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
>   | delegate | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
>   | amount | [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135) | |
>   | expiresAt | [Time](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-time-63886) | |
>   | nonce | [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261) | |
>   | description | [Optional](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-prelude-optional-37153) [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) | |
>   | expectedDso | [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) | |
>
> * **Choice** ExternalPartyAmuletRules\_ExpireAmuletAllocations
>
>   Controller: dso
>
>   Returns: ExternalPartyAmuletRules\_ExpireAmuletAllocationsResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | expectedDso | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
>   | inputs | \[ExternalPartyAmuletRules\_ExpireAmuletAllocationInput] | |
>   | observers | \[[Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)] | |
>
> * **interface instance** AllocationFactory **for** ExternalPartyAmuletRules
>
> * **interface instance** TransferFactory **for** ExternalPartyAmuletRules

**template** TransferCommand

> Deprecated: The token standard transfer APIs now support 24h signing delays so this contract is no longer required.
>
> One-time delegation to execute a transfer to the given receiver for the given amount.
>
> Signatory: sender, dso
>
> | Field | Type | Description |
> | - | - | - |
> | dso | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> | sender | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> | receiver | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> | delegate | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | The delegate that actually executes the transfer |
> | amount | [Decimal](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-decimal-18135) | |
> | expiresAt | [Time](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-time-63886) | Expiry of the command until when TransferCommand\_Send must be called |
> | nonce | [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261) | Expected nonce value to order and deduplicate concurrent transfers. Starts at 0 and the next value to use can then be read from TransferCommandCounter and the in-flight TransferCommand contracts. |
> | description | [Optional](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-prelude-optional-37153) [Text](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-text-51952) | |
>
> * **Choice** Archive
>
>   Controller: sender, dso
>
>   Returns: ()
>
>   (no fields)
>
> * **Choice** TransferCommand\_Expire
>
>   Controller: p
>
>   Returns: TransferCommand\_ExpireResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | p | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
>
> * **Choice** TransferCommand\_Send
>
>   Controller: delegate
>
>   Returns: TransferCommand\_SendResult
>
>   | Field | Type | Description |
>   | - | - | - |
>   | context | PaymentTransferContext | |
>   | inputs | \[TransferInput] | |
>   | transferPreapprovalCidO | [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) TransferPreapproval) | |
>   | transferCounterCid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TransferCommandCounter | |
>
> * **Choice** TransferCommand\_Withdraw
>
>   Controller: sender
>
>   Returns: TransferCommand\_WithdrawResult
>
>   (no fields)

**template** TransferCommandCounter

> A contract tracking the number of completed TransferCommands per sender, which is used to determine the nonces used in TransferCommands for deduplication.
>
> Signatory: dso
>
> | Field | Type | Description |
> | - | - | - |
> | dso | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> | sender | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> | nextNonce | [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261) | |
>
> * **Choice** Archive
>
>   Controller: dso
>
>   Returns: ()
>
>   (no fields)

## Data Types

**data** ExternalPartyAmuletRules\_CreateTransferCommandResult

> ExternalPartyAmuletRules\_CreateTransferCommandResult
>
> > | Field | Type | Description |
> > | - | - | - |
> > | transferCommandCid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TransferCommand | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) ExternalPartyAmuletRules\_CreateTransferCommandResult
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) ExternalPartyAmuletRules\_CreateTransferCommandResult
>
> **instance** GetField "transferCommandCid" ExternalPartyAmuletRules\_CreateTransferCommandResult ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TransferCommand)
>
> **instance** SetField "transferCommandCid" ExternalPartyAmuletRules\_CreateTransferCommandResult ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TransferCommand)
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) ExternalPartyAmuletRules ExternalPartyAmuletRules\_CreateTransferCommand ExternalPartyAmuletRules\_CreateTransferCommandResult
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) ExternalPartyAmuletRules ExternalPartyAmuletRules\_CreateTransferCommand ExternalPartyAmuletRules\_CreateTransferCommandResult
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) ExternalPartyAmuletRules ExternalPartyAmuletRules\_CreateTransferCommand ExternalPartyAmuletRules\_CreateTransferCommandResult

**data** ExternalPartyAmuletRules\_ExpireAmuletAllocationInput

> ExternalPartyAmuletRules\_ExpireAmuletAllocationInput
>
> > | Field | Type | Description |
> > | - | - | - |
> > | allocationCid | [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) AmuletAllocation | |
> > | expireLock | [Bool](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-bool-66265) | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) ExternalPartyAmuletRules\_ExpireAmuletAllocationInput
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) ExternalPartyAmuletRules\_ExpireAmuletAllocationInput
>
> **instance** GetField "allocationCid" ExternalPartyAmuletRules\_ExpireAmuletAllocationInput ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) AmuletAllocation)
>
> **instance** GetField "expireLock" ExternalPartyAmuletRules\_ExpireAmuletAllocationInput [Bool](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-bool-66265)
>
> **instance** GetField "inputs" ExternalPartyAmuletRules\_ExpireAmuletAllocations \[ExternalPartyAmuletRules\_ExpireAmuletAllocationInput]
>
> **instance** SetField "allocationCid" ExternalPartyAmuletRules\_ExpireAmuletAllocationInput ([ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) AmuletAllocation)
>
> **instance** SetField "expireLock" ExternalPartyAmuletRules\_ExpireAmuletAllocationInput [Bool](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-bool-66265)
>
> **instance** SetField "inputs" ExternalPartyAmuletRules\_ExpireAmuletAllocations \[ExternalPartyAmuletRules\_ExpireAmuletAllocationInput]

**data** ExternalPartyAmuletRules\_ExpireAmuletAllocationsResult

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

**data** TransferCommandResult

> TransferCommandResultFailure
>
> > | Field | Type | Description |
> > | - | - | - |
> > | reason | InvalidTransferReason | |
>
> TransferCommandResultSuccess
>
> > | Field | Type | Description |
> > | - | - | - |
> > | result | TransferResult | |
>
> **instance** [Eq](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-classes-eq-22713) TransferCommandResult
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) TransferCommandResult
>
> **instance** GetField "reason" TransferCommandResult InvalidTransferReason
>
> **instance** GetField "result" TransferCommandResult TransferResult
>
> **instance** GetField "result" TransferCommand\_SendResult TransferCommandResult
>
> **instance** SetField "reason" TransferCommandResult InvalidTransferReason
>
> **instance** SetField "result" TransferCommandResult TransferResult
>
> **instance** SetField "result" TransferCommand\_SendResult TransferCommandResult

**data** TransferCommand\_ExpireResult

> TransferCommand\_ExpireResult
>
> > | Field | Type | Description |
> > | - | - | - |
> > | sender | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> > | nonce | [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) TransferCommand\_ExpireResult
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) TransferCommand\_ExpireResult
>
> **instance** GetField "nonce" TransferCommand\_ExpireResult [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** GetField "sender" TransferCommand\_ExpireResult [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)
>
> **instance** SetField "nonce" TransferCommand\_ExpireResult [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** SetField "sender" TransferCommand\_ExpireResult [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) TransferCommand TransferCommand\_Expire TransferCommand\_ExpireResult
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) TransferCommand TransferCommand\_Expire TransferCommand\_ExpireResult
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) TransferCommand TransferCommand\_Expire TransferCommand\_ExpireResult

**data** TransferCommand\_SendResult

> TransferCommand\_SendResult
>
> > | Field | Type | Description |
> > | - | - | - |
> > | result | TransferCommandResult | |
> > | sender | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> > | nonce | [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) TransferCommand\_SendResult
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) TransferCommand\_SendResult
>
> **instance** GetField "nonce" TransferCommand\_SendResult [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** GetField "result" TransferCommand\_SendResult TransferCommandResult
>
> **instance** GetField "sender" TransferCommand\_SendResult [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)
>
> **instance** SetField "nonce" TransferCommand\_SendResult [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** SetField "result" TransferCommand\_SendResult TransferCommandResult
>
> **instance** SetField "sender" TransferCommand\_SendResult [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) TransferCommand TransferCommand\_Send TransferCommand\_SendResult
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) TransferCommand TransferCommand\_Send TransferCommand\_SendResult
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) TransferCommand TransferCommand\_Send TransferCommand\_SendResult

**data** TransferCommand\_WithdrawResult

> TransferCommand\_WithdrawResult
>
> > | Field | Type | Description |
> > | - | - | - |
> > | sender | [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932) | |
> > | nonce | [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) TransferCommand\_WithdrawResult
>
> **instance** [Show](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-ghc-show-show-65360) TransferCommand\_WithdrawResult
>
> **instance** GetField "nonce" TransferCommand\_WithdrawResult [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** GetField "sender" TransferCommand\_WithdrawResult [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)
>
> **instance** SetField "nonce" TransferCommand\_WithdrawResult [Int](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-ghc-types-int-37261)
>
> **instance** SetField "sender" TransferCommand\_WithdrawResult [Party](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-party-57932)
>
> **instance** [HasExercise](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasexercise-70422) TransferCommand TransferCommand\_Withdraw TransferCommand\_WithdrawResult
>
> **instance** [HasFromAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hasfromanychoice-81184) TransferCommand TransferCommand\_Withdraw TransferCommand\_WithdrawResult
>
> **instance** [HasToAnyChoice](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#class-da-internal-template-functions-hastoanychoice-82571) TransferCommand TransferCommand\_Withdraw TransferCommand\_WithdrawResult

## Functions

amulet\_transferFactory\_transferImpl
: ExternalPartyAmuletRules -> [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TransferFactory -> TransferFactory\_Transfer -> [Update](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-update-68072) TransferInstructionResult

amulet\_allocationFactory\_allocateImpl
: ExternalPartyAmuletRules -> [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) AllocationFactory -> AllocationFactory\_Allocate -> [Update](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-update-68072) AllocationInstructionResult

requireExpectedAdminMatch
: [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) ()
