eip1559-fee-suggestions-ethers
Version:
JavaScript library that suggest fees on Ethereum after EIP-1559 using historical data using ethers.js
29 lines (28 loc) • 715 B
TypeScript
export declare type Reward = string[];
export declare type GasUsedRatio = number[];
export interface FeeHistoryResponse {
baseFeePerGas: string[];
gasUsedRatio: GasUsedRatio;
oldestBlock: number;
reward: Reward[];
}
export interface MaxFeeSuggestions {
baseFeeSuggestion: string;
baseFeeTrend: number;
}
export interface MaxPriorityFeeSuggestions {
maxPriorityFeeSuggestions: {
urgent: string;
fast: string;
normal: string;
};
confirmationTimeByPriorityFee: {
15: string;
30: string;
45: string;
60: string;
75: string;
};
}
export interface Suggestions extends MaxFeeSuggestions, MaxPriorityFeeSuggestions {
}