private/order_debug
Changed onTakes the same params as private/order and rebuilds the order Action without executing anything, returning the EIP-712 encoded_data, encoded_data_hashed, action_hash, typed_data_hash, domain_separator, action_typehash, module, owner and expected_signer, plus the decoded order action data. Byte-compare these against your local computation to find why a signature is rejected. Requires a logged-in session; no trade scope needed.
Request
- Base URLhttps://api.derive.xyz/v3
- AuthAPI key in header X-DeriveWallet and API key in header X-DeriveTimestamp and API key in header X-DeriveSignature
Request body
private/order params.
Order amount in units of the base, as a decimal string (e.g. "1.5") or a JSON number.
Optional builder fee for the whole order, in USDC, as a decimal string or JSON number. Each fill pays its pro-rata share. Defaults to zero.
Limit price in quote currency, as a decimal string (e.g. "3100.5") or a JSON number.
Max fee per unit of volume in quote currency, as a decimal string or a JSON number.
Tags the order for market maker protection. Only tagged orders are cancelled by cancel on disconnect.
Trigger price as a decimal string or JSON number; omit for non-trigger orders.
Response
Success
Debug-route payload for one rebuilt action: the EIP-712 hashes plus the action input fields.
EIP-712 struct hash of the Action: keccak256(abi.encode(action_typehash, …, encoded_data_hashed, …)).
ACTION_TYPEHASH — keccak of the Action struct type string; invariant across deployments.
EIP-712 domain separator of the Matching contract for this deployment.
ABI-encoded, module-specific action payload (the data bytes), 0x-hex.
keccak256(encoded_data) — the value packed into the struct hash.
The signer the signature is checked against.
The rebuilt Action envelope and its decoded module-specific data.
Per-action module contract address bound into the signed struct.
Wallet that owns the subaccount the action applies to.
null on the debug routes (no signature is checked there); on a signature-mismatch error this is the address actually recovered.
Final EIP-712 digest the client signs: keccak256(0x1901 || domain_separator || action_hash).
Changes
- info
the endpoint scheme security
DeriveWallet AND DeriveTimestamp AND DeriveSignaturewas added to the API - info
added the media type
application/jsonfor the response with the status
- info