# Fee Bump Plugin

<figure><img src="https://1878311582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrN5WLmmo14XNSVjsb16D%2Fuploads%2F3wDjphMc4XIXtecnemm2%2Fimage.png?alt=media&#x26;token=39c53b31-6c1e-47db-bac9-406ebf89e3d2" alt=""><figcaption></figcaption></figure>

The Fee Bump plugin can be used to wrap any given transaction into a Fee Bump transaction before moving forward to submit the transaction for processing.

* Pipeline Type: [submit-transaction](https://docs.cheesecakelabs.com/stellar-plus/reference/core/pipelines/submit-transaction "mention")
* Supported Pipelines:&#x20;
  * [submit-transaction](https://docs.cheesecakelabs.com/stellar-plus/reference/core/pipelines/submit-transaction "mention")
  * [soroban-transaction](https://docs.cheesecakelabs.com/stellar-plus/reference/core/pipelines/soroban-transaction "mention") - Targets its inner pipeline.
  * [classic-transaction](https://docs.cheesecakelabs.com/stellar-plus/reference/core/pipelines/classic-transaction "mention")- Targets its inner pipeline.

## preProcess

During the `preProcess` step of [submit-transaction](https://docs.cheesecakelabs.com/stellar-plus/reference/core/pipelines/submit-transaction "mention") pipelines, the Fee Bump plugin takes the original transaction and executes internal pipelines for it using the original header provided when instantiating the plugin according to the following steps.

1. Wrap transaction into Fee Bump
2. Calculate the signing requirements
3. Sign the fee bump transaction
4. Substitute the transaction object with the fee bump transaction object

Once the transaction is successfully wrapped into a fee bump and signed, the `preProcess` step proceeds with the Fee Bump transaction instead of the original transaction.
