CCC Docs
    Preparing search index...

    Type Alias CoinCompleteResponse

    Return type for all complete* methods on Coin.

    type CoinCompleteResponse = {
        tx: ccc.Transaction;
        addedInputs: number;
        hasChanged: boolean;
        changeIndex: number | undefined;
    }
    Index

    Properties

    tx: ccc.Transaction

    The completed transaction.

    addedInputs: number

    Number of Coin inputs added to the transaction.

    hasChanged: boolean

    Whether a change output was written. false when inputs and outputs were already balanced.

    changeIndex: number | undefined

    Index of the change output in tx.outputs. undefined when hasChanged is false.