Actions7
Execute Swap
AI-generatedSummary
Executes a Cardano token swap through the Minswap Aggregator: gets an estimate, builds the transaction, signs it with the configured wallet address key, and submits it. Choose the token pair and amount, then set the address index, slippage limit, routing preferences, and amount format.
Inputs
- Address Index — Wallet address index used to derive the sender address and signing key; defaults to 0.
- Human-Readable Amounts — When enabled, interprets the amount in decimal units; when disabled, uses precise units such as lovelace. Defaults to enabled.
- From Token (required) — Token to swap from; use "lovelace" for ADA.
- To Token (required) — Token to receive, specified as a policy ID plus asset name.
- Swap Amount (required) — Amount of the source token to swap, formatted according to Human-Readable Amounts.
- Slippage Tolerance (%) — Maximum slippage passed to the estimate request; defaults to 3%, with a UI range of 0.1–50%.
- Allow Multi-Hop Swaps — Whether routing may pass through multiple pools; defaults to enabled.
- Exclude DEX Protocols — Protocols to exclude from routing; defaults to MuesliSwap and WingRiders. The UI notes that Minswap protocols cannot be excluded.
Output shape
A single JSON item per input item, containing the submitted transaction ID, status, build data, estimate, network, sender, swap details, routing settings, and timestamp on success.
The operation signs with the mnemonic configured in the required CrowdTrendz wallet credentials and submits through the Minswap Aggregator. Errors are returned as an object with an error message and swap/settings details; if Continue On Fail is enabled, the node emits that object, otherwise it throws.
