import { Compiler } from '../template/compiler-types'; import { TransactionContextCommon, TransactionGenerationAttempt, TransactionTemplateEstimated } from './transaction-types'; /** * Generate an "estimated" transaction – an invalid transaction which matches * the expected size of the final transaction. * * This is useful for estimating the required transaction fee before attempting * to properly sign the transaction – especially for transaction which require * approval and signatures from multiple entities. An estimated transaction can * be quickly generated by a single entity without requiring any variable data * (like private keys or wallet data). * * @remarks * Like `generateTransaction` This method accepts a transaction template and * generates bytecode given all compilation directives, however, each directive * must also contain an `estimate` scenario ID which will be used as the `data` * in the compilation. The template must also include an `inputSatoshis` value * (the total satoshi value of all transaction inputs). * * The `satoshis` value of each output is also optional. (All output `satoshis` * values will be set to `invalidSatoshis` to guarantee the transaction's * invalidity). *s * @param template - the transaction template from which to generate the * "estimated" transaction */ export declare const estimateTransaction: >(template: Readonly>) => TransactionGenerationAttempt; //# sourceMappingURL=estimate-transaction.d.ts.map