Onchain Actions

public/register_deposit_address

Changed on

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.

post/public/register_deposit_address

Request

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

Request body

RegisterDepositAddressParams required
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

Success

RegisterDepositAddressResult required
deposit_address, string required
manager_id, integer nullable
subaccount_id, integer nullable
wallet, string required

Changes