2019-06-24 12:20:15 +02:00
|
|
|
import { Psbt as PsbtBase } from 'bip174';
|
2019-07-03 08:34:18 +02:00
|
|
|
import { Signer, SignerAsync } from './ecpair';
|
2019-07-01 12:57:35 +02:00
|
|
|
import { Network } from './networks';
|
2019-07-03 08:13:36 +02:00
|
|
|
import { Transaction } from './transaction';
|
2019-06-24 12:20:15 +02:00
|
|
|
export declare class Psbt extends PsbtBase {
|
2019-07-01 12:57:35 +02:00
|
|
|
network?: Network | undefined;
|
|
|
|
constructor(network?: Network | undefined);
|
2019-07-03 08:13:36 +02:00
|
|
|
extractTransaction(): Transaction;
|
|
|
|
finalizeAllInputs(): {
|
|
|
|
result: boolean;
|
|
|
|
inputResults: boolean[];
|
|
|
|
};
|
|
|
|
finalizeInput(inputIndex: number): boolean;
|
2019-06-25 13:22:00 +02:00
|
|
|
signInput(inputIndex: number, keyPair: Signer): Psbt;
|
2019-07-03 08:34:18 +02:00
|
|
|
signInputAsync(inputIndex: number, keyPair: SignerAsync): Promise<void>;
|
2019-06-24 12:20:15 +02:00
|
|
|
}
|