UNPKG

opnet

Version:

The perfect library for building Bitcoin-based applications.

46 lines (45 loc) 1.29 kB
export interface FeeRecommendation { low: string; medium: string; high: string; } export interface RawBitcoinFees { readonly conservative: string; readonly recommended: FeeRecommendation; } export interface BitcoinFees { readonly conservative: number; readonly recommended: { readonly low: number; readonly medium: number; readonly high: number; }; } export interface IBlockGasParameters { readonly blockNumber: bigint; readonly gasUsed: bigint; readonly targetGasLimit: bigint; readonly ema: bigint; readonly baseGas: bigint; readonly gasPerSat: bigint; readonly bitcoin: BitcoinFees; } export interface IBlockGasParametersInput { readonly blockNumber: string; readonly gasUsed: string; readonly targetGasLimit: string; readonly ema: string; readonly baseGas: string; readonly gasPerSat: string; readonly bitcoin: RawBitcoinFees; } export declare class BlockGasParameters implements IBlockGasParameters { readonly blockNumber: bigint; readonly gasUsed: bigint; readonly targetGasLimit: bigint; readonly ema: bigint; readonly baseGas: bigint; readonly gasPerSat: bigint; readonly bitcoin: BitcoinFees; constructor(data: IBlockGasParametersInput); }