Attach or detach labels to/from UTXOs
Attach or detach labels to/from UTXOs in a vault account. Labels can be used for organizing and filtering UTXOs.
Labels are applied additively — labelsToAttach adds to the existing
label set and labelsToDetach removes from it. Neither operation
replaces the full set.
The request is all-or-nothing: if any identifier cannot be labelled, no
UTXO is labelled and the request fails with 400. The response lists
every failed identifier in failures, each with its own reason — use
it, not the status, to decide what to do:
NOT_FOUND— not found in this vault and asset.NOT_LABELLABLE— spent, or removed, and can no longer be labelled.
A UTXO removed within the last hour is reported as NOT_FOUND with
utxoStatus: REMOVED; if it does not reappear, it becomes
NOT_LABELLABLE after about an hour. A 400 without failures means
the request itself is malformed.
Note: These endpoints are currently in beta and might be subject to changes.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.
Headers
A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
Path Parameters
The ID of the vault account
The ID of the asset
Body
List of UTXO identifiers to apply label changes to
1 - 50 elementsLabels to attach to the specified UTXOs. At least one of labelsToAttach or labelsToDetach must be provided.
1 - 5 elements30Labels to detach from the specified UTXOs. At least one of labelsToAttach or labelsToDetach must be provided.
1 - 5 elements30Response
UTXOs with updated labels
Modified UTXOs with updated labels