The ISetupTransactionResult contains the result from the setup transaction.
ISetupTransactionResult
Overview
The ISetupTransactionResult interface represents the result of a CHCT setup transaction. It includes the signed transaction hex, transaction ID, created P2WSH outputs with reveal metadata, fees paid, chunk count, and total data size.
The full source code is available on GitHub at IConsolidatedTransactionParameters.ts.
Import
import { ISetupTransactionResult } from '@btc-vision/transaction';Interface
Signature
interface ISetupTransactionResult {
readonly txHex: string;
readonly txId: string;
readonly outputs: IHashCommittedP2WSH[];
readonly feesPaid: bigint;
readonly chunkCount: number;
readonly totalDataSize: number;
}Description
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| txHex | string | Yes | The signed transaction hex. |
| txId | string | Yes | Transaction ID. |
| outputs | IHashCommittedP2WSH[] | Yes | All P2WSH outputs created (with metadata for reveal). |
| feesPaid | bigint | Yes | Fees paid in satoshis. |
| chunkCount | number | Yes | Number of data chunks. |
| totalDataSize | number | Yes | Total data size in bytes (compiled). |