Type alias TransactionTemplateEstimated<CompilerType>

TransactionTemplateEstimated<CompilerType>: TransactionTemplate<CompilerType, true> & {
    totalInputValueSatoshis: number;
}

A transaction template that enables fee estimation. The template must include a totalInputValueSatoshis value (the total satoshi value of all transaction inputs); all unlocking compilation directives must provide an estimate scenario ID that is used to estimate the size of the resulting unlocking bytecode; and the valueSatoshis value of outputs is optional (all satoshi values will be set to excessiveSatoshis in the estimated transaction).

Type Parameters

  • CompilerType

Type declaration

  • totalInputValueSatoshis: number

    The total satoshi value of all transaction inputs. This is required when using fee estimation, and is used to calculate the appropriate value of change outputs (outputs with valueSatoshis set to undefined).

Generated using TypeDoc