---
title: "public/get_subaccounts"
method: POST
path: "/public/get_subaccounts"
tags: ["Subaccounts"]
---

# public/get_subaccounts

`POST /public/get_subaccounts`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/public/get_subaccounts`
- Auth: none declared

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.

## Request body

- PublicGetSubaccountsRequest
  - `wallet` string, required: 20-byte Ethereum address as a 0x-prefixed lowercase hex string.

## Response `200`

Success

- PrivateGetSubaccountsResponse
  - `subaccount_ids` integer[], required
  - `wallet` string, required

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-10-20** `0c500202be49`: 1 info
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/public/get_subaccounts/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
