UNPKG

thebigguy-contract

Version:

A library to generate P2SH scripts and create spend transactions for permissionless share-based distribution of UTXOs

16 lines 797 B
import { Script, TxOutput } from "ecash-lib"; import { type Party } from "./script"; /** * Calculates the only list of outputs that will be valid for a transaction * that spends `value` from an outpoint locked with `script`. * * @param value The input value being split * @param fee The same fee used for the contract script * @param contract The P2SH contract script generated with the same fee and parsties * @param parties The same parties used for the contract script * * @returns The list of transaction outputs that must be in a transaction that * spends the given value, in an output locked by the contract script. */ export declare function createOutputs(value: number, fee: number, contract: Script, parties: Party[]): TxOutput[]; //# sourceMappingURL=payment.d.ts.map