Get deployment posture
Which posture the gateway runs (prod or testnet) and the build it serves; drives the testnet banner.
GET
https://testnet.hardbasis.com/deploymentbash
curl -fsS "$HB/deployment"python
import os
import requests
HB = os.environ.get("HB", "https://testnet.hardbasis.com")
resp = requests.get(
f"{HB}/deployment",
)
resp.raise_for_status()
print(resp.json())ts
const HB = process.env.HB ?? "https://testnet.hardbasis.com";
const res = await fetch(`${HB}/deployment`, {
method: "GET",
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());json
{
"deployment": "prod",
"buildSha": "string"
}