Skip to main content
Cancel a pending withdrawal order to recover locked vault shares. Only the original order owner (verified on-chain via msg.sender) can cancel.
Only orders with status PENDING can be cancelled. Orders that have already been processed (COMPLETE) or are mid-refund (PENDING_REFUND, REFUNDED) cannot be cancelled.

Prerequisites

  • A Paxos Labs API key
  • An EVM-compatible signer (the same address that submitted the original withdrawal order)
  • The orderIndex of the pending withdrawal order

Step 1: Find the Order Index

Query GET /v2/amplify/withdrawalRequests to find the orderIndex of the order you want to cancel:
Each item in the response includes an orderIndex field:

Step 2: Prepare Cancel Calldata

GET /v2/amplify/withdraw/cancel returns the transaction to cancel a pending withdrawal order.

Parameters

Response

Step 3: Sign and Submit

Broadcast the cancellation transaction. The transaction must be sent from the same address that originally submitted the withdrawal order — ownership is enforced on-chain via msg.sender. After confirmation, the locked vault shares are returned to the user’s wallet.

Complete Examples

Error Responses