Transfers & Withdrawals

private/transfer_spot_external

Changed on

Submits a signed transfer of a single spot asset to a subaccount belonging to a different owner. Alongside the standard transfer fields (asset, sub_id, amount, nonce, signer, signature, expiry, max USD fee) you give the recipient's wallet address and either an existing destination subaccount or 0 to create a new one under new_subaccount_manager; the max fee must cover both the transfer and any subaccount-creation cost. Requires a session key permitted to transfer to a different owner and returns the operation id and uuid.

post/private/transfer_spot_external

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

PrivateTransferSpotExternalRequest 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. Must cover both the transfer fee and any subaccount-creation fee.

new_subaccount_manager, integer required

Manager id for the new subaccount when to_subaccount_id == 0.

nonce, string required
recipient_address, string required

Owner of the destination account/subaccount. Must not be the sender's own wallet; use private/transfer_spot for that.

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

Recipient's existing destination subaccount. 0 → create a new subaccount for recipient_address under new_subaccount_manager.

Response

Success

PrivateTransferSpotExternalResponse 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