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,
) -> AnyUnification Plan
- Rust implementation doesn't have optional parameters.
Parameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
address | path | Address | true | The primary address for which to retrieve associated subaccounts. |
limit | query | u32 | false | Maximum number of subaccounts in the response. |
Response
| Status | Meaning | Schema | Description |
|---|---|---|---|
200 | OK | AddressResponse | The subaccounts data. |
400 | Bad Request | The request was malformed or invalid. |