Commit js, ts, and definitions in separate folders
This commit is contained in:
parent
e7ac2b9a4e
commit
bc28949056
148 changed files with 3850 additions and 39 deletions
26
types/transaction_builder.d.ts
vendored
Normal file
26
types/transaction_builder.d.ts
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
/// <reference types="node" />
|
||||
import { Network } from './networks';
|
||||
import { Transaction } from './transaction';
|
||||
import { ECPairInterface } from './ecpair';
|
||||
export declare class TransactionBuilder {
|
||||
network: Network;
|
||||
maximumFeeRate: number;
|
||||
private __prevTxSet;
|
||||
private __inputs;
|
||||
private __tx;
|
||||
constructor(network?: Network, maximumFeeRate?: number);
|
||||
static fromTransaction(transaction: Transaction, network?: Network): TransactionBuilder;
|
||||
setLockTime(locktime: number): void;
|
||||
setVersion(version: number): void;
|
||||
addInput(txHash: Buffer | string | Transaction, vout: number, sequence: number, prevOutScript: Buffer): number;
|
||||
private __addInputUnsafe;
|
||||
addOutput(scriptPubKey: string | Buffer, value: number): number;
|
||||
build(): Transaction;
|
||||
buildIncomplete(): Transaction;
|
||||
private __build;
|
||||
sign(vin: number, keyPair: ECPairInterface, redeemScript: Buffer, hashType: number, witnessValue: number, witnessScript: Buffer): void;
|
||||
private __canModifyInputs;
|
||||
private __needsOutputs;
|
||||
private __canModifyOutputs;
|
||||
private __overMaximumFees;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue