GET /api/aggregator/supported-dexes for best execution. You request a quote, Nexus returns the best route and an unsigned transaction CBOR, you sign it with your wallet, and Nexus co-signs and submits it. The aggregator is non-custodial: Nexus never holds your funds or keys, and you sign every transaction.
The build and submit endpoints require the Transaction Builder add-on. Without it they return HTTP 402 with
"addon": "transactionBuilder". The read endpoints (quote, reverse-quote, tokens, supported-dexes, status) need only a market-data-eligible tier.https://nexus.gerowallet.io · Auth: X-Api-Key: nxs_…
Endpoints
The flow
- Quote — POST
/api/aggregator/quote(exact-in) or/api/aggregator/reverse-quote(exact-out). You get the best route: expected output, price impact, the fee breakdown, andappliedFeeRate/discountApplied. - Build — POST the chosen route to
/api/aggregator/build-tx. You receiveunsignedTxCborandtxBodyHash. The transaction already contains the DEX order, the aggregator fee output, and the aggregator’s key inrequiredSigners. - Sign — sign the CBOR client-side with CIP-30
signTx(unsignedTxCbor, true). Nexus never sees your keys. This produces your witness set. - Submit — POST
{ unsignedTxCbor, userWitnessHex }to/api/aggregator/submit. Nexus validates the fee output, co-signs with the aggregator key, merges witnesses, and submits. You get atxHash. - Track — poll
/api/aggregator/status/{txHash}:PENDING | SUBMITTED | CONFIRMED | FAILED | EXPIRED.
Submission is co-signed:
/build-tx puts the aggregator’s key in requiredSigners, so the transaction is only valid once Nexus adds its signature at /submit. This is what enforces the aggregator fee — a transaction Nexus did not build (or whose fee output was altered) is rejected with UNKNOWN_BUILD.Fees
The aggregator fee is a separate output on the swap transaction, taken on the ADA side.
Pass
senderAddress on the quote request to see your effective rate (appliedFeeRate, discountApplied). The rate is pinned when the transaction is built and re-checked at submit with a small grace band, so price movement between build and submit cannot invalidate an honest swap.
Because the fee is a standalone ADA output it is subject to Cardano’s minimum-UTxO rule, so the effective minimum fee is ~1.2 ADA even though the percentage floor is 0.5 ADA. This only affects swaps whose proportional fee would otherwise fall below ~1.2 ADA (roughly, ADA notionals under ~1,200); above that the percentage dominates.
Exact-output quotes
/api/aggregator/reverse-quote returns the least input required to net a desired output. For token → ADA swaps, the response’s minimumOutput is the gross pool floor (amountOut + the DEX batcher fee), so it can be larger than expectedOutput — this is intentional: it guarantees you net the amount you asked for after the batcher takes its fee. The required input is reported in the route’s amountIn; maximumInput carries the slippage ceiling.
Submit error codes
/api/aggregator/submit returns structured errors as { "errorCode": …, "message": … }:
Supported DEXes
The routable set is returned live byGET /api/aggregator/supported-dexes (the txBuilding list), and that response is the authority: it changes as venues are verified. Swap building is currently routable on Minswap (V1 and V2), WingRiders (V1 and V2), Splash, and SaturnSwap. Other venues are indexed for market data and quoting but are not in the default build path. Always read supported-dexes at runtime rather than hardcoding a venue list.