Developers

Build on XityChain

Plain HTTPS endpoints returning JSON. No SDK required, every endpoint is a curl call. The full reference is below.

SDKs

Use a library, or just curl

curl / HTTP
Available
Every endpoint is a plain HTTPS call returning JSON. No SDK is required.
Public endpoints

A sample of the API

Every public endpoint is an HTTPS call. No SDK required. The full reference is on the API page.

GET/infoChain metadata, height, last hash, chain id, supply, validator count.
GET/healthOperational health check.
GET/blocks/latestThe most recently committed block.
GET/blocks/{height}A specific block by height.
GET/blocks/hash/{block_hash}A specific block by hash.
GET/accounts/{address}/balancePublic balance for an address.
i
Public role by default. Public endpoints return only what a member of the public may see, balances, public transactions, chain state. Identity names, public keys, and address-to-identity linkages are never returned without an authorised service key.

Start with the public endpoints

The public role returns balances, blocks, and chain state over HTTPS. Build and test against it. For anything beyond the public role, contact us about a service key.