---
title: "private/cancel_all_vault_requests"
method: POST
path: "/private/cancel_all_vault_requests"
tags: ["Vault Shareholders"]
---

# private/cancel_all_vault_requests

`POST /private/cancel_all_vault_requests`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/private/cancel_all_vault_requests`
- Auth: API key in header `X-DeriveWallet` and API key in header `X-DeriveTimestamp` and API key in header `X-DeriveSignature`

Submits a signed cancel action that drains all of the caller's pending deposit and withdraw requests for a given vault and posts the corresponding on-chain operation. Input is the vault subaccount; any subaccount the caller owns may sign. Requires the user-cancel permission.

## Request body

- CancelVaultRequestRequest: Fields common to every signed vault action. They appear alongside each endpoint's action-specific parameters in the same request object.
  - `nonce` string, required
  - `signature` string, required: 0x-prefixed hex of the 65-byte EOA signature.
  - `signature_expiry_sec` integer, required
  - `signer` string, required: 20-byte Ethereum address as a 0x-prefixed lowercase hex string.
  - `subaccount_id` integer, required: The subaccount the action is signed on; which subaccount applies depends on the specific method — see that method's reference.
  - `vault_subaccount_id` integer, required

## Response `200`

Success

- VaultCancelResponse: Returned by `cancel_all_vault_requests`: identifiers to track the on-chain `VaultCancel` operation plus the ids of the wallet's pending requests that were cancelled.
  - `cancelled_request_ids` VaultRequestId[], required
    - `vault_nonce` string, required
    - `vault_subaccount_id` integer, required
    - `wallet` string, required: 20-byte Ethereum address as a 0x-prefixed lowercase hex string.
  - `op_uuid` string, required
  - `operation_id` integer, required

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-10-20** `0c500202be49`: 2 info
  - the endpoint scheme security `DeriveWallet AND DeriveTimestamp AND DeriveSignature` was added to the API
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/private/cancel_all_vault_requests/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
