curl --request POST \
--url https://nexus.gerowallet.io/api/aggregator/reverse-quote \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"tokenIn": "<string>",
"tokenOut": "<string>",
"amountOut": "<string>",
"slippageTolerance": 123,
"excludeDexes": [
"<string>"
],
"senderAddress": "<string>",
"partnerPayoutAddress": "<string>",
"partnerFeeBps": 123,
"partnerApiKeyId": "<string>",
"partnerFeeFixedLovelace": 123,
"partnerMaxFeeLovelace": 123,
"routePolicy": {
"unrestricted": true
}
}
'import requests
url = "https://nexus.gerowallet.io/api/aggregator/reverse-quote"
payload = {
"tokenIn": "<string>",
"tokenOut": "<string>",
"amountOut": "<string>",
"slippageTolerance": 123,
"excludeDexes": ["<string>"],
"senderAddress": "<string>",
"partnerPayoutAddress": "<string>",
"partnerFeeBps": 123,
"partnerApiKeyId": "<string>",
"partnerFeeFixedLovelace": 123,
"partnerMaxFeeLovelace": 123,
"routePolicy": { "unrestricted": True }
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tokenIn: '<string>',
tokenOut: '<string>',
amountOut: '<string>',
slippageTolerance: 123,
excludeDexes: ['<string>'],
senderAddress: '<string>',
partnerPayoutAddress: '<string>',
partnerFeeBps: 123,
partnerApiKeyId: '<string>',
partnerFeeFixedLovelace: 123,
partnerMaxFeeLovelace: 123,
routePolicy: {unrestricted: true}
})
};
fetch('https://nexus.gerowallet.io/api/aggregator/reverse-quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://nexus.gerowallet.io/api/aggregator/reverse-quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tokenIn' => '<string>',
'tokenOut' => '<string>',
'amountOut' => '<string>',
'slippageTolerance' => 123,
'excludeDexes' => [
'<string>'
],
'senderAddress' => '<string>',
'partnerPayoutAddress' => '<string>',
'partnerFeeBps' => 123,
'partnerApiKeyId' => '<string>',
'partnerFeeFixedLovelace' => 123,
'partnerMaxFeeLovelace' => 123,
'routePolicy' => [
'unrestricted' => true
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://nexus.gerowallet.io/api/aggregator/reverse-quote"
payload := strings.NewReader("{\n \"tokenIn\": \"<string>\",\n \"tokenOut\": \"<string>\",\n \"amountOut\": \"<string>\",\n \"slippageTolerance\": 123,\n \"excludeDexes\": [\n \"<string>\"\n ],\n \"senderAddress\": \"<string>\",\n \"partnerPayoutAddress\": \"<string>\",\n \"partnerFeeBps\": 123,\n \"partnerApiKeyId\": \"<string>\",\n \"partnerFeeFixedLovelace\": 123,\n \"partnerMaxFeeLovelace\": 123,\n \"routePolicy\": {\n \"unrestricted\": true\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://nexus.gerowallet.io/api/aggregator/reverse-quote")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tokenIn\": \"<string>\",\n \"tokenOut\": \"<string>\",\n \"amountOut\": \"<string>\",\n \"slippageTolerance\": 123,\n \"excludeDexes\": [\n \"<string>\"\n ],\n \"senderAddress\": \"<string>\",\n \"partnerPayoutAddress\": \"<string>\",\n \"partnerFeeBps\": 123,\n \"partnerApiKeyId\": \"<string>\",\n \"partnerFeeFixedLovelace\": 123,\n \"partnerMaxFeeLovelace\": 123,\n \"routePolicy\": {\n \"unrestricted\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nexus.gerowallet.io/api/aggregator/reverse-quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tokenIn\": \"<string>\",\n \"tokenOut\": \"<string>\",\n \"amountOut\": \"<string>\",\n \"slippageTolerance\": 123,\n \"excludeDexes\": [\n \"<string>\"\n ],\n \"senderAddress\": \"<string>\",\n \"partnerPayoutAddress\": \"<string>\",\n \"partnerFeeBps\": 123,\n \"partnerApiKeyId\": \"<string>\",\n \"partnerFeeFixedLovelace\": 123,\n \"partnerMaxFeeLovelace\": 123,\n \"routePolicy\": {\n \"unrestricted\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"routes": [
{
"bestPoolId": "<string>",
"orderTxHash": "<string>",
"orderOutputIndex": 123,
"dex": "MINSWAP_V1",
"tokenIn": "<string>",
"tokenOut": "<string>",
"amountIn": 123,
"expectedOutput": 123,
"minimumOutput": 123,
"stopLossOutput": 123,
"priceImpact": 123,
"lpFeePercent": 123,
"batcherFeeLovelace": 123,
"aggregatorFeeLovelace": 123,
"estimatedTxFeeLovelace": 123,
"executionModel": "<string>",
"estimatedSettlement": "<string>",
"appliedFeeRate": 123,
"discountApplied": true,
"verified": true,
"maximumInput": 123,
"requestedAmountIn": 123,
"partnerFeeLovelace": 123,
"partnerPayoutAddress": "<string>"
}
],
"bestRouteIndex": 123
}Exact-Out Swap Quote
Best route requiring the least total input to obtain a desired output amount. For token to ADA, minimumOutput is the gross pool floor (desired + batcher fee) and may exceed expectedOutput by design.
curl --request POST \
--url https://nexus.gerowallet.io/api/aggregator/reverse-quote \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"tokenIn": "<string>",
"tokenOut": "<string>",
"amountOut": "<string>",
"slippageTolerance": 123,
"excludeDexes": [
"<string>"
],
"senderAddress": "<string>",
"partnerPayoutAddress": "<string>",
"partnerFeeBps": 123,
"partnerApiKeyId": "<string>",
"partnerFeeFixedLovelace": 123,
"partnerMaxFeeLovelace": 123,
"routePolicy": {
"unrestricted": true
}
}
'import requests
url = "https://nexus.gerowallet.io/api/aggregator/reverse-quote"
payload = {
"tokenIn": "<string>",
"tokenOut": "<string>",
"amountOut": "<string>",
"slippageTolerance": 123,
"excludeDexes": ["<string>"],
"senderAddress": "<string>",
"partnerPayoutAddress": "<string>",
"partnerFeeBps": 123,
"partnerApiKeyId": "<string>",
"partnerFeeFixedLovelace": 123,
"partnerMaxFeeLovelace": 123,
"routePolicy": { "unrestricted": True }
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tokenIn: '<string>',
tokenOut: '<string>',
amountOut: '<string>',
slippageTolerance: 123,
excludeDexes: ['<string>'],
senderAddress: '<string>',
partnerPayoutAddress: '<string>',
partnerFeeBps: 123,
partnerApiKeyId: '<string>',
partnerFeeFixedLovelace: 123,
partnerMaxFeeLovelace: 123,
routePolicy: {unrestricted: true}
})
};
fetch('https://nexus.gerowallet.io/api/aggregator/reverse-quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://nexus.gerowallet.io/api/aggregator/reverse-quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tokenIn' => '<string>',
'tokenOut' => '<string>',
'amountOut' => '<string>',
'slippageTolerance' => 123,
'excludeDexes' => [
'<string>'
],
'senderAddress' => '<string>',
'partnerPayoutAddress' => '<string>',
'partnerFeeBps' => 123,
'partnerApiKeyId' => '<string>',
'partnerFeeFixedLovelace' => 123,
'partnerMaxFeeLovelace' => 123,
'routePolicy' => [
'unrestricted' => true
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://nexus.gerowallet.io/api/aggregator/reverse-quote"
payload := strings.NewReader("{\n \"tokenIn\": \"<string>\",\n \"tokenOut\": \"<string>\",\n \"amountOut\": \"<string>\",\n \"slippageTolerance\": 123,\n \"excludeDexes\": [\n \"<string>\"\n ],\n \"senderAddress\": \"<string>\",\n \"partnerPayoutAddress\": \"<string>\",\n \"partnerFeeBps\": 123,\n \"partnerApiKeyId\": \"<string>\",\n \"partnerFeeFixedLovelace\": 123,\n \"partnerMaxFeeLovelace\": 123,\n \"routePolicy\": {\n \"unrestricted\": true\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://nexus.gerowallet.io/api/aggregator/reverse-quote")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tokenIn\": \"<string>\",\n \"tokenOut\": \"<string>\",\n \"amountOut\": \"<string>\",\n \"slippageTolerance\": 123,\n \"excludeDexes\": [\n \"<string>\"\n ],\n \"senderAddress\": \"<string>\",\n \"partnerPayoutAddress\": \"<string>\",\n \"partnerFeeBps\": 123,\n \"partnerApiKeyId\": \"<string>\",\n \"partnerFeeFixedLovelace\": 123,\n \"partnerMaxFeeLovelace\": 123,\n \"routePolicy\": {\n \"unrestricted\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nexus.gerowallet.io/api/aggregator/reverse-quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tokenIn\": \"<string>\",\n \"tokenOut\": \"<string>\",\n \"amountOut\": \"<string>\",\n \"slippageTolerance\": 123,\n \"excludeDexes\": [\n \"<string>\"\n ],\n \"senderAddress\": \"<string>\",\n \"partnerPayoutAddress\": \"<string>\",\n \"partnerFeeBps\": 123,\n \"partnerApiKeyId\": \"<string>\",\n \"partnerFeeFixedLovelace\": 123,\n \"partnerMaxFeeLovelace\": 123,\n \"routePolicy\": {\n \"unrestricted\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"routes": [
{
"bestPoolId": "<string>",
"orderTxHash": "<string>",
"orderOutputIndex": 123,
"dex": "MINSWAP_V1",
"tokenIn": "<string>",
"tokenOut": "<string>",
"amountIn": 123,
"expectedOutput": 123,
"minimumOutput": 123,
"stopLossOutput": 123,
"priceImpact": 123,
"lpFeePercent": 123,
"batcherFeeLovelace": 123,
"aggregatorFeeLovelace": 123,
"estimatedTxFeeLovelace": 123,
"executionModel": "<string>",
"estimatedSettlement": "<string>",
"appliedFeeRate": 123,
"discountApplied": true,
"verified": true,
"maximumInput": 123,
"requestedAmountIn": 123,
"partnerFeeLovelace": 123,
"partnerPayoutAddress": "<string>"
}
],
"bestRouteIndex": 123
}Authorizations
API key (programmatic access — recommended)
Send your API key in the X-Api-Key header. Keys start with nxs_ and are
created in the dashboard (or via POST /api/keys with a session JWT).
Each key is scoped to one chain and one network (for example
CARDANO_MAINNET), fixed at creation time. It cannot query a different network
on the same chain, and it cannot query a different chain at all. A mismatched
network parameter returns 400 Network Mismatch. Create one key per chain
and network under the same account.
This is the credential most integrations should use.
Headers
Query Parameters
Target Cardano network for per-network market-data instances (e.g. preview). Omit, or pass mainnet, for mainnet.
Body
Show child attributes
Show child attributes