The ConsolidatedInteractionResponse Contains both setup and reveal transactions for the CHCT system.
ConsolidatedInteractionResponse
Overview
The ConsolidatedInteractionResponse interface represents the result of a two-phase consolidated interaction. It includes the setup and reveal transaction hex and IDs, total fees, chunk count, data size, challenge solution, input UTXOs, and the compiled target script.
The full source code is available on GitHub at TransactionFactory.ts.
Import
import { ConsolidatedInteractionResponse } from '@btc-vision/transaction';Interface
Signature
interface ConsolidatedInteractionResponse {
readonly setupTransaction: string;
readonly revealTransaction: string;
readonly setupTxId: string;
readonly revealTxId: string;
readonly totalFees: bigint;
readonly chunkCount: number;
readonly dataSize: number;
readonly challenge: RawChallenge;
readonly inputUtxos: UTXO[];
readonly compiledTargetScript: string;
}Description
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| setupTransaction | string | Yes | Setup transaction hex - creates P2WSH commitment outputs. |
| revealTransaction | string | Yes | Reveal transaction hex - spends commitments, reveals data in witnesses. |
| setupTxId | string | Yes | Setup transaction ID. |
| revealTxId | string | Yes | Reveal transaction ID. |
| totalFees | bigint | Yes | Total fees across both transactions in satoshis. |
| chunkCount | number | Yes | Number of data chunks. |
| dataSize | number | Yes | Total compiled data size in bytes. |
| challenge | RawChallenge | Yes | Challenge for the interaction. |
| inputUtxos | UTXO[] | Yes | Input UTXOs used. |
| compiledTargetScript | string | Yes | Compiled target script (same as InteractionTransaction). |