Transfers & Withdrawals

public/withdraw_debug

Changed on

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
  • Auth
    none declared

Request body

PublicWithdrawDebugRequest required
amount_in_underlying, string required
asset_name, string required
force_batch, boolean required
max_fee_usd, string decimal required

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

nonce, string required
recipient, string 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_sec, integer required
signer, string required
subaccount_id, integer required

Response

Success

unknown required

Changes