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

# public/get_wallet

`POST /public/get_wallet`

## Request

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

Returns the wallet address that owns `subaccount_id`; the reverse of `public/get_subaccounts`. Returns a subaccount-not-found error if the subaccount does not exist. The result can be up to 60 seconds old. Public endpoint, no authentication required.

## Request body

- PublicGetWalletRequest
  - `subaccount_id` integer, required

## Response `200`

Success

- PublicGetWalletResponse
  - `subaccount_id` 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`
- **2026-10-16** `d4afa85e2ce9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/public/get_wallet/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)
