UNPKG

opnet

Version:

The perfect library for building Bitcoin-based applications.

37 lines (36 loc) 1.09 kB
export interface StrippedTransactionOutput { readonly value: bigint; readonly index: number; readonly flags: number; readonly scriptPubKey?: Buffer; readonly to?: string; } export interface StrippedTransactionOutputAPI { readonly value: string; readonly index: number; readonly to?: string; readonly flags: number; readonly scriptPubKey?: string; } export interface StrippedTransactionInput { readonly txId: Buffer; readonly outputIndex: number; readonly scriptSig: Buffer; readonly flags: number; readonly coinbase?: Buffer; } export interface StrippedTransactionInputAPI { readonly txId: string; readonly outputIndex: number; readonly scriptSig: string; readonly coinbase?: string; readonly flags: number; } export interface SimulatedTransaction { readonly inputs: StrippedTransactionInputAPI[]; readonly outputs: StrippedTransactionOutputAPI[]; } export interface ParsedSimulatedTransaction { readonly inputs: StrippedTransactionInput[]; readonly outputs: StrippedTransactionOutput[]; }