Documentation
¶
Index ¶
Constants ¶
View Source
const ( TrendUp = "up" TrendDown = "down" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
GetSuggestedGasFees(ctx context.Context, chainID int) (*SuggestedGasFees, error)
}
type RecommendedGasValues ¶
type RecommendedGasValues struct { SuggestedMaxPriorityFeePerGas decimal.Decimal `json:"suggestedMaxPriorityFeePerGas"` SuggestedMaxFeePerGas decimal.Decimal `json:"suggestedMaxFeePerGas"` MinWaitTimeEstimateMillis int64 `json:"minWaitTimeEstimate"` MaxWaitTimeEstimateMillis int64 `json:"maxWaitTimeEstimate"` }
type SuggestedGasFees ¶
type SuggestedGasFees struct { Low RecommendedGasValues `json:"low"` Medium RecommendedGasValues `json:"medium"` High RecommendedGasValues `json:"high"` EstimatedBaseFee decimal.Decimal `json:"estimatedBaseFee"` NetworkCongestion float64 `json:"networkCongestion"` LatestPriorityFeeRange []decimal.Decimal `json:"latestPriorityFeeRange"` HistoricalPriorityFeeRange []decimal.Decimal `json:"historicalPriorityFeeRange"` HistoricalBaseFeeRange []decimal.Decimal `json:"historicalBaseFeeRange"` PriorityFeeTrend Trend `json:"priorityFeeTrend"` BaseFeeTrend Trend `json:"baseFeeTrend"` }
func GetSuggestedGasFees ¶
func GetSuggestedGasFeesFromURL ¶
func GetSuggestedGasFeesFromURL(ctx context.Context, reqURL string) (*SuggestedGasFees, error)
Click to show internal directories.
Click to hide internal directories.