# How to Speed Up or Cancel a Pending Transaction?

## Speeding Up a Transaction <a href="#speeding-up-a-transaction" id="speeding-up-a-transaction"></a>

Click the \[Speed Up]button. This option allows you to resubmit the same transaction with a higher gas fee, increasing the likelihood of faster processing. Since this process re-uses the same nonce as the original, you do not need to pay for gas twice.

\
Note: Speeding up a transaction will increase the total cost.

<figure><img src="/files/VE5U1LaWMF82T2p4JSq8" alt="" width="375"><figcaption></figcaption></figure>

## Canceling a Transaction <a href="#canceling-a-transaction" id="canceling-a-transaction"></a>

### Method 1: In-app Cancellation <a href="#method-1-in-app-cancellation" id="method-1-in-app-cancellation"></a>

Click the \[Cancel Transaction] button. This option is only available if the transaction is still pending. Once a transaction is confirmed, it cannot be reversed.

<figure><img src="/files/eyAr8bTXIICeQZ6dT0WS" alt="" width="375"><figcaption></figcaption></figure>

### Method 2: Custom Nonce <a href="#method-2-custom-nonce" id="method-2-custom-nonce"></a>

This process involves sending a new transaction with the same nonce (an identifying number for every transaction, derived from the phrase 'number only used once'). The transaction does not actually have to have any value — e.g., you could send 0 ETH. What matters is that you pay enough gas for the network to prioritize it.

When using this method, you will need to work backwards from the oldest pending transaction in the queue that you want to cancel. For example, you cannot attempt to cancel a transaction with a nonce of 10 before canceling nonce 9.

Note also that you may be able to cancel multiple transactions at once if they have the same nonce. Since a nonce—by definition—can only be used once, canceling one of them will cancel all that have the same nonce.

1. In the \[settings], enable \[Custom Nonce]. This feature must be turned on to send a replacement transaction using the same nonce.

<figure><img src="/files/12q8Bo7AXEkooXLA5uIS" alt="" width="375"><figcaption></figcaption></figure>

2. Send a new transaction. In the new transaction, send TO yourself, meaning your NeoLine public address. Fill in 'Custom Nonce' with the same nonce as the transaction that is still pending.

<figure><img src="/files/WPH07GG0Z73G0tY7AjDz" alt="" width="375"><figcaption></figcaption></figure>

To ensure your cancellation request is prioritized over the original transaction, you'll need to increase the gas fee. Follow these steps:

* Set the gas limit equal to or slightly higher than the original transaction.
* Set the priority fee at least 10% higher (in Gwei) than the original transaction's gas fee (e.g., if the original transaction had a gas fee of 30 Gwei, set the max priority fee for the replacement/cancellation transaction to 33-35 Gwei).
* Ensure the max fee is at least 30% higher than the max fee of the transaction you're replacing. For example, if the previous fee was 150 Gwei, set the new fee closer to 200 Gwei.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tutorial.neoline.io/getting-started/how-to-speed-up-or-cancel-a-pending-transaction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
