@@ -58,25 +58,38 @@ This section provides detailed documentation for the Kuber-Hydra backend API end
5858 ] }
5959/>
6060
61+ <ApiEndpoint
62+ method="GET"
63+ path="/hydra/decommit"
64+ title="Build Decommit Transaction"
65+ description="Builds a decommit transaction."
66+ queryParams={[
67+ { name: "txin", type: "Array of T.Text", description: "List of transaction inputs to decommit." },
68+ ] }
69+ responses={[
70+ { code: "200 OK", description: "Returns TxModal (transaction details)." },
71+ ] }
72+ />
73+
6174<ApiEndpoint
6275 method="POST"
6376 path="/hydra/decommit"
64- title="Decommit UTxOs from Hydra Head "
65- description="Decommits UTxOs from the Hydra Head ."
77+ title="Submit Decommit Transaction "
78+ description="Submits a decommit transaction ."
6679 queryParams={[
67- { name: "submit", type: "Boolean", description: "If true, the transaction will be submitted to the chain.", optional: true },
6880 { name: "wait", type: "Boolean", description: "If true, the request will wait for the transaction to be confirmed.", optional: true },
6981 ] }
7082 requestBody={{
71- type: "CommitUTxOs ",
72- description: "Payload containing UTxOs to decommit and an optional signing key .",
83+ type: "TxModal ",
84+ description: "Signed transaction details .",
7385 fields: [
74- { name: "utxos", type: "Array of TxIn (string)", description: "List of transaction inputs to decommit." },
75- { name: "signKey", type: "A.Value", description: "The signing key for the transaction.", optional: true },
86+ { name: "cborHex", type: "string", description: "The CBOR-encoded transaction in hexadecimal format." },
87+ { name: "type", type: "string", description: "The type of transaction (e.g., 'Witnessed Tx ConwayEra')." },
88+ { name: "description", type: "string", description: "An optional description for the transaction." },
7689 ] ,
7790 }}
7891 responses={[
79- { code: "200 OK", description: "Success message ." },
92+ { code: "200 OK", description: "Returns DecommitResult (decommit transaction details) ." },
8093 ] }
8194/>
8295
@@ -154,9 +167,9 @@ This section provides detailed documentation for the Kuber-Hydra backend API end
154167 type: "TxModal",
155168 description: "Signed transaction details.",
156169 fields: [
157- { name: "signedTx ", type: "string", description: "The signed transaction." },
158- { name: "witnesses ", type: "Array ", description: "Transaction witnesses ." },
159- // Add more TxModal fields as needed based on its actual structure
170+ { name: "cborHex ", type: "string", description: "The CBOR-encoded transaction in hexadecimal format ." },
171+ { name: "type ", type: "string ", description: "The type of transaction (e.g., 'Witnessed Tx ConwayEra') ." },
172+ { name: "description", type: "string", description: "An optional description for the transaction." },
160173 ] ,
161174 }}
162175 responses={[
@@ -206,7 +219,7 @@ This section provides detailed documentation for the Kuber-Hydra backend API end
206219 title="Retrieve Hydra State"
207220 description="Retrieves the current state of the Hydra."
208221 responses={[
209- { code: "200 OK", description: "Returns the Hydra state." },
222+ { code: "200 OK", description: "Returns an object containing the current HydraHeadState (e.g., { state: 'Open' }) ." },
210223 ] }
211224/>
212225
0 commit comments