Transfers & Withdrawals
public/withdraw_debug
Changed onDry-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 URLhttps://api.derive.xyz/v3
- Authnone declared
Request body
Public Withdraw Debug Request 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
- info
added the media type
application/jsonfor the response with the status
- info