@rainbow-me/fee-suggestions
Version:
JavaScript library that suggest fees on Ethereum after EIP-1559 using historical data using ethers.js
6 lines (5 loc) • 513 B
TypeScript
import { JsonRpcProvider } from '@ethersproject/providers';
import { MaxFeeSuggestions, MaxPriorityFeeSuggestions, Suggestions } from './entities';
export declare const suggestMaxBaseFee: (provider: JsonRpcProvider, fromBlock?: string, blockCountHistory?: number) => Promise<MaxFeeSuggestions>;
export declare const suggestMaxPriorityFee: (provider: JsonRpcProvider, fromBlock?: string) => Promise<MaxPriorityFeeSuggestions>;
export declare const suggestFees: (provider: JsonRpcProvider) => Promise<Suggestions>;