create_stableswap_order
Submit a stableswap order to mint iAsset from collateral or redeem iAsset for collateral. Returns an unsigned transaction for client-side signing.
Instructions
Submit a stableswap order: swap collateral for iAsset (minting=true) or iAsset for collateral (minting=false). Returns an unsigned transaction (CBOR hex) for client-side signing.
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": {
"address": "<address>",
"asset": "<asset>",
"amount": "<amount>",
"minting": "<minting>"
},
"name": "create_stableswap_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | iAsset name (iUSD, iBTC, iETH, or iSOL) | |
| amount | Yes | Amount in smallest unit to swap | |
| address | Yes | User Cardano bech32 address | |
| minting | Yes | true = collateral → iAsset (mint direction); false = iAsset → collateral (redeem direction) |