bitcoinjs-lib/types/psbt.d.ts
2019-07-03 15:34:18 +09:00

16 lines
618 B
TypeScript

import { Psbt as PsbtBase } from 'bip174';
import { Signer, SignerAsync } from './ecpair';
import { Network } from './networks';
import { Transaction } from './transaction';
export declare class Psbt extends PsbtBase {
network?: Network | undefined;
constructor(network?: Network | undefined);
extractTransaction(): Transaction;
finalizeAllInputs(): {
result: boolean;
inputResults: boolean[];
};
finalizeInput(inputIndex: number): boolean;
signInput(inputIndex: number, keyPair: Signer): Psbt;
signInputAsync(inputIndex: number, keyPair: SignerAsync): Promise<void>;
}