Add some tests and an input duplicate checker
This commit is contained in:
parent
93e1661c6c
commit
8d52ce1668
5 changed files with 228 additions and 36 deletions
types
3
types/psbt.d.ts
vendored
3
types/psbt.d.ts
vendored
|
@ -7,13 +7,14 @@ import { Transaction } from './transaction';
|
|||
export declare class Psbt extends PsbtBase {
|
||||
static fromTransaction<T extends typeof PsbtBase>(this: T, txBuf: Buffer): InstanceType<T>;
|
||||
static fromBuffer<T extends typeof PsbtBase>(this: T, buffer: Buffer): InstanceType<T>;
|
||||
private __NON_WITNESS_UTXO_CACHE;
|
||||
private __CACHE;
|
||||
private __TX;
|
||||
private __TX_BUF_CACHE?;
|
||||
private __FEE_RATE?;
|
||||
private __EXTRACTED_TX?;
|
||||
private opts;
|
||||
constructor(opts?: PsbtOptsOptional);
|
||||
readonly inputCount: number;
|
||||
setMaximumFeeRate(satoshiPerByte: number): void;
|
||||
setVersion(version: number): this;
|
||||
setLocktime(locktime: number): this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue