Transfers & Withdrawals

private/transfer_spot

Changed on

Submits a signed transfer of a single spot asset from one subaccount to another subaccount you own. You specify the source and destination subaccounts (or set new_subaccount_manager to create a new destination subaccount under a manager), the asset and its sub_id, the amount, a nonce, signer, signature with expiry, and the maximum USD sequencer fee. Requires a session key with a transfer permission and returns the operation id and uuid.

post/private/transfer_spot

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

PrivateTransferSpotRequest required
amount, string decimal required

Transfer amount in units of the asset, as a decimal string (e.g. "1.5") or JSON number.

asset_name, string 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.

new_subaccount_manager, integer required

Non-zero → create a new sender-owned subaccount under this manager id.

nonce, string required
signature, string required
signature_expiry_sec, integer required
signer, string required
sub_id, integer required
subaccount_id, integer required
to_subaccount_id, integer required

Existing destination subaccount. Ignored when new_subaccount_manager != 0.

Response

Success

PrivateTransferSpotResponse required
op_uuid, string required
operation_id, integer required

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