UNPKG

@bitgo/utxo-bin

Version:

Command-line utility for BitGo UTXO transactions

27 lines 1.1 kB
import * as utxolib from '@bitgo/utxo-lib'; export type ParserTx = utxolib.bitgo.UtxoTransaction<bigint> | utxolib.bitgo.UtxoPsbt; export type ParserTxInput = utxolib.TxInput | utxolib.PsbtTxInput; export type ParserTxOutput = utxolib.TxOutput<bigint> | utxolib.PsbtTxOutput; export declare function getPrevOut(prevOutput: utxolib.bitgo.PsbtInput, prevOutpoint: utxolib.PsbtTxInput | number, network: utxolib.Network): { value: bigint; script: Buffer; } | undefined; export declare function getParserTxProperties(tx: ParserTx, prevOutputs: utxolib.TxOutput<bigint>[] | undefined): { format: 'network' | 'legacy' | 'psbt'; complete: boolean; id: string; weight: number; inputs: ParserTxInput[]; outputs: ParserTxOutput[]; outputSum: bigint; inputSum: bigint | undefined; hasWitnesses: boolean; }; export declare function getParserTxInputProperties(input: ParserTxInput, prevOut?: utxolib.bitgo.PsbtInput): { txid: string; vout: number; sequence?: number; script?: Buffer; witness?: Buffer[]; }; //# sourceMappingURL=ParserTx.d.ts.map