propose_sub_account_withdraw
Move money from a sub-account back to the user's own main account. Not for paying someone from a sub-account (use initiate_payment with source.kind=sub_account). Single-signature sub-accounts only; for a joint account use propose_sub_account_multisig_proposal. Creates a request the user approves in the Moneda mobile app; nothing happens until then. After calling, poll get_payment_status.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"subAccountId": "<subAccountId>",
"amount": "<amount>",
"currency": "<currency>"
},
"name": "propose_sub_account_withdraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount in user-facing units, e.g. '25.00' | |
| currency | Yes | Currency | |
| subAccountId | Yes | Sub-account UUID (from list_sub_accounts) |