RPC Reference

GET /api/status

Network status, height, validators, constitutional state.

cURL

curl https://explorer.amungold.com/api/status

JavaScript

fetch('/api/status')
  .then(r => r.json())
  .then(d => console.log(d))

Python

import requests
r = requests.get(
  'https://explorer.amungold.com/api/status')
print(r.json())

GET /api/block/:height

Full block details with constitutional evidence.

cURL

curl https://explorer.amungold.com/api/block/1

JavaScript

const h = 1;
fetch(`/api/block/${h}`)
  .then(r => r.json())
  .then(d => console.log(d))

Rust

let url = format!(
  "https://explorer.amungold.com/api/block/{}", 1);
let resp = reqwest::get(&url).await?;
let data = resp.json().await?;

GET /api/validators

Active validators with voting power.

curl https://explorer.amungold.com/api/validators

GET /api/constitution/:height

Constitutional verdict and evidence for a specific block.

curl https://explorer.amungold.com/api/constitution/1