> ## 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.Api.Token.TransferInstructionV2

> Reference documentation for Daml module Splice.Api.Token.TransferInstructionV2.

Daml module

# Splice.Api.Token.TransferInstructionV2

V2 API to instruct transfers of holdings between accounts.

Daml

Module
Splice.Api.Token.TransferInstructionV2

Latest release
0.10.4

## Interfaces

### Interface `TransferFactory`

A factory contract to instruct transfers of holdings between parties.

View Type: [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084)

Choices:

#### Choice `Archive`

Controllers: `Signatories of implementing template`

Returns: ()

#### Choice `TransferFactory_PublicFetch`

Fetch the view of the factory contract.

Controllers: `actors`

Returns: [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084)

Arguments:

**actors** `[Party]`

Set of parties executing the fetch.

#### Choice `TransferFactory_Transfer`

Instruct the registry to execute a transfer.
Implementations MUST ensure that this choice fails if `transfer.executeBefore` is in the past.

Controllers: `actors`

Returns: [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)

Arguments:

**transfer** `Transfer`

The transfer to execute.

Implementations MUST validate that the admin of the transferred instrument

matches the admin of the factory.

**actors** `[Party]`

Set of parties executing the transfer.

Implementations MUST check these parties to avoid unauthorized transfer instructions.

Implementations SHOULD

* complete the transfer in a single-step if the actors include all

parties required to authorize the transfer

* allow all the sender's account parties to call this choice, so they

can all initiate a transfer on their own

**extraArgs** `ExtraArgs`

The extra arguments to pass to the transfer implementation.

Methods:

#### Method `transferFactory_publicFetchImpl`

Type: `ContractId` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) -> [`TransferFactory_PublicFetch`](#type-splice-api-token-transferinstructionv2-transferfactorypublicfetch-11963) -> `Update` [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084)

#### Method `transferFactory_transferExtraObservers`

Type: [`TransferFactory_Transfer`](#type-splice-api-token-transferinstructionv2-transferfactorytransfer-54000) -> \[`Party`]

#### Method `transferFactory_transferImpl`

Type: `ContractId` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) -> [`TransferFactory_Transfer`](#type-splice-api-token-transferinstructionv2-transferfactorytransfer-54000) -> `Update` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)

### Interface `TransferInstruction`

An interface for tracking the status of a transfer instruction,
i.e., a request to a registry app to execute a transfer.

View Type: [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402)

Choices:

#### Choice `Archive`

Controllers: `Signatories of implementing template`

Returns: ()

#### Choice `TransferInstruction_Accept`

Accept the transfer instruction as someone that needs to authorize it, either on the
sending or receiving side.

Implementations MUST ensure that the transfer instruction is archived upon acceptance.
They SHOULD do so by calling `TransferInstructionV1.TransferInstruction_Accept`
where possible to maximize compatibility with v1 transaction parsers.

Note that while implementations will typically return `TransferInstructionResult_Completed`,
this is not guaranteed. The result of the choice is implementation-specific and MAY
be any of the three possible results.

Controllers: `actors`

Returns: [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)

Arguments:

**actors** `[Party]`

Set of parties executing the acceptance.

Implementations MUST check these parties to avoid unauthorized acceptance.

Implementations SHOULD allow the owner and the provider of the recipient

account to call this choice.

**extraArgs** `ExtraArgs`

Additional context required in order to exercise the choice.

#### Choice `TransferInstruction_Reject`

Reject the transfer offer represented by the transfer instruction.

Implementations MUST ensure that the transfer instruction is archived upon rejection.
They SHOULD do so by calling `TransferInstructionV1.TransferInstruction_Reject`
where possible to maximize compatibility with v1 transaction parsers.

Controllers: `actors`

Returns: [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)

Arguments:

**actors** `[Party]`

Set of parties executing the rejection.

Implementations MUST check these parties to avoid unauthorized rejection.

Implementations SHOULD allow the owner and the provider of the recipient

account to call this choice.

**extraArgs** `ExtraArgs`

Additional context required in order to exercise the choice.

#### Choice `TransferInstruction_Withdraw`

Withdraw the transfer offer represented by the transfer instruction.

Implementations MUST ensure that the transfer instruction is archived upon withdrawal.
They SHOULD do so by calling `TransferInstructionV1.TransferInstruction_Withdraw`
where possible to maximize compatibility with v1 transaction parsers.

Controllers: `actors`

Returns: [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)

Arguments:

**actors** `[Party]`

Set of parties executing the withdrawal.

Implementations MUST check these parties to avoid unauthorized withdrawal.

Implementations SHOULD allow the owner and the provider of the sender

account to call this choice.

**extraArgs** `ExtraArgs`

Additional context required in order to exercise the choice.

Methods:

#### Method `transferInstruction_acceptExtraObservers`

Type: [`TransferInstruction_Accept`](#type-splice-api-token-transferinstructionv2-transferinstructionaccept-24017) -> \[`Party`]

#### Method `transferInstruction_acceptImpl`

Type: `ContractId` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) -> [`TransferInstruction_Accept`](#type-splice-api-token-transferinstructionv2-transferinstructionaccept-24017) -> `Update` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)

#### Method `transferInstruction_rejectExtraObservers`

Type: [`TransferInstruction_Reject`](#type-splice-api-token-transferinstructionv2-transferinstructionreject-12876) -> \[`Party`]

#### Method `transferInstruction_rejectImpl`

Type: `ContractId` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) -> [`TransferInstruction_Reject`](#type-splice-api-token-transferinstructionv2-transferinstructionreject-12876) -> `Update` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)

#### Method `transferInstruction_withdrawExtraObservers`

Type: [`TransferInstruction_Withdraw`](#type-splice-api-token-transferinstructionv2-transferinstructionwithdraw-30201) -> \[`Party`]

#### Method `transferInstruction_withdrawImpl`

Type: `ContractId` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) -> [`TransferInstruction_Withdraw`](#type-splice-api-token-transferinstructionv2-transferinstructionwithdraw-30201) -> `Update` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)

## Data Types

### `data Transfer`

A specification of a transfer of holdings between two accounts.

Constructors:

* `Transfer`

**sender** `Account`

The sender of the transfer.

**receiver** `Account`

The receiver of the transfer.

**amount** `Decimal`

The amount to transfer.

**instrumentId** `InstrumentId`

The instrument identifier.

**requestedAt** `Time`

Wallet provided timestamp when the transfer was requested.

MUST be in the past when instructing the transfer.

**executeBefore** `Time`

Until when (exclusive) the transfer may be executed. MUST be in the

future when instructing the transfer.

Registries SHOULD NOT execute the transfer instruction after this time,

so that senders can retry creating a new transfer instruction after this time.

Registries MAY limit the duration between `requestedAt` and

`executeBefore` to limit the resources spent on tracking active

transfer instructions.

**inputHoldingCids** `[ContractId Holding]`

The holding contracts that should be used to fund the transfer.

The holdings MUST be owned by the sender account, and match the

instrument specified by the transfer.

MAY be empty if the registry supports automatic selection of holdings for transfers

or does not represent holdings on-ledger.

If specified, then the transfer MUST archive all of these holdings, so

that the execution of the transfer conflicts with any other transfers

using these holdings. Thereby allowing that the sender can use

deliberate contention on holdings to prevent duplicate transfers.

**meta** `Metadata`

Metadata.

Instances:

* instance `Eq` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952)
* instance `Show` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952)
* instance `GetField` `amount` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) `Decimal`
* instance `GetField` `executeBefore` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) `Time`
* instance `GetField` `inputHoldingCids` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) \[`ContractId` `Holding`]
* instance `GetField` `instrumentId` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) `InstrumentId`
* instance `GetField` `meta` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) `Metadata`
* instance `GetField` `receiver` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) `Account`
* instance `GetField` `requestedAt` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) `Time`
* instance `GetField` `sender` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) `Account`
* instance `GetField` `transfer` [`TransferFactory_Transfer`](#type-splice-api-token-transferinstructionv2-transferfactorytransfer-54000) [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952)
* instance `GetField` `transfer` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402) [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952)
* instance `SetField` `amount` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) `Decimal`
* instance `SetField` `executeBefore` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) `Time`
* instance `SetField` `inputHoldingCids` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) \[`ContractId` `Holding`]
* instance `SetField` `instrumentId` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) `InstrumentId`
* instance `SetField` `meta` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) `Metadata`
* instance `SetField` `receiver` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) `Account`
* instance `SetField` `requestedAt` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) `Time`
* instance `SetField` `sender` [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952) `Account`
* instance `SetField` `transfer` [`TransferFactory_Transfer`](#type-splice-api-token-transferinstructionv2-transferfactorytransfer-54000) [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952)
* instance `SetField` `transfer` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402) [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952)

### `data TransferFactoryView`

View for `TransferFactory`.

Constructors:

* `TransferFactoryView`

**admin** `Party`

The party representing the registry app that administers the instruments for

which this transfer factory can be used.

**meta** `Metadata`

Additional metadata specific to the transfer factory, used for extensibility.

Instances:

* instance `Eq` [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084)
* instance `Show` [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084)
* instance `HasMethod` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) `transferFactory_publicFetchImpl` (`ContractId` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) -> [`TransferFactory_PublicFetch`](#type-splice-api-token-transferinstructionv2-transferfactorypublicfetch-11963) -> `Update` [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084))
* instance `HasFromAnyView` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084)
* instance `HasInterfaceView` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084)
* instance `GetField` `admin` [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084) `Party`
* instance `GetField` `meta` [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084) `Metadata`
* instance `SetField` `admin` [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084) `Party`
* instance `SetField` `meta` [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084) `Metadata`
* instance `HasExercise` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) [`TransferFactory_PublicFetch`](#type-splice-api-token-transferinstructionv2-transferfactorypublicfetch-11963) [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084)
* instance `HasExerciseGuarded` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) [`TransferFactory_PublicFetch`](#type-splice-api-token-transferinstructionv2-transferfactorypublicfetch-11963) [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084)
* instance `HasFromAnyChoice` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) [`TransferFactory_PublicFetch`](#type-splice-api-token-transferinstructionv2-transferfactorypublicfetch-11963) [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084)
* instance `HasToAnyChoice` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) [`TransferFactory_PublicFetch`](#type-splice-api-token-transferinstructionv2-transferfactorypublicfetch-11963) [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084)

### `data TransferInstructionAction`

Actions to advance the state of a transfer instruction.

Constructors:

* `TIA_Accept`

- `TIA_Reject`

* `TIA_Withdraw`

- `TIA_Custom`

**id** `Text`

Identifier of the action. Namespaced analogously to metadata keys.

Used to represent registry-specific actions that need to happen
for the transfer instruction to advance.

Instances:

* instance `Eq` [`TransferInstructionAction`](#type-splice-api-token-transferinstructionv2-transferinstructionaction-41433)
* instance `Ord` [`TransferInstructionAction`](#type-splice-api-token-transferinstructionv2-transferinstructionaction-41433)
* instance `Show` [`TransferInstructionAction`](#type-splice-api-token-transferinstructionv2-transferinstructionaction-41433)
* instance `GetField` `availableActions` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402) (`Map` [`TransferInstructionAction`](#type-splice-api-token-transferinstructionv2-transferinstructionaction-41433) \[\[`Party`]])
* instance `GetField` `id` [`TransferInstructionAction`](#type-splice-api-token-transferinstructionv2-transferinstructionaction-41433) `Text`
* instance `SetField` `availableActions` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402) (`Map` [`TransferInstructionAction`](#type-splice-api-token-transferinstructionv2-transferinstructionaction-41433) \[\[`Party`]])
* instance `SetField` `id` [`TransferInstructionAction`](#type-splice-api-token-transferinstructionv2-transferinstructionaction-41433) `Text`

### `data TransferInstructionResult`

The result of instructing a transfer or advancing the state of a transfer instruction.

Constructors:

* `TransferInstructionResult`

**output** `TransferInstructionResult_Output`

The output of the step.

**senderChangeCids** `[ContractId Holding]`

New holdings owned by the sender created to return "change". Can be used

by actors to batch creating or updating multiple transfer instructions

in a single Daml transaction.

**meta** `Metadata`

Additional metadata specific to the transfer instruction, used for extensibility; e.g., fees charged.

Instances:

* instance `Eq` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `Show` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasMethod` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) `transferFactory_transferImpl` (`ContractId` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) -> [`TransferFactory_Transfer`](#type-splice-api-token-transferinstructionv2-transferfactorytransfer-54000) -> `Update` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952))
* instance `HasMethod` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) `transferInstruction_acceptImpl` (`ContractId` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) -> [`TransferInstruction_Accept`](#type-splice-api-token-transferinstructionv2-transferinstructionaccept-24017) -> `Update` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952))
* instance `HasMethod` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) `transferInstruction_rejectImpl` (`ContractId` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) -> [`TransferInstruction_Reject`](#type-splice-api-token-transferinstructionv2-transferinstructionreject-12876) -> `Update` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952))
* instance `HasMethod` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) `transferInstruction_withdrawImpl` (`ContractId` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) -> [`TransferInstruction_Withdraw`](#type-splice-api-token-transferinstructionv2-transferinstructionwithdraw-30201) -> `Update` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952))
* instance `GetField` `meta` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952) `Metadata`
* instance `GetField` `output` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952) [`TransferInstructionResult_Output`](#type-splice-api-token-transferinstructionv2-transferinstructionresultoutput-2217)
* instance `GetField` `senderChangeCids` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952) \[`ContractId` `Holding`]
* instance `SetField` `meta` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952) `Metadata`
* instance `SetField` `output` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952) [`TransferInstructionResult_Output`](#type-splice-api-token-transferinstructionv2-transferinstructionresultoutput-2217)
* instance `SetField` `senderChangeCids` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952) \[`ContractId` `Holding`]
* instance `HasExercise` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) [`TransferFactory_Transfer`](#type-splice-api-token-transferinstructionv2-transferfactorytransfer-54000) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasExercise` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) [`TransferInstruction_Accept`](#type-splice-api-token-transferinstructionv2-transferinstructionaccept-24017) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasExercise` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) [`TransferInstruction_Reject`](#type-splice-api-token-transferinstructionv2-transferinstructionreject-12876) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasExercise` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) [`TransferInstruction_Withdraw`](#type-splice-api-token-transferinstructionv2-transferinstructionwithdraw-30201) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasExerciseGuarded` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) [`TransferFactory_Transfer`](#type-splice-api-token-transferinstructionv2-transferfactorytransfer-54000) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasExerciseGuarded` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) [`TransferInstruction_Accept`](#type-splice-api-token-transferinstructionv2-transferinstructionaccept-24017) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasExerciseGuarded` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) [`TransferInstruction_Reject`](#type-splice-api-token-transferinstructionv2-transferinstructionreject-12876) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasExerciseGuarded` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) [`TransferInstruction_Withdraw`](#type-splice-api-token-transferinstructionv2-transferinstructionwithdraw-30201) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasFromAnyChoice` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) [`TransferFactory_Transfer`](#type-splice-api-token-transferinstructionv2-transferfactorytransfer-54000) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasFromAnyChoice` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) [`TransferInstruction_Accept`](#type-splice-api-token-transferinstructionv2-transferinstructionaccept-24017) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasFromAnyChoice` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) [`TransferInstruction_Reject`](#type-splice-api-token-transferinstructionv2-transferinstructionreject-12876) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasFromAnyChoice` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) [`TransferInstruction_Withdraw`](#type-splice-api-token-transferinstructionv2-transferinstructionwithdraw-30201) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasToAnyChoice` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) [`TransferFactory_Transfer`](#type-splice-api-token-transferinstructionv2-transferfactorytransfer-54000) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasToAnyChoice` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) [`TransferInstruction_Accept`](#type-splice-api-token-transferinstructionv2-transferinstructionaccept-24017) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasToAnyChoice` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) [`TransferInstruction_Reject`](#type-splice-api-token-transferinstructionv2-transferinstructionreject-12876) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)
* instance `HasToAnyChoice` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) [`TransferInstruction_Withdraw`](#type-splice-api-token-transferinstructionv2-transferinstructionwithdraw-30201) [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)

### `data TransferInstructionResult_Output`

The output of instructing a transfer or advancing the state of a transfer instruction.

Constructors:

* `TransferInstructionResult_Pending`

**transferInstructionCid** `ContractId TransferInstruction`

Contract id of the transfer instruction representing the pending state.

Use this result to communicate that the transfer is pending further steps.

* `TransferInstructionResult_Completed`

**receiverHoldingCids** `[ContractId Holding]`

The newly created holdings owned by the receiver as part of successfully

completing the transfer.

MAY be empty if the registry does not represent holdings on-ledger.

Use this result to communicate that the transfer succeeded and the receiver
has received their holdings.

* `TransferInstructionResult_Failed`

Use this result to communicate that the transfer did not succeed and all holdings (minus fees)
have been returned to the sender.

Instances:

* instance `Eq` [`TransferInstructionResult_Output`](#type-splice-api-token-transferinstructionv2-transferinstructionresultoutput-2217)
* instance `Show` [`TransferInstructionResult_Output`](#type-splice-api-token-transferinstructionv2-transferinstructionresultoutput-2217)
* instance `GetField` `output` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952) [`TransferInstructionResult_Output`](#type-splice-api-token-transferinstructionv2-transferinstructionresultoutput-2217)
* instance `GetField` `receiverHoldingCids` [`TransferInstructionResult_Output`](#type-splice-api-token-transferinstructionv2-transferinstructionresultoutput-2217) \[`ContractId` `Holding`]
* instance `GetField` `transferInstructionCid` [`TransferInstructionResult_Output`](#type-splice-api-token-transferinstructionv2-transferinstructionresultoutput-2217) (`ContractId` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129))
* instance `SetField` `output` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952) [`TransferInstructionResult_Output`](#type-splice-api-token-transferinstructionv2-transferinstructionresultoutput-2217)
* instance `SetField` `receiverHoldingCids` [`TransferInstructionResult_Output`](#type-splice-api-token-transferinstructionv2-transferinstructionresultoutput-2217) \[`ContractId` `Holding`]
* instance `SetField` `transferInstructionCid` [`TransferInstructionResult_Output`](#type-splice-api-token-transferinstructionv2-transferinstructionresultoutput-2217) (`ContractId` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129))

### `data TransferInstructionView`

View for `TransferInstruction`.

Constructors:

* `TransferInstructionView`

**originalInstructionCid** `Optional (ContractId TransferInstruction)`

The contract id of the original transfer instruction contract, which is `None`

for the original transfer instruction itself.

This SHOULD be used by wallets to correlate the same transfer instruction across

updates to its state.

**transfer** `Transfer`

The transfer specified by the transfer instruction.

**expiresAt** `Optional Time`

The time at which the transfer instruction expires if inactive.

Registries MAY expire the transfer instruction after this time. Thereby

recovering storage resources and protecting themselves from

denial-of-service attacks.

Registries SHOULD avoid unnecessary expiries by

* making the expiry time as close to the transfer's executeBefore as possible

* bumping expiry on every action on the transfer instruction

**availableActions** `Map TransferInstructionAction [[Party]]`

What actions are available to which groups of parties. The list of lists

is interpreted as a set of sets and represents a disjunction of

conjunctions of parties, i.e., each inner list represents a group of

parties that can act jointly to execute the action.

This field can be used to inform wallet users whether they can take an action or not;

and which other parties they might be waiting on to take their action.

Supports multiple parties for actions that require joint authorization. Executing them

will require appropriate, registry-specific delegation contracts to be in place.

**meta** `Metadata`

Additional metadata specific to the transfer instruction, used for extensibility; e.g., more detailed status information.

Instances:

* instance `Eq` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402)
* instance `Show` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402)
* instance `HasFromAnyView` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402)
* instance `HasInterfaceView` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402)
* instance `GetField` `availableActions` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402) (`Map` [`TransferInstructionAction`](#type-splice-api-token-transferinstructionv2-transferinstructionaction-41433) \[\[`Party`]])
* instance `GetField` `expiresAt` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402) (`Optional` `Time`)
* instance `GetField` `meta` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402) `Metadata`
* instance `GetField` `originalInstructionCid` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402) (`Optional` (`ContractId` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129)))
* instance `GetField` `transfer` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402) [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952)
* instance `SetField` `availableActions` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402) (`Map` [`TransferInstructionAction`](#type-splice-api-token-transferinstructionv2-transferinstructionaction-41433) \[\[`Party`]])
* instance `SetField` `expiresAt` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402) (`Optional` `Time`)
* instance `SetField` `meta` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402) `Metadata`
* instance `SetField` `originalInstructionCid` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402) (`Optional` (`ContractId` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129)))
* instance `SetField` `transfer` [`TransferInstructionView`](#type-splice-api-token-transferinstructionv2-transferinstructionview-64402) [`Transfer`](#type-splice-api-token-transferinstructionv2-transfer-64952)

## Functions

### `transferInstruction_acceptImpl`

`transferInstruction_acceptImpl` : [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) -> `ContractId` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) -> [`TransferInstruction_Accept`](#type-splice-api-token-transferinstructionv2-transferinstructionaccept-24017) -> `Update` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)

### `transferInstruction_rejectImpl`

`transferInstruction_rejectImpl` : [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) -> `ContractId` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) -> [`TransferInstruction_Reject`](#type-splice-api-token-transferinstructionv2-transferinstructionreject-12876) -> `Update` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)

### `transferInstruction_withdrawImpl`

`transferInstruction_withdrawImpl` : [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) -> `ContractId` [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) -> [`TransferInstruction_Withdraw`](#type-splice-api-token-transferinstructionv2-transferinstructionwithdraw-30201) -> `Update` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)

### `transferInstruction_acceptExtraObservers`

`transferInstruction_acceptExtraObservers` : [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) -> [`TransferInstruction_Accept`](#type-splice-api-token-transferinstructionv2-transferinstructionaccept-24017) -> \[`Party`]

### `transferInstruction_rejectExtraObservers`

`transferInstruction_rejectExtraObservers` : [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) -> [`TransferInstruction_Reject`](#type-splice-api-token-transferinstructionv2-transferinstructionreject-12876) -> \[`Party`]

### `transferInstruction_withdrawExtraObservers`

`transferInstruction_withdrawExtraObservers` : [`TransferInstruction`](#type-splice-api-token-transferinstructionv2-transferinstruction-61129) -> [`TransferInstruction_Withdraw`](#type-splice-api-token-transferinstructionv2-transferinstructionwithdraw-30201) -> \[`Party`]

### `transferFactory_transferExtraObservers`

`transferFactory_transferExtraObservers` : [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) -> [`TransferFactory_Transfer`](#type-splice-api-token-transferinstructionv2-transferfactorytransfer-54000) -> \[`Party`]

### `transferFactory_transferImpl`

`transferFactory_transferImpl` : [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) -> `ContractId` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) -> [`TransferFactory_Transfer`](#type-splice-api-token-transferinstructionv2-transferfactorytransfer-54000) -> `Update` [`TransferInstructionResult`](#type-splice-api-token-transferinstructionv2-transferinstructionresult-97952)

### `transferFactory_publicFetchImpl`

`transferFactory_publicFetchImpl` : [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) -> `ContractId` [`TransferFactory`](#type-splice-api-token-transferinstructionv2-transferfactory-72147) -> [`TransferFactory_PublicFetch`](#type-splice-api-token-transferinstructionv2-transferfactorypublicfetch-11963) -> `Update` [`TransferFactoryView`](#type-splice-api-token-transferinstructionv2-transferfactoryview-8084)
