Skip to content

Get Subaccounts

Retrieves a list of subaccounts associated with a given address. Subaccounts are related addresses that fall under the authority or ownership of the primary address.

Method Declaration

Python
async def get_subaccounts(
    self,
    address: str,
    limit: Optional[int] = None,
) -> Any
Unification Plan
  • Rust implementation doesn't have optional parameters.

Parameters

ParameterLocationTypeRequiredDescription
addresspathAddresstrueThe primary address for which to retrieve associated subaccounts.
limitqueryu32falseMaximum number of subaccounts in the response.

Response

StatusMeaningSchemaDescription
200OKAddressResponseThe subaccounts data.
400Bad RequestThe request was malformed or invalid.
API Example