VIZ.cx

REST API Reference

Endpoints served by api.viz.cx. All responses are JSON. No authentication required.

Endpoints

GET/Home
GET/auth/nonce
GET/blocks/latestLatest
GET/blocks/{id}Block
GET/profile/{user}Profile
GET/profile/avatar/{user}Avatar
GET/richlistRichlist
GET/webhooks/List Webhooks
GET/webhooks/{webhook_id}

WebSocket — live operation feed

Connect to wss://api.viz.cx/ws/ops to receive a message for every operation applied to the chain within ~5 blocks of the tip. Each message is a JSON-encoded operation record.

const ws = new WebSocket('wss://api.viz.cx/ws/ops')
ws.onmessage = (event) => {
  const op = JSON.parse(event.data)
  console.log(op.op[0], op) // e.g. "award", { trx_id, timestamp, op }
}