Priority Fees

The Pump.fun Trading API allows users to optionally declare priority fee for transactions, to increase the priority/speed of the transaction.

This fee is paid in Sol, in addition to the regular transaction fee.

Priority fees are by default 0, and are optional to declare on any endpoint that allows it.

Priority fees are made up of two possible values, unitLimit and unitPrice.

  • Unit Limit: Sets the maximum compute units a transaction can use, preventing failures due to insufficient compute resources.

  • Unit Price: Defines the fee per compute unit in microLamports, increasing transaction priority by incentivizing validators.

Priority fees are not required to successfully execute a transaction, but they can be used to increase the priority/speed of the transaction.

Attributes

priorityUnitLimit

(number) nullable

The maximum compute units a transaction can use, preventing failures due to insufficient compute resources.

priorityUnitPrice

(number) nullable

The fee per compute unit in microLamports, increasing transaction priority by incentivizing validators.

Priority Fees Example

{ "priorityUnitLimit": 1000000, "priorityUnitPrice": 1000 }