Subaccounts

private/get_subaccounts

Changed on

Returns the wallet address and the sorted list of subaccount IDs owned by that wallet. Yields an empty list if the wallet has no subaccounts.

post/private/get_subaccounts

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

GetSubaccountsRequest required
wallet, string required

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

Response

Success

PrivateGetSubaccountsResponse required
subaccount_ids, integer[] required
wallet, string 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