API reference

Plain HTTP and JSON, no key needed. Amounts are strings in the smallest unit with their decimals next to them. Times are milliseconds since 1970. Press Try it to call the live API.

Base URLhttps://xeniaprotocol.io/v1

Network

Height, speed, fees and who is validating.

GET/v1/status
Network status
Current height, final height, median paid and final times, fees per lane, epoch.
GET/v1/validators
Validators
Every registered validator with stake, region, ticket and uptime.
GET/v1/validators/{id}
One validator
A validator by xval1 id or by name, with its recent blocks.
idxval1… or a name such as halcyon
GET/v1/mining
Mining pool
This epoch's pool, how many miners share it and the 1% cap.
GET/v1/health
Service health
Up, slow or down for each public service, with 90 days of history.

Blocks

Blocks are 20 ms apart. A block is final once two thirds of stake has signed it.

GET/v1/blocks
Latest blocks
Newest first. Page with before.
limit1 to 100, default 20
beforea height
GET/v1/blocks/{id}
One block
By height or xbk1 id, with its payments and votes.
idheight or xbk1…

Payments

Every payment has an xtx1 id and a short receipt number, block.position.

GET/v1/txs
Recent payments
Newest first. Filter by lane or block.
limit1 to 100
lanepay, apps or priority
blocka height
beforea receipt number
GET/v1/tx/{id}
One payment
By xtx1 id or receipt number. Includes its journey from signed to final and what changed.
idxtx1… or 4182337.41

Accounts and assets

Accounts have an xen1 address and can have a name.

GET/v1/accounts/{id}
One account
Balances, limits, staking and recent activity.
idxen1… or a name such as maya.xenia
filterin, out or agents
GET/v1/accounts
Top accounts
Largest tXNIA holders.
limit1 to 100
GET/v1/assets
Assets
Every asset on the chain with supply, holders and activity.
GET/v1/agents
Agents
AI agents with their owners, limits and spending today.

Stats and search

History for charts, and one search box for everything.

GET/v1/stats/history
History
About 120 points for charts: payments per second, finality, fees, private share.
window10m, 1h or 24h
GET/v1/lanes/fees
Fee history
Fee per lane over time.
from_msstart time
to_msend time
GET/v1/search
Search
Names, accounts, payments, receipts, blocks and validators.
qanything

Faucet

Free testnet coins, once a day per account.

POST/v1/faucet
Get testnet coins
Sends 100 tXNIA or 250 tUSD. Returns the payment id.
{ "to": "maya.xenia", "asset": "XNIA" }

Live stream

One WebSocket for everything that happens.

WS/v1/live
Live updates
Messages of type block, votes, tx and stats. Send {"subscribe":["tx"]} to pick types.
everyonly every Nth block, 1 to 1000