Quai Vision

Addresses

Validate and explore Quai/Qi address structures

Address Validator
Check if an address is valid Quai or Qi and view its shard information
Generate sample:
Address Structure
How Quai Network addresses are organized
Sharded Address Format

Quai Network uses a hierarchical sharding system with 3 regions, each containing 3 zones, for a total of 9 shards. The first byte of an address encodes its ledger type (Quai/Qi), region, and zone information.

Quai Addresses

Binary prefix: 00xxxxxx

Hex range: 0x00 - 0x1F

Qi Addresses

Binary prefix: 01xxxxxx

Hex range: 0x20 - 0x3F

SDK Code Example
How to validate addresses using the Quais SDK
import { isQuaiAddress, isQiAddress } from 'quais';

// Validate address type
const address = '0x00123...789';

if (isQuaiAddress(address)) {
  console.log('Valid Quai address');
} else if (isQiAddress(address)) {
  console.log('Valid Qi address');
}