curl --request GET \
--url https://nexus.gerowallet.io/api/midnight/{network}/dust/destination \
--header 'X-Api-Key: <api-key>'import requests
url = "https://nexus.gerowallet.io/api/midnight/{network}/dust/destination"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://nexus.gerowallet.io/api/midnight/{network}/dust/destination', 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/midnight/{network}/dust/destination",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://nexus.gerowallet.io/api/midnight/{network}/dust/destination"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://nexus.gerowallet.io/api/midnight/{network}/dust/destination")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://nexus.gerowallet.io/api/midnight/{network}/dust/destination")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"dust_address": "<string>",
"registered": true,
"night_balance": "<string>",
"generation_rate": "<string>",
"max_capacity": "<string>",
"current_capacity": "<string>",
"stakes": [
{
"changeAddress": "<string>",
"amount": "100000000",
"slippageToleranceBps": "50",
"utxos": [
"<string>"
]
}
],
"based_on_block_height": 123,
"based_on_block_time": "<string>",
"settled": true
}Get DUST status for a DUST address
DUST registration status and generation totals for one DUST address (bech32m, mn_dust…). The totals are per destination and counted once, however many stakes are registered to it: the indexer reports the same destination total against each of them, so a client that adds per-stake figures over-counts. Lists every stake registered to the address with its state (active, relaying, duplicated), including stakes registered from Cardano wallets the caller has never imported. An invalid address, or one for another network, is a 400. based_on_block_height and based_on_block_time (ISO-8601 UTC) are the last tip read from the Midnight indexer the figures come from, null until one has been read. settled is true when that block is at most 30 seconds old and, on an unregistered answer, the Cardano registration read that finds the address’s stakes (cached for up to 20 seconds) is at most 30 seconds old too. While settled is false, treat the figures as an estimate from that block, and a zero or unregistered answer as possibly stale. settled does not cover Nexus’s Cardano provider falling behind the Cardano chain.
curl --request GET \
--url https://nexus.gerowallet.io/api/midnight/{network}/dust/destination \
--header 'X-Api-Key: <api-key>'import requests
url = "https://nexus.gerowallet.io/api/midnight/{network}/dust/destination"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://nexus.gerowallet.io/api/midnight/{network}/dust/destination', 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/midnight/{network}/dust/destination",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://nexus.gerowallet.io/api/midnight/{network}/dust/destination"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://nexus.gerowallet.io/api/midnight/{network}/dust/destination")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://nexus.gerowallet.io/api/midnight/{network}/dust/destination")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"dust_address": "<string>",
"registered": true,
"night_balance": "<string>",
"generation_rate": "<string>",
"max_capacity": "<string>",
"current_capacity": "<string>",
"stakes": [
{
"changeAddress": "<string>",
"amount": "100000000",
"slippageToleranceBps": "50",
"utxos": [
"<string>"
]
}
],
"based_on_block_height": 123,
"based_on_block_time": "<string>",
"settled": true
}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.