Actions7
Get Quote
AI-generatedSummary
Fetches a swap quote from the Minswap Aggregator for a token pair and amount on the credential’s Cardano network. The quote request uses a fixed 3% slippage value and returns the aggregator response with the request details and routing settings.
Inputs
- Human-Readable Amounts — Defaults to true. When enabled, the amount is sent as a decimal amount; when disabled, use precise units such as lovelace.
- From Token (required) — Token to swap from; use
lovelacefor ADA. - To Token (required) — Token to swap to, entered as a policy ID plus asset name.
- Swap Amount (required) — Amount to quote, formatted according to Human-Readable Amounts.
- Allow Multi-Hop Swaps — Defaults to true; controls whether routing may pass through multiple pools.
- Exclude DEX Protocols — Protocols to exclude from routing; defaults to MuesliSwap and WingRiders. The selected values are sent only when the list is nonempty.
Output shape
A single output item containing a quote object and request metadata, or an error object.
The quote object contains the Minswap Aggregator response. Metadata includes the token pair, requested amount, network, partner identifier, routing settings, and a timestamp on success. Non-mainnet credentials use the
preprodnetwork parameter. API failures are caught and returned as anerrorfield rather than thrown.
