|
1 | 1 | /// <reference types="node" />
|
2 | 2 | import { Psbt as PsbtBase } from 'bip174';
|
3 |
| -import { KeyValue, PsbtGlobalUpdate, PsbtInputUpdate, PsbtOutputUpdate, TransactionInput, TransactionOutput } from 'bip174/src/lib/interfaces'; |
| 3 | +import { KeyValue, PsbtGlobalUpdate, PsbtInput, PsbtInputUpdate, PsbtOutput, PsbtOutputUpdate, TransactionInput, TransactionOutput } from 'bip174/src/lib/interfaces'; |
4 | 4 | import { Signer, SignerAsync } from './ecpair';
|
5 | 5 | import { Network } from './networks';
|
6 | 6 | import { Transaction } from './transaction';
|
@@ -51,10 +51,10 @@ export declare class Psbt {
|
51 | 51 | setVersion(version: number): this;
|
52 | 52 | setLocktime(locktime: number): this;
|
53 | 53 | setInputSequence(inputIndex: number, sequence: number): this;
|
54 |
| - addInputs(inputDatas: TransactionInput[]): this; |
55 |
| - addInput(inputData: TransactionInput): this; |
56 |
| - addOutputs(outputDatas: TransactionOutput[]): this; |
57 |
| - addOutput(outputData: TransactionOutput): this; |
| 54 | + addInputs(inputDatas: PsbtInputExtended[]): this; |
| 55 | + addInput(inputData: PsbtInputExtended): this; |
| 56 | + addOutputs(outputDatas: PsbtOutputExtended[]): this; |
| 57 | + addOutput(outputData: PsbtOutputExtended): this; |
58 | 58 | extractTransaction(disableFeeCheck?: boolean): Transaction;
|
59 | 59 | getFeeRate(): number;
|
60 | 60 | finalizeAllInputs(): this;
|
@@ -84,6 +84,10 @@ interface PsbtOptsOptional {
|
84 | 84 | network?: Network;
|
85 | 85 | maximumFeeRate?: number;
|
86 | 86 | }
|
| 87 | +interface PsbtInputExtended extends PsbtInput, TransactionInput { |
| 88 | +} |
| 89 | +interface PsbtOutputExtended extends PsbtOutput, TransactionOutput { |
| 90 | +} |
87 | 91 | interface HDSignerBase {
|
88 | 92 | /**
|
89 | 93 | * DER format compressed publicKey buffer
|
|
0 commit comments