Function getPriorityFeeInLamports
getPriorityFeeInLamports( connection: Connection, computeBudgetLimit: number, lockedWritableAccounts: PublicKey[], percentile?: number, getRecentPrioritizationFees?: ( lockedWritableAccounts: PublicKey[], ) => Promise<RecentPrioritizationFees[]>,): Promise<number> Parameters
- connection: Connection
- computeBudgetLimit: number
- lockedWritableAccounts: PublicKey[]
- percentile: number = DEFAULT_PRIORITY_FEE_PERCENTILE
Optional
getRecentPrioritizationFees: (lockedWritableAccounts: PublicKey[]) => Promise<RecentPrioritizationFees[]>
Returns Promise<number>