Skip to content

Get Subaccount

Fetches details of a specific subaccount based on its owner's address and the subaccount's unique number.

Method Declaration

Python
async def get_subaccount(
    self,
    address: str,
    account_number: int,
) -> Optional[subaccount_type.Subaccount]
Unification Plan
  • Rust uses Subaccount - a wrapper that combines Address with SubaccountNumber, it's safer to create the same type for Python and TypeScript

Parameters

ParameterLocationTypeRequiredDescription
ownerqueryAddresstrueThe wallet address that owns the account.
numberquerySubaccountNumbertrueThe identifier for the specific subaccount withing the wallet address.

Response

StatusMeaningSchemaDescription
200OKSubaccountInfoThe response containing the subaccount.
400Bad RequestThe request was malformed or invalid.
404Not FoundThe subaccount was not found.

Examples: Python | TypeScript | Rust | API | Guide - Get Subaccount