Withdraw
Withdraw funds (USDC) from the subaccount to the address.
Method Declaration
Python
async def withdraw(
self,
wallet: Wallet,
sender_subaccount: SubaccountId,
recipient: str,
asset_id: int,
quantums: int,
)Parameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
wallet | query | Wallet | true | The wallet to use for signing the transaction. |
sender_subaccount | query | SubaccountId | true | The sender subaccount ID. |
recipient | query | string | true | The recipient subaccount ID. |
asset_id | query | AssetId | true | The asset ID. |
quantums | query | int | true | The amount of quantums to withdraw. |
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. |
Examples: Python | TypeScript | Rust