opnet
Version:
The perfect library for building Bitcoin-based applications.
21 lines (20 loc) • 491 B
JavaScript
export class MempoolTransactionData {
id;
firstSeen;
blockHeight;
transactionType;
psbt;
inputs;
outputs;
raw;
constructor(data) {
this.id = data.id;
this.firstSeen = new Date(data.firstSeen);
this.blockHeight = BigInt(data.blockHeight);
this.transactionType = data.transactionType;
this.psbt = data.psbt;
this.inputs = data.inputs;
this.outputs = data.outputs;
this.raw = data.raw;
}
}