Skip to content

Deposit

Deposit funds (USDC) from the address to the subaccount.

Method Declaration

Python
async def deposit(
    self,
    wallet: Wallet,
    sender: str,
    recipient_subaccount: SubaccountId,
    asset_id: int,
    quantums: int,
)

Parameters

ParameterLocationTypeRequiredDescription
walletqueryWallettrueThe wallet to use for signing the transaction.
senderquerystringtrueThe sender address.
recipient_subaccountquerySubaccountIdtrueThe recipient subaccount ID.
asset_idqueryAssetIdtrueThe asset ID.
quantumsqueryinttrueThe amount of quantums to deposit. See more about quantums

Response

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