Transfers & Withdrawals

public/withdraw_debug

Dry-run helper that returns the EIP-712 typed data and hashes that would be computed for the given withdrawal parameters, so clients can verify their own signing and hashing before submitting. Takes the same inputs as private/withdraw (subaccount, signer, nonce, amount, max fee, expiry, asset) but performs no state change and needs no signature.

post/public/withdraw_debug

Request

  • Base URL: https://api.derive.xyz/v3
  • URL: https://api.derive.xyz/v3/public/withdraw_debug
  • Auth: none declared

Request body

amount_in_underlyingstring required
asset_namestring required
force_batchboolean required
max_fee_usdstring decimal required

Maximum sequencer fee the signer authorises, in USD, as a decimal string (e.g. "1.5") or a JSON number.

noncestring required
recipientstring nullable

L1 address the funds are paid out to. Defaults to the subaccount's owner wallet when omitted — matching what private/withdraw reconstructs.

signature_expiry_secinteger required
signerstring required
subaccount_idinteger required

Response

Success

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.