getRecentPrioritizationFee()
getRecentPrioritizationFee()
function getRecentPrioritizationFee(connection, options): Promise<RecentPrioritizationFee>;Defined in: percentile.ts:38
If an RPC of use supports percentile value, aka https://docs.triton.one/chains/solana/improved-priority-fees-api
Parameters
| Parameter | Type | Description |
|---|---|---|
connection | Connection | The connection to the RPC |
options | Pick<GetPriorityFeeEstimateOptions, "accountsOrTx" | "percentile"> | The options for the RPC |
Returns
Promise<RecentPrioritizationFee>
The priority fee estimate