> ## Documentation Index
> Fetch the complete documentation index at: https://cobo.com/products/agentic-wallet/manual/llms.txt
> Use this file to discover all available pages before exploring further.

# Speed up or cancel transactions

> Replace a pending transaction with a higher-fee version to speed it up, or cancel it by dropping the nonce.

For EVM-style pending transactions, CAW supports two recovery flows:

* `speedup_transaction` to replace the pending transaction with a higher-fee version
* `drop_transaction` to cancel it with a replacement transaction to the same nonce

## Speed up a transaction

<Tabs>
  <Tab title="CLI">
    ```bash theme={null}
    caw tx speedup --tx-id <TRANSACTION_UUID>
    ```
  </Tab>

  <Tab title="Python SDK">
    ```python theme={null}
    result = await client.speedup_transaction(
        wallet_uuid=wallet_id,
        transaction_uuid=transaction_uuid,
        fee={
            "fee_type": "EVM_EIP_1559",
            "max_fee_per_gas": "50000000000",
            "max_priority_fee_per_gas": "2000000000",
        },
    )
    ```
  </Tab>

  <Tab title="TypeScript SDK">
    ```typescript theme={null}
    const result = (await txApi.speedupTransaction(walletId, transactionUuid, {
      fee: {
        fee_type: 'EVM_EIP_1559',
        max_fee_per_gas: '50000000000',
        max_priority_fee_per_gas: '2000000000',
      },
    })).data.result;
    ```
  </Tab>
</Tabs>

## Drop a transaction

<Tabs>
  <Tab title="CLI">
    ```bash theme={null}
    caw tx drop --tx-id <TRANSACTION_UUID>
    ```
  </Tab>

  <Tab title="Python SDK">
    ```python theme={null}
    await client.drop_transaction(
        wallet_uuid=wallet_id,
        transaction_uuid=transaction_uuid,
    )
    ```
  </Tab>

  <Tab title="TypeScript SDK">
    ```typescript theme={null}
    await txApi.dropTransaction(walletId, transactionUuid, {});
    ```
  </Tab>
</Tabs>

## When to use which

| Action                | Use when                                                  |
| --------------------- | --------------------------------------------------------- |
| `speedup_transaction` | You still want the same operation to execute, just faster |
| `drop_transaction`    | You want to cancel the pending operation altogether       |

For recovery, always pair these actions with [Transaction Tracking](/products/agentic-wallet/manual/developer/transaction-tracking).
