Vault Shareholders

private/cancel_all_vault_requests

Changed on

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.

post/private/cancel_all_vault_requests

Request

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

Request body

CancelVaultRequestRequest required

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

Success

VaultCancelResponse required

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
op_uuid, string required
operation_id, integer required

Changes

    • info

      the endpoint scheme security DeriveWallet AND DeriveTimestamp AND DeriveSignature was added to the API

    • info

      added the media type application/json for the response with the status