Skip to content

Transfer

Transfer funds (USDC) between subaccounts.

Method Declaration

Python
async def transfer(
    self,
    wallet: Wallet,
    sender_subaccount: SubaccountId,
    recipient_subaccount: SubaccountId,
    asset_id: int,
    amount: int,
)

Parameters

ParameterLocationTypeRequiredDescription
walletqueryWallettrueThe wallet to use for signing the transaction.
sender_subaccountquerySubaccountIdtrueThe sender subaccount ID.
recipient_subaccountquerySubaccountIdtrueThe recipient subaccount ID.
asset_idqueryAssetIdtrueThe asset ID.
amountqueryinttrueThe amount to transfer i USDC

Response

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

Examples: Python | TypeScript | Rust