Developers / API
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 URL
https://xeniaprotocol.io/v1Network
Height, speed, fees and who is validating.
GET
/v1/statusNetwork status
Current height, final height, median paid and final times, fees per lane, epoch.
GET
/v1/validatorsValidators
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 halcyonGET
/v1/miningMining pool
This epoch's pool, how many miners share it and the 1% cap.
GET
/v1/healthService 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/blocksLatest blocks
Newest first. Page with before.
limit1 to 100, default 20beforea heightGET
/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/txsRecent payments
Newest first. Filter by lane or block.
limit1 to 100lanepay, apps or priorityblocka heightbeforea receipt numberGET
/v1/tx/{id}One payment
By xtx1 id or receipt number. Includes its journey from signed to final and what changed.
idxtx1… or 4182337.41Accounts 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.xeniafilterin, out or agentsGET
/v1/accountsTop accounts
Largest tXNIA holders.
limit1 to 100GET
/v1/assetsAssets
Every asset on the chain with supply, holders and activity.
GET
/v1/agentsAgents
AI agents with their owners, limits and spending today.
Stats and search
History for charts, and one search box for everything.
GET
/v1/stats/historyHistory
About 120 points for charts: payments per second, finality, fees, private share.
window10m, 1h or 24hGET
/v1/lanes/feesFee history
Fee per lane over time.
from_msstart timeto_msend timeGET
/v1/searchSearch
Names, accounts, payments, receipts, blocks and validators.
qanythingFaucet
Free testnet coins, once a day per account.
POST
/v1/faucetGet 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/liveLive updates
Messages of type block, votes, tx and stats. Send {"subscribe":["tx"]} to pick types.
everyonly every Nth block, 1 to 1000