Skip to content

Get Subaccount

Retrieves a specific subaccount associated with a given address and subaccount number.

Method Declaration

Python
async def get_subaccount(
    self,
    address: str,
    subaccount_number: int,
) -> Any

Parameters

ParameterLocationTypeRequiredDescription
addressqueryAddresstrueThe primary address to which the subaccount belongs.
subaccountNumberquerySubaccountNumbertrueThe specific subaccount number to retrieve.

Response

StatusMeaningSchemaDescription
200OKSubaccountResponseObject ⛁The subaccount data.
400Bad RequestThe request was malformed or invalid.
404Not FoundThe subaccount was not found.
API Example