Transfers & Withdrawals

private/transfer_positions_debug

Changed on

Takes the same params as private/transfer_positions and rebuilds both the maker and taker Actions without executing anything, returning for each side 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 action data (the maker's priced legs, and the taker's order_hash committing to them). Byte-compare these against your local computation to find why a signature is rejected. Requires a logged-in session; no transfer scope needed.

post/private/transfer_positions_debug

Request

  • Base URL
    https://api.derive.xyz/v3
  • Auth
    API key in header X-DeriveWallet and API key in header X-DeriveTimestamp and API key in header X-DeriveSignature

Request body

TransferPositionsRequest required

Params for private/transfer_positions.

maker_params, SignedTransferQuoteRequest required

Action info that needs to be signed by quoter or RFQ executor for a transfer. The quoter signs the legs hash + max fee; the executor signs the same legs hash + their own max fee.

taker_params, SignedTransferQuoteRequest required

Action info that needs to be signed by quoter or RFQ executor for a transfer. The quoter signs the legs hash + max fee; the executor signs the same legs hash + their own max fee.

wallet, string required

20-byte Ethereum address as a 0x-prefixed lowercase hex string.

Response

Success

TransferPositionsDebugResponse required

private/transfer_positions_debug result: the maker and taker actions the route rebuilds, exactly as private/transfer_positions verifies them.

maker_result, TransferPositionsMakerDebugResponse required

Debug-route payload for one rebuilt action: the EIP-712 hashes plus the action input fields.

taker_result, TransferPositionsTakerDebugResponse required

Debug-route payload for one rebuilt action: the EIP-712 hashes plus the action input fields.

Changes

    • info

      the endpoint scheme security DeriveWallet AND DeriveTimestamp AND DeriveSignature was added to the API

    • info

      added the media type application/json for the response with the status