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,
) -> AnyParameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
address | query | Address | true | The primary address to which the subaccount belongs. |
subaccountNumber | query | SubaccountNumber | true | The specific subaccount number to retrieve. |
Response
| Status | Meaning | Schema | Description |
|---|---|---|---|
200 | OK | SubaccountResponseObject ⛁ | The subaccount data. |
400 | Bad Request | The request was malformed or invalid. | |
404 | Not Found | The subaccount was not found. |