SonaCORE

Referência / Quadra Command API

Templates

1 operação em Quadra Command API 0.2.0.

POST/v1/template-transfers

Execute a Transfer Template

Execute an operator-defined transfer template as one atomic custody Hydra transaction (LaaS-26).

The named template's typed params drive an ordered set of legs (fees, multi-leg payouts) over the existing custody validator — no new on-chain code. Yields exactly one Hydra transaction and one obligation row per leg (all sharing the tx hash, each carrying template attribution).

Requires an Idempotency-Key header. Callers MAY pin ``template_version``; a mismatch with the deployed version returns 409 TEMPLATE_VERSION_MISMATCH.

Parâmetros

NomeTipoDetalhe
Idempotency-Keystringheaderobrigatório

Corpo da requisição

TemplateTransferRequest — obrigatório. Os campos estão listados em Esquemas, abaixo.

Respostas

StatusCorpoDetalhe
201Resposta bem-sucedidaO contrato não declara um modelo para esta resposta, então a forma dela não está documentada aqui. Um roteiro de demonstração mostra a forma que ela realmente devolve.
422HTTPValidationErrorErro de validação

Esquemas

Os modelos que as operações acima aceitam e devolvem. Campos opcionais estão marcados como tal; um campo tipado como outro modelo está documentado sob o nome dele.

HTTPValidationError

CampoTipoDetalhe
detailarray de ValidationError

TemplateTransferRequest

A template-transfer invocation. ``params`` is a free-form object validated against the named template's declared params (typed enum: account_id | cents | bps | string) — the engine rejects unknown params and any attempt to supply an operator constant. ``template_version`` is an optional pin: if supplied and it does not match the deployed version, the engine raises 409 TEMPLATE_VERSION_MISMATCH (there is no template-version negotiation — the deployed JSON is authoritative).

CampoTipoDetalhe
paramsobjectobrigatórioCaller-supplied typed parameters
template_idstringobrigatórioRegistered template id (e.g. 'fee_bearing_transfer')
template_versioninteger, opcionalOptional expected template version; mismatch → 409

ValidationError

CampoTipoDetalhe
ctxobject
inputnão declarado
locarray de string ou integerobrigatório
msgstringobrigatório
typestringobrigatório