---
title: "public/register_deposit_address"
method: POST
path: "/public/register_deposit_address"
tags: ["Onchain Actions"]
---

# public/register_deposit_address

`POST /public/register_deposit_address`

## Request

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

A pre-requisite before using the `standard` deposit method as opposed to `direct` contract calls. Returns the deterministic on-chain deposit address for a wallet and records it so incoming deposits are watched and credited. Pass the wallet and optionally an existing subaccount id; when creating a new subaccount (subaccount omitted or 0) a non-zero manager_id is required. Repeated calls return the same cached address and keep it alive, while new registrations are rate limited per rolling window; unused addresses are dropped after 7 days.

## Request body

- RegisterDepositAddressParams
  - `manager_id` integer, nullable: Manager the deposit routes under. Required (non-zero) when creating a new subaccount (`subaccount_id` omitted or 0); must be 0 or omitted for an existing subaccount — it salts the deposit address, so a nonzero value would mint a distinct escrow for the same destination.
  - `subaccount_id` integer
  - `wallet` string, required: Wallet address to watch for deposits.

## Response `200`

Success

- RegisterDepositAddressResult
  - `deposit_address` string, required
  - `manager_id` integer, nullable
  - `subaccount_id` integer, nullable
  - `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/register_deposit_address/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)
