UNPKG

@muirglacier/jellyfish-transaction-builder

Version:

A collection of TypeScript + JavaScript tools and libraries for DeFi Blockchain developers to build decentralized finance for Bitcoin

23 lines 1.1 kB
import BigNumber from 'bignumber.js'; import { P2WPKHTxnBuilder } from './txn_builder'; import { Script, TransactionSegWit } from '@muirglacier/jellyfish-transaction'; export declare class TxnBuilderUtxo extends P2WPKHTxnBuilder { /** * Send all UTXO provided by prevoutProvider.all() to script. * * @param {Script} toScript to send output to */ sendAll(toScript: Script): Promise<TransactionSegWit>; /** * Send a specific amount of UTXO provided by prevoutProvider.collect(amount, fee) to script. * If you are not sending the full amount via sendAll, you will need at least 0.001 DFI more * than the specific amount for sending. This will also evidently merge small prevout during * the operation. * * @param {BigNumber} amount of UTXO to send to script * @param {Script} toScript to send UTXO to * @param {Script} changeScript to send unspent to after deducting the fees */ send(amount: BigNumber, toScript: Script, changeScript: Script): Promise<TransactionSegWit>; } //# sourceMappingURL=txn_builder_utxo.d.ts.map