> ## Documentation Index
> Fetch the complete documentation index at: https://cobo-docs-feature-cobo-cli.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Drop Transaction

> <Note>This content applies to WaaS 1.0 only. We highly recommend that you upgrade to [WaaS 2.0](https://www.cobo.com/developers/v2/guides/overview/introduction).</Note> This endpoint accepts parameters 'cobo_id' and 'request_id' as required fields, and 'fee', 'gas_price', 'gas_limit', and 'fee_amount' as optional fields. The endpoint returns a JSON response containing information about the transaction request.

<Tip>
  Only transactions with the status 401, 402, and 403 are eligible to be replaced.<br />
  Once a transaction (the original transaction or the new transaction) on the chain reaches the required number of confirmations (transaction status changes to 900), other RBF-related transactions will be marked as replaced (transaction status changes to 901).
</Tip>

#### Request

<ParamField body="cobo_id" type="String" required>Unique transaction ID</ParamField>
<ParamField body="request_id" type="String" required>RBF transaction request ID (unique identifier of a transaction request, which must correspond to a client's transaction; UUID should be used and the length should be equal to or less than 120 characters)</ParamField>
<ParamField body="fee" type="Float">Transaction fees per byte; must be higher than the original transaction fees; applicable to the UTXO model</ParamField>
<ParamField body="gas_price" type="Int">Gas price; must be higher than the original gas price</ParamField>
<ParamField body="gas_limit" type="Int">Gas limit</ParamField>
<ParamField body="fee_amount" type="Int">transaction fee; applicable to UTXO model; use either fee or fee\_amount for UTXO model</ParamField>
<ParamField query="auto_fuel" type="Int">How the transaction utilizes the gas station, 0: no refueling(default); 1: passive use of the gas station; 2: active use of the gas station. <br /> This parameter is used when you've activated the gas station service and use the gas station to support the transaction fee for MPC transactions.</ParamField>
<Tip>The gas station will definitely refuel for the transaction when in active use, while for passive use, refueling by the gas station occurs only when the address balance is insufficient for transaction fees.</Tip>

<ParamField body="extra_parameters" type="String">
  UTXO Model:

  * utxo\_from\_address: Given that the new transaction fee is higher, if the new transaction requires additional inputs, then the new inputs will be selected from `utxo_from_address`. Please note that the new inputs will be selected from the current wallet if this parameter is not provided.

  ```python Sample
  extra_parameters: '{"utxo_from_address": "tb1qpllcnnpt3z9nkxtj3a0jmhdj5xvxaerhv5xs5n"}'
  ```
</ParamField>

#### Response

<ResponseField name="success" type="bool">request successful or failed</ResponseField>

<ResponseField name="result" type="object">
  <Expandable title="object">
    <ResponseField name="cobo_id" type="String">Unique transaction ID</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```python Python
  request(
      "POST",
      "/v1/custody/mpc/drop_transaction/",
      {
          "cobo_id": "20221229151018000370189000003690",
          "request_id": "722669426842706122"
      },
      api_key, api_secret, host
  )
  ```

  ```javascript JavaScript
  coboFetch('POST', '/v1/custody/mpc/drop_transaction/', {
      "cobo_id": "20221229151018000370189000003690",
      "request_id": "722669426842706122"
  }, api_key, api_secret, host)
      .then(res => {
          res.json().then((data)=>{
              console.log(JSON.stringify(data, null, 4));
          })
      }).catch(err => {
          console.log(err)
      });
  ```

  ```go Go
  Request("POST", "/v1/custody/mpc/drop_transaction/", map[string]string{
      "cobo_id": "20221229151018000370189000003690",
      "request_id": "722669426842706122"
  })
  ```
</RequestExample>

<ResponseExample>
  ```json
  {
    "success": true,
    "result": {
      "cobo_id": "20221227195133000378036000001822"
    }
  }

  ```
</ResponseExample>
