propose_sub_account_swap
Swap inside a sub-account between a currency (USD, EUR, CHF, CAD, MXN) and a crypto asset (e.g. cbBTC), or between two currencies. Funds stay in the sub-account. Not for the main account (use initiate_crypto_trade or initiate_currency_exchange). 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>",
"fromAsset": "<fromAsset>",
"toAsset": "<toAsset>",
"amount": "<amount>"
},
"name": "propose_sub_account_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount of fromAsset to sell, e.g. '100' | |
| toAsset | Yes | What to buy: a currency code (EUR) or asset symbol (WETH) | |
| fromAsset | Yes | What to sell: a currency code (USD) or asset symbol (cbBTC) | |
| slippageBps | No | Max slippage in basis points (default 50) | |
| subAccountId | Yes | Sub-account UUID (from list_sub_accounts) |