curl --request GET \
--url https://nexus.gerowallet.io/api/midnight/{network}/status \
--header 'X-Api-Key: <api-key>'import requests
url = "https://nexus.gerowallet.io/api/midnight/{network}/status"
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}/status', 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}/status",
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}/status"
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}/status")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://nexus.gerowallet.io/api/midnight/{network}/status")
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{
"network": "midnight-mainnet",
"writesOpen": true,
"reason": "NETWORK_UPGRADING",
"message": "<string>",
"ledger": 9,
"protocolVersion": 2001100,
"tip": null,
"settled": true,
"minClientVersion": {
"extension": "3.2.0",
"ios": 412,
"android": 149
}
}Get network status
Whether this network’s write routes accept transactions from this caller now (writesOpen, with the same reason as their 501 MIDNIGHT_NETWORK_UPGRADING and a message to show while they are closed), the ledger Nexus builds transactions with, the last tip read from the indexer Nexus reads (height, ISO-8601 time and ageSeconds computed on the server, which keeps growing while that indexer is stopped or unreachable), settled (that tip is at most 30 seconds old, the same rule as the DUST reads) and the oldest wallet build per platform that may write (null: no minimum: extension a version, iOS and Android build numbers). A read: it answers 200 while the write routes answer 501. A value Nexus has not read yet is null. The tip is re-read when older than 5 seconds (a poll after an idle gap waits for the fresh one, at most 3 seconds) and the ledger every 30 seconds.
curl --request GET \
--url https://nexus.gerowallet.io/api/midnight/{network}/status \
--header 'X-Api-Key: <api-key>'import requests
url = "https://nexus.gerowallet.io/api/midnight/{network}/status"
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}/status', 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}/status",
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}/status"
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}/status")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://nexus.gerowallet.io/api/midnight/{network}/status")
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{
"network": "midnight-mainnet",
"writesOpen": true,
"reason": "NETWORK_UPGRADING",
"message": "<string>",
"ledger": 9,
"protocolVersion": 2001100,
"tip": null,
"settled": true,
"minClientVersion": {
"extension": "3.2.0",
"ios": 412,
"android": 149
}
}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.
Response
OK
Midnight network status for wallets: write gate, ledger, indexer tip and minimum client builds.