{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coudrebros-eu/json-schema/coudrebros-eu-atomic-mint-response-schema.json",
  "title": "AtomicMintResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coudrebros-eu-openapi.yml#/components/schemas/AtomicMintResponse",
  "properties": {
    "unsigned_tx_body": {
      "type": "string",
      "title": "Unsigned Tx Body",
      "description": "CBOR hex of the unwitnessed transaction body, provided for reference/inspection or advanced/air-gapped signing flows (`cardano-cli conway transaction witness --tx-body-file <this>` with your own key, then `transaction assemble` with your witness plus operator_witnesses). Most CLI callers should sign `partially_signed_tx` directly instead -- see its description."
    },
    "operator_witnesses": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Operator Witnesses",
      "description": "CBOR hex of the operator's two witnesses (policy key + payment key), as separate witness files -- only needed if signing `unsigned_tx_body` via the witness+assemble path above; not needed when signing `partially_signed_tx` directly."
    },
    "partially_signed_tx": {
      "type": "string",
      "title": "Partially Signed Tx",
      "description": "The same transaction with the operator's two witnesses already merged in -- sign this directly. CLI: `cardano-cli conway transaction sign --tx-file <this, as a 'Tx ConwayEra' envelope> --signing-key-file <your key> --out-file final.tx` (adds your witness on top of the operator's without disturbing them), then `transaction submit`. Do NOT pass this to `transaction assemble` as if it were `unsigned_tx_body` -- `assemble` expects an unwitnessed `--tx-body-file`, not a full `Tx` that already carries witnesses. CIP-30 wallets: call wallet.signTx(this, true), then merge the returned witness (e.g. via CSL's FixedTransaction.add_vkey_witness) and submitTx()."
    },
    "policy_id": {
      "type": "string",
      "title": "Policy Id",
      "description": "Policy ID of the NFT that will be minted once this transaction is signed and submitted"
    },
    "token_name_hex": {
      "type": "string",
      "title": "Token Name Hex",
      "description": "On-chain asset name, hex-encoded (decodes to nft_name)"
    },
    "mint_fee_lovelace": {
      "type": "integer",
      "title": "Mint Fee Lovelace",
      "description": "Exact amount this transaction pays the operator, drawn from from_address's contribution"
    },
    "network_fee_lovelace": {
      "type": "integer",
      "title": "Network Fee Lovelace",
      "description": "Cardano network fee for this transaction, deducted from from_address's own change, not from mint_fee_lovelace"
    },
    "nft_output_lovelace": {
      "type": "integer",
      "title": "Nft Output Lovelace",
      "description": "Portion of mint_fee_lovelace sent right back out as the NFT's required minimum ADA balance, bundled into the output at destination_address -- not operator revenue (found missing from this response by Kaios's security pass 2026-10-11)."
    }
  },
  "type": "object",
  "required": [
    "unsigned_tx_body",
    "operator_witnesses",
    "partially_signed_tx",
    "policy_id",
    "token_name_hex",
    "mint_fee_lovelace",
    "network_fee_lovelace",
    "nft_output_lovelace"
  ]
}