Skip to content

Deposit to MegaVault

Deposit USDC into MegaVault

Method Declaration

Python
async def deposit(
    self, wallet: Wallet, address: str, subaccount_number: int, amount: Decimal
) -> Any

Parameters

ParameterLocationTypeDescription
accountqueryAccountOwner's account information
subaccountquerySubaccountInfoSubaccount information
amountqueryDecimalAmount in usdc to deposit

Response

StatusMeaningSchemaDescription
200OKTxHashThe transaction hash.
400Bad RequestThe request was malformed or invalid.
404Not FoundThe subaccount was not found.