opnet
Version:
The perfect library for building Bitcoin-based applications.
17 lines (16 loc) • 441 B
JavaScript
export class BlockGasParameters {
blockNumber;
gasUsed;
targetGasLimit;
ema;
baseGas;
gasPerSat;
constructor(data) {
this.blockNumber = BigInt(data.blockNumber);
this.gasUsed = BigInt(data.gasUsed);
this.targetGasLimit = BigInt(data.targetGasLimit);
this.ema = BigInt(data.ema);
this.baseGas = BigInt(data.baseGas);
this.gasPerSat = BigInt(data.gasPerSat);
}
}