79trust / 100

Sovereign

by SovereignRisk in Security & trust

x402 APIPassing, checked 3 h ago

Per-country sovereign economic / default-risk score (?country=<name or ISO3>)

GET https://sovereign.lonestaroracle.xyz/sovereign

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
398 ms typical, 437 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://sovereign.lonestaroracle.xyz/sovereign?country=Argentina"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fsovereign.lonestaroracle.xyz%2Fsovereign
const res = await pay("https://sovereign.lonestaroracle.xyz/sovereign?country=Argentina");
console.log(await res.json());

Example input

{
  "country": "Argentina"
}

Example output

{
  "country": "Argentina",
  "data_year": "2025",
  "drivers": [
    "inflation 41.9% (runaway)",
    "govt debt 80.3% GDP"
  ],
  "interpretation": "Multiple stress signals; sovereign credit under real strain.",
  "iso3": "ARG",
  "max_score": 20,
  "metrics": {
    "current_account_gdp_pct": 1.2,
    "fiscal_balance_gdp_pct": -0.9,
    "gdp_growth_pct": 4.5,
    "govt_debt_gdp_pct": 80.3,
    "inflation_pct": 41.9,
    "reserves_months_import": 4.1,
    "reserves_year": "2024"
  },
  "risk_score": 7,
  "source": "IMF DataMapper (WEO) + World Bank",
  "sovereign_risk": "ELEVATED"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402368 ms$0.05
6 h agoPassed402370 ms$0.05
10 h agoPassed402398 ms$0.05
14 h agoPassed402392 ms$0.05
17 h agoPassed402401 ms$0.05
22 h agoPassed402519 ms$0.05
25 h agoPassed402393 ms$0.05
28 h agoPassed402437 ms$0.05
33 h agoPassed402398 ms$0.05