XAI Documentation

Developer resources for XAI Blockchain

๐Ÿš€ Quick Start

Get started with the XAI Testnet in minutes.

1. Get Testnet Tokens

Visit the faucet to receive free XAI testnet tokens.

Go to Faucet โ†’

2. Explore the Chain

Browse blocks, transactions, and addresses.

Open Explorer โ†’

3. Connect via RPC

Integrate with the blockchain using JSON-RPC.

View API Docs โ†’

๐Ÿ”Œ API Reference

The XAI RPC API provides programmatic access to the blockchain.

# RPC Endpoint
https://testnet-rpc.xaiblockchain.com

# Example: Get node info
curl https://testnet-rpc.xaiblockchain.com/

# Example: Get balance
curl https://testnet-rpc.xaiblockchain.com/balance/XAI...

For interactive API documentation, visit the Swagger UI.

๐Ÿ“ก Key Endpoints

  • GET / Node info and available endpoints
  • GET /stats Blockchain statistics
  • GET /blocks List blocks (paginated)
  • GET /blocks/{index} Get specific block
  • GET /balance/{address} Get address balance
  • GET /history/{address} Transaction history
  • POST /send Submit transaction
  • POST /faucet/claim Claim testnet tokens

๐Ÿ“ฆ Resources

Genesis File

Download the genesis configuration for running your own node.

Download โ†’

Seed Nodes

List of seed nodes for peer discovery.

View Seeds โ†’

Chain Snapshots

Download chain data for fast sync.

Browse Snapshots โ†’