Withdraw from MegaVault
Withdraw funds (USDC) from the subaccount to the address.
Method Declaration
Python
async def withdraw(
self,
wallet: Wallet,
address: str,
subaccount_number: int,
min_amount: Decimal,
shares: Optional[int],
) -> AnyParameters
| Parameter | Location | Type | Description |
|---|---|---|---|
account | query | Account | Owner's account |
subaccount | query | SubaccountInfo | Subaccount information |
min_amount | query | Decimal | Minimum amount to withdraw i usdc |
shares | query | BigInt | Number of shares |
Response
| Status | Meaning | Schema | Description |
|---|---|---|---|
200 | OK | TxHash | The transaction hash. |
400 | Bad Request | The request was malformed or invalid. | |
404 | Not Found | The subaccount was not found. |