> ## Documentation Index
> Fetch the complete documentation index at: https://docs.loopscale.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel Earn Withdrawal

Builds the transactions that cancel an open queued withdrawal and return its shares to the wallet. Only available when the vault's `cancelEnabled` flag is set (see [Get Earn Vault](/api-reference/data/earn/get-earn-vault)).

Get `requestId` from the withdraw request response, or from `openWithdrawalRequests[].onChainRequestAddr` on [Get Earn Position](/api-reference/data/earn/get-earn-position).

Sign and send `txBase64s` in order as one Jito bundle, as described in [Sending Earn transactions](/api-reference/transactions/earn/deposit#sending-earn-transactions).

## Body

<ParamField body="address" type="string" required>
  Earn vault address.
</ParamField>

<ParamField body="wallet" type="string" required>
  Wallet that opened the request.
</ParamField>

<ParamField body="requestId" type="string" required>
  Withdrawal request account address.
</ParamField>

<ParamField body="providerKind" type="string" default="exponent">
  Vault provider. Only `exponent` is supported today.
</ParamField>

## Response

Same shape as [Deposit to Earn Vault](/api-reference/transactions/earn/deposit#response), with `action: "withdrawCancel"` and `requestId` echoed back.

<RequestExample>
  ```bash Example theme={null}
  curl -X POST https://tars.loopscale.com/v1/pandora/earn/vaults/withdraw_cancel/tx \
    -H "Content-Type: application/json" \
    -d '{
      "address": "EsTx9ToYW2k1DsTw6ccpmP3RrXQriod114hcM7U5ZKaR",
      "wallet": "<WALLET>",
      "requestId": "<REQUEST_ACCOUNT>"
    }'
  ```
</RequestExample>
