fetch_subaccount_ids

Documentation for eth_defi.derive.account.fetch_subaccount_ids function.

fetch_subaccount_ids(client)

Fetch subaccount IDs for a Derive wallet.

Parameters

client (DeriveApiClient) – Authenticated Derive API client with session key.

Returns

List of subaccount IDs (may be empty if no subaccounts exist).

Raises

ValueError – If authentication fails.

Return type

list[int]