bitcoinjs-lib/types/transaction_builder.d.ts

27 lines
1.1 KiB
TypeScript
Raw Normal View History

/// <reference types="node" />
2019-03-07 06:03:04 +01:00
import { ECPairInterface } from './ecpair';
import { Network } from './networks';
import { Transaction } from './transaction';
export declare class TransactionBuilder {
2019-03-07 06:03:04 +01:00
static fromTransaction(transaction: Transaction, network?: Network): TransactionBuilder;
network: Network;
maximumFeeRate: number;
2019-03-07 06:03:04 +01:00
private __PREV_TX_SET;
private __INPUTS;
private __TX;
constructor(network?: Network, maximumFeeRate?: number);
setLockTime(locktime: number): void;
setVersion(version: number): void;
addInput(txHash: Buffer | string | Transaction, vout: number, sequence: number, prevOutScript: Buffer): number;
addOutput(scriptPubKey: string | Buffer, value: number): number;
build(): Transaction;
buildIncomplete(): Transaction;
sign(vin: number, keyPair: ECPairInterface, redeemScript: Buffer, hashType: number, witnessValue: number, witnessScript: Buffer): void;
2019-03-07 06:03:04 +01:00
private __addInputUnsafe;
private __build;
private __canModifyInputs;
private __needsOutputs;
private __canModifyOutputs;
private __overMaximumFees;
}