getPriorityFeeEstimate()
getPriorityFeeEstimate()
function getPriorityFeeEstimate(connection, options): Promise<{
data: RecentPrioritizationFee;
median: number;
}>;Defined in: percentile.ts:26
Fetch the recent prioritization fees from the RPC [getRecentPrioritizationFees]
Parameters
| Parameter | Type | Description |
|---|---|---|
connection | Connection | The connection to the RPC |
options | GetPriorityFeeEstimateOptions | The options for the RPC |
Returns
Promise<{
data: RecentPrioritizationFee;
median: number;
}>
The priority fee estimate