Subaccounts

public/get_subaccounts

Changed on

Returns the wallet address and the sorted list of all subaccount IDs owned by that wallet. Yields an empty list if the wallet has no subaccounts. Public endpoint, no authentication required.

post/public/get_subaccounts

Request

  • Base URL
    https://api.derive.xyz/v3
  • Auth
    none declared

Request body

PublicGetSubaccountsRequest 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