Digital Asset docs
Transfer
Updated 02-12-2026
The Transfer workflow moves holdings of an instrument from a sender to a receiver. Transfers use the
Canton Network Token Standard, so wallets and apps can integrate them through either the V1
(CIP-56) or the V2
(CIP-112) Standard API.
This example sends to the receiver’s basic account (This example sends to the receiver’s account with ID
Overview
When the sender creates a transfer, the Registry App picks the kind of transfer in this order:| Transfer kind | When | Result |
|---|---|---|
| Self | The sender and the receiver are the same party, for example to merge several holdings into one, or to move holdings between accounts. | The transfer completes immediately. |
| Direct | The receiver has a matching transfer pre-approval and the transfer goes to the receiver’s basic account, with receiver label (account ID) "". | The transfer completes immediately, without a receiver action. |
| Offer | All other cases. | The amount is locked and a transfer offer is created. The receiver accepts or rejects it, and the sender can withdraw it until then. |
You can jump straight to a section: API integration ·
Transfer pre-approval · Transfer ·
Troubleshooting.
To merge holding UTXOs, transfer the combined amount to yourself with all holdings to merge as
inputHoldingCids. The input holdings may have different labels. The result is a single holding
carrying the label set as receiver label. If the transfer amount is smaller than the sum of the
input amounts, the rest is left as change on the specified sender account.Prerequisites
For all transfers:- The registrar must have created the
AllocationFactorycontract, see Token Standard APIs. - The input holdings must be unlocked, belong to the sender, and cover the transfer amount.
- The sender and receiver accounts must be registry accounts.
requestedAtmust be in the past, and the transfer must complete beforeexecuteBefore.
- The registrar must have created the
TransferRulecontract for the instrument. - The sender and the receiver must satisfy the instrument’s holder credential requirements. If no holder credential requirements are defined, the credential check passes for any party. See How Requirements Are Evaluated.
- The instrument must not be paused. While it’s paused, only the registrar can create transfer offers as the sender, and direct transfers and offer acceptances only succeed if the registrar is the receiver.
- If the blocklist check is enabled for the instrument, neither the sender nor the receiver may be on the registrar’s blocklist.
API integration
The Registry App implements both versions of the Token Standard transfer API: Use V2 if the registrar supports it, and fall back to V1 otherwise. To check which versions a registrar supports, call theGET /api/token-standard/v0/registrars/{registrarParty}/registry/metadata/v1/info endpoint, as outlined in
Token Standard APIs.
Every API step follows the same pattern:
- Call the Token Standard off-ledger API to get the factory or choice context and the contracts that must be disclosed.
- Exercise the interface choice through the JSON Ledger API, passing the choice context in
extraArgs.contextand the contracts indisclosedContracts.
{registrarParty} with the
party ID of the instrument admin.
For offers and self-transfers, the factory is the registrar’s
AllocationFactory contract.
Despite its name, it implements the Token Standard TransferFactory interfaces as well as the
allocation interfaces, and it is also used for mints and burns. The name is kept for backwards
compatibility. For direct transfers, the factory is the receiver’s TransferPreapproval contract.Set up a transfer pre-approval
A receiver can pre-approve incoming transfers so they complete directly, without accepting each transfer offer. A pre-approval only covers transfers to the receiver’s basic account, that is, transfers with an empty receiver account ID (""). Transfers to any other account of the receiver
always create a transfer offer.
A pre-approval covers one instrument admin and either up to 10 specific instruments, or all
instruments of that admin if no instruments are listed.
Transfer pre-approvals are specific to the Registry App and are not part of the Token Standard.
Wallet providers must integrate the
TransferPreapproval template directly.- dApp UI
- API
- Go to Preapprovals and click Create Preapproval.
- Select the instrument admin.
- Optionally, enter up to 10 instrument IDs. Leave this empty to pre-approve all instruments of the admin.
- Submit the pre-approval.
As the receiver, create a Get the operator party ID from the
TransferPreapproval contract
(#utility-registry-app-v0:Utility.Registry.App.V0.Model.TransferPreapproval:TransferPreapproval):{
"operator": "<operator party ID>",
"receiver": "<receiver party ID>",
"instrumentAdmin": "<registrar party ID>",
"instrumentAllowances": [{ "id": "<instrument ID>" }]
}
GET /api/utilities/v0/operator endpoint of the
Operator Backend API:To change the instruments, exercise
TransferPreapproval_Modify with
newInstrumentAllowances. To remove the pre-approval, exercise TransferPreapproval_Withdraw
with the receiver as actor. The operator can also withdraw a pre-approval.TransferPreapproval template
TransferPreapproval template
-- | Transfer preapproval for specific Registry instruments.
template TransferPreapproval
with
operator : Party
-- ^ The Registry operator (i.e. the party disclosing the contract).
receiver : Party
-- ^ Party which preapproves.
instrumentAdmin : Party
-- ^ The admin of the instruments being preapproved.
instrumentAllowances : [InstrumentAllowance]
-- ^ The set of instrument-specific allowances granted under this preapproval.
-- If the list is empty, all instruments of the admin are considered preapproved.
-- For performance reasons, this list may contain at most 10 instrument identifiers.
-- If more than 10 instruments need to be preapproved for the same admin, create
-- additional TransferPreapproval instances for that admin.
where
signatory receiver
observer operator
Create TransferPreapproval with JSON Ledger API
Create TransferPreapproval with JSON Ledger API
This example creates a
Add the values to Then run the following script, which submits a single The response is saved to
TransferPreapproval contract for one instrument admin through the
JSON Ledger API. It requires a running Canton JSON Ledger API, and bash, curl, jq,
and uuidgen.| Variable | Description |
|---|---|
RECEIVER_USER_ID | Participant user ID. |
RECEIVER_TOKEN | Bearer token for the participant user. |
RECEIVER_PARTY_ID | The receiver’s party ID. |
OPERATOR_PARTY_ID | The party ID of the Registry operator, see the endpoints above. |
INSTRUMENT_ADMIN_PARTY_ID | The party whose instruments are pre-approved. |
INSTRUMENT_IDS | JSON array of instrument IDs. Use [] to pre-approve all instruments of the admin. |
HTTP_JSON_API | JSON Ledger API base URL. |
source.sh:#!/usr/bin/env bash
## =================================================================================================
## Purpose: Configurations for this example, amend variables as needed.
## Script: source.sh
## =================================================================================================
# Your party's details
RECEIVER_TOKEN="<PASTE_RECEIVER_JWT_HERE>"
RECEIVER_PARTY_ID="holder::1220163a2070cd9cf831721c6a84e19b7727b9825636ea9b09f24229f45a341f7c4b"
RECEIVER_USER_ID="holder"
# Operator details
OPERATOR_PARTY_ID="operator::1220a6f417751797b91ab08423236f8c0d3c53f1ec62ed1afd4602816390b68be8f0"
# Instrument admin (or registrar) details whose instruments are being preapproved.
INSTRUMENT_ADMIN_PARTY_ID="registrar::1220e71be62943820d0f7ecc365fc498adcd25e1b1fd165f0ae9b65c343230f93579"
# Instrument ids to preapprove (an empty list means all instruments are preapproved)
INSTRUMENT_IDS='[
"INST"
]'
# JSON API endpoint
# Example (local): HTTP_JSON_API="http://localhost:8001/api/json-api"
# Example (remote): HTTP_JSON_API="https://<your-host>/api/json-api"
HTTP_JSON_API="http://localhost:8001/api/json-api"
# Daml template IDs (package-name qualified)
TRANSFER_PREAPPROVAL_TEMPLATE="#utility-registry-app-v0:Utility.Registry.App.V0.Model.TransferPreapproval:TransferPreapproval"
CreateCommand:#!/usr/bin/env bash
## =================================================================================================
## How-to Tutorial: Create transfer preapproval
## Authorized by: receiver
## Script: create-transfer-preapproval.sh
## =================================================================================================
set -euo pipefail
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
source "${SCRIPT_DIR}/source.sh"
# Validate inputs
if [[ -z "${HTTP_JSON_API:-}" ]]; then
echo "Error: HTTP_JSON_API is not set in source.sh"
exit 1
fi
if [[ -z "${TRANSFER_PREAPPROVAL_TEMPLATE:-}" ]]; then
echo "Error: TRANSFER_PREAPPROVAL_TEMPLATE is not set in source.sh"
exit 1
fi
if [[ -z "${OPERATOR_PARTY_ID:-}" ]]; then
echo "Error: OPERATOR_PARTY_ID is not set in source.sh"
exit 1
fi
if [[ -z "${INSTRUMENT_ADMIN_PARTY_ID:-}" ]]; then
echo "Error: INSTRUMENT_ADMIN_PARTY_ID is not set in source.sh"
exit 1
fi
if [[ -z "${RECEIVER_TOKEN:-}" || -z "${RECEIVER_USER_ID:-}" || -z "${RECEIVER_PARTY_ID:-}" ]]; then
echo "Error: RECEIVER_TOKEN/RECEIVER_USER_ID/RECEIVER_PARTY_ID must be set in source.sh"
exit 1
fi
if [[ -z "${INSTRUMENT_IDS:-}" ]]; then
echo "Error: INSTRUMENT_IDS is not set in source.sh"
exit 1
fi
echo "${INSTRUMENT_IDS}" | jq -e 'type == "array" and all(.[]; type == "string")' >/dev/null
COMMANDS_JSON=$(jq -n \
--arg templateId "${TRANSFER_PREAPPROVAL_TEMPLATE}" \
--arg operator "${OPERATOR_PARTY_ID}" \
--arg receiver "${RECEIVER_PARTY_ID}" \
--arg instrumentAdmin "${INSTRUMENT_ADMIN_PARTY_ID}" \
--argjson instrumentIds "${INSTRUMENT_IDS}" \
'[
{
CreateCommand: {
templateId: $templateId,
createArguments: {
operator: $operator,
receiver: $receiver,
instrumentAdmin: $instrumentAdmin,
instrumentAllowances: ($instrumentIds | map({id: .}))
}
}
}
]')
RESULT=$(
curl -sS --fail-with-body \
--url "${HTTP_JSON_API}/v2/commands/submit-and-wait-for-transaction" \
--header "Authorization: Bearer ${RECEIVER_TOKEN}" \
--header "Content-Type: application/json" \
--request POST \
--data @- <<EOF
{
"commands": {
"commands": ${COMMANDS_JSON},
"workflowId": "",
"userId": "${RECEIVER_USER_ID}",
"commandId": "$(uuidgen | tr -d '\n')",
"deduplicationPeriod": {
"DeduplicationDuration": {
"value": { "seconds": 30, "nanos": 0 }
}
},
"actAs": [
"${RECEIVER_PARTY_ID}"
],
"readAs": [],
"submissionId": "$(uuidgen | tr -d '\n')",
"disclosedContracts": [],
"domainId": "",
"packageIdSelectionPreference": []
}
}
EOF
)
echo "--- Command response ---"
echo "$RESULT" | jq
OUTPUTFILE="${SCRIPT_DIR}/response.json"
echo "$RESULT" > "$OUTPUTFILE"
response.json.Transfer
The sender creates the transfer. For transfer offers, the receiver then accepts or rejects it.1
Sender creates the transfer
- Go to Transfers and click Create Transfer. The Offer a Transfer dialog opens.
- Select the instrument.
- Select the sender holding label, which is the account ID to send from. The transfer is sent from holdings with this label, and the amount is capped to their balance.
- Enter the receiver and the amount to transfer.
- Optionally, enter a receiver label, which is the receiver’s account ID. Leave it empty to transfer to the receiver’s basic account.
- Set Execute before: 3 days, 7 days, or a custom date.
- Optionally, enter a reference.
- Submit the transfer.
- Get the factory with
POST /api/token-standard/v0/registrars/{registrarParty}/registry/transfer-instruction/v2/transfer-factory, passing the intended choice arguments aschoiceArguments, withextraArgs.contextandextraArgs.metaset to the empty object. - As the sender, exercise
TransferFactory_Transferof theSplice.Api.Token.TransferInstructionV2:TransferFactoryinterface on thefactoryId, with the following choice argument:
{
"transfer": {
"sender": { "owner": "<sender party ID>", "provider": null, "id": "<sender account ID>" },
"receiver": { "owner": "<receiver party ID>", "provider": null, "id": "" },
"amount": "10.0",
"instrumentId": { "admin": "<registrar party ID>", "id": "<instrument ID>" },
"requestedAt": "2026-03-20T14:17:26Z",
"executeBefore": "2026-03-20T15:17:26Z",
"inputHoldingCids": ["<holding contract ID>"],
"meta": { "values": {} }
},
"actors": ["<sender party ID>"],
"extraArgs": {
"context": "<choiceContext.choiceContextData from the backend>",
"meta": { "values": {} }
}
}
"id": ""), so the transfer completes
directly if the receiver has a matching pre-approval. To send to another account of the
receiver, set transfer.receiver.id to that account ID. This always creates a
transfer offer.The result’s output is Completed with the receiver’s holding for direct and self
transfers, or Pending with the transfer instruction for transfer offers. Any change is
returned in senderChangeCids.- Get the factory with
POST /api/token-standard/v0/registrars/{registrarParty}/registry/transfer-instruction/v1/transfer-factory, passing the intended choice arguments aschoiceArguments, withextraArgs.contextandextraArgs.metaset to the empty object. - As the sender, exercise
TransferFactory_Transferof theSplice.Api.Token.TransferInstructionV1:TransferFactoryinterface on thefactoryId, with the following choice argument:
{
"expectedAdmin": "<registrar party ID>",
"transfer": {
"sender": "<sender party ID>",
"receiver": "<receiver party ID>",
"amount": "10.0",
"instrumentId": { "admin": "<registrar party ID>", "id": "<instrument ID>" },
"requestedAt": "2026-03-20T14:17:26Z",
"executeBefore": "2026-03-20T15:17:26Z",
"inputHoldingCids": ["<holding contract ID>"],
"meta": {
"values": {
"CIP-0112/sender.id": "<sender account ID>",
"CIP-0112/receiver.id": "<receiver account ID>"
}
}
},
"extraArgs": {
"context": "<choiceContext.choiceContextData from the backend>",
"meta": { "values": {} }
}
}
<receiver account ID>. If the
receiver label isn’t empty, a transfer offer is created even if the receiver has a
pre-approval. To send to the receiver’s basic account, omit CIP-0112/receiver.id or set it
to "".The result’s output is Completed for direct and self transfers, or Pending with the
transfer instruction for transfer offers.2
Receiver accepts or rejects the transfer offer
Only needed if the transfer kind is
offer.- Go to Transfers and select the transfer offer.
- Click Accept or Reject.
- Get the choice context with
POST /api/token-standard/v0/registrars/{registrarParty}/registry/transfer-instruction/v2/{transferInstructionId}/choice-contexts/accept(or/reject). - As the receiver, exercise
TransferInstruction_Accept(orTransferInstruction_Reject) of theSplice.Api.Token.TransferInstructionV2:TransferInstructioninterface, with the receiver inactors:
{
"actors": ["<receiver party ID>"],
"extraArgs": {
"context": "<choiceContextData from the backend>",
"meta": { "values": {} }
}
}
- Get the choice context with
POST /api/token-standard/v0/registrars/{registrarParty}/registry/transfer-instruction/v1/{transferInstructionId}/choice-contexts/accept(or/reject). - As the receiver, exercise
TransferInstruction_Accept(orTransferInstruction_Reject) of theSplice.Api.Token.TransferInstructionV1:TransferInstructioninterface, with onlyextraArgsas the choice argument.
3
Optional: Sender withdraws the transfer offer
The sender can withdraw a transfer offer until the receiver accepts it. The sender’s holdings
are unlocked.
Go to Transfers, select the transfer offer, and click Withdraw.
As the sender, exercise
TransferInstruction_Withdraw with the sender in actors, using
the choice context from
POST /api/token-standard/v0/registrars/{registrarParty}/registry/transfer-instruction/v2/{transferInstructionId}/choice-contexts/withdraw.As the sender, exercise
TransferInstruction_Withdraw with extraArgs, using the choice
context from
POST /api/token-standard/v0/registrars/{registrarParty}/registry/transfer-instruction/v1/{transferInstructionId}/choice-contexts/withdraw.Labels
A label is the account ID of a holding. It is theid of the sender or receiver Account in the
V2 API, and the label of the resulting Holding contract. Labels let a party keep holdings of the
same instrument in separate accounts. The basic account of a holding is the account with the
holding’s owner as the owner, the account ID "", and no provider. See
Accounts and Labels.
| Label | Meaning | API V2 (CIP-0112) | API V1 (CIP-0056) |
|---|---|---|---|
| Sender label | The sender’s account ID that the transfer is booked from. Input holdings may come from any of the sender’s accounts, and any change is left on this account. | transfer.sender.id | CIP-0112/sender.id in transfer.meta |
| Receiver label | The receiver’s account ID, which becomes the label of the holding that the receiver gets. | transfer.receiver.id | CIP-0112/receiver.id in transfer.meta |
- The sender sets both the sender label and the receiver label when creating the transfer. They are
part of the transfer, and
TransferInstruction_Acceptdoesn’t take a label, so the receiver can’t change the receiver label when accepting a transfer offer. - If no label is set, the basic account with account ID
""is used. - Through the API, input holdings may have any label. Holdings with a different label are faded in to the sender account before the transfer, see Input Holdings and Fade-in. The dApp UI only selects input holdings that match the sender label.
- Transfer pre-approvals only apply to transfers to the receiver’s basic account. A transfer only
completes directly through a pre-approval if the receiver label is
"". Otherwise, a transfer offer is created. - The sender and receiver accounts must be registry accounts.
- V1 wallets are unaware of accounts. See V1 wallet compatibility for how mixed input labels are handled.
Troubleshooting
| Symptom | Cause | Resolution |
|---|---|---|
Subject [...] must have credentials for: [...] | The sender or receiver doesn’t satisfy the holder credential requirements. | Issue the missing credential. Each requirement must be met by a single credential, see How Requirements Are Evaluated. |
Instrument must not be paused for two-step transfer | The instrument is paused, and the sender isn’t the registrar. | Wait until the registrar unpauses the instrument, see Pause / Unpause. |
Instrument must not be paused for transfer | The instrument is paused, the transfer is direct or an offer is being accepted, and the receiver isn’t the registrar. | Wait until the registrar unpauses the instrument, see Pause / Unpause. |
Transfer `executeBefore` must be in the future | The deadline has already passed when the transfer is created. | Set executeBefore to a time in the future. |
The transfer kind is offer although the receiver has a pre-approval. | The transfer doesn’t go to the receiver’s basic account (the receiver label isn’t ""), or the pre-approval doesn’t cover the instrument. | Leave the receiver label empty, and check the pre-approval’s instrument admin and instruments. |
CONTRACT_NOT_FOUND when accepting, rejecting, or withdrawing | The transfer offer was already accepted, rejected, or withdrawn, or a selected holding was already used. | Query the active contracts again and use current contract IDs. |
Next steps
- To create or remove supply, see Mint and Burn.
- To detect executed transfers in the transaction history, see Transaction history parsing.
- For the full endpoint reference, see the Token Standard off-ledger API.