# AIST Chain — Full Technical Reference for AI Agents & Developers (llms-full.txt) ## 1. Network Parameters & Dual-Track Consensus - **Global Sovereign Mainnet**: ChainID `4157` (`0x103d`), Currency `AIST` (18 decimals), Hash `Rust Keccak-256`, Consensus `HotStuff-4D BFT (<0.4s finality)`, Live Height `#715`. - **Compliant Consortium Mainnet**: ChainID `14157` (`0x374d`), Unit `Gas Credit`, Hash `Rust Native SM3`, Enterprise Paymaster + Freeze Gate. - **RPC URL**: `https://aistchain.org/api/v1/rpc?network=global` - **MCP Endpoint**: `https://aistchain.org/api/v1/mcp` - **Explorer**: `https://aistchain.org/aist/scan` ## 2. Three-Layer Full-Stack Architecture 1. **Layer 1 — AIST 4D State Kernel**: Decomposes state into orthogonal Sparse Merkle Trees (`F` Epistemic Facts, `R` Property/Assets, `C` Commitments/Contracts, `M` Mandates/Permissions). 2. **Layer 2 — 0x0408 Orbit Sovereign Subnets (RaaS)**: High-throughput 200ms industry rollups (85,000 TPS) anchoring 4D state roots back to AIST L1 with 1-click Docker Compose export. 3. **Data & Memory Layer — 0x0401 Bitemporal F-Tree & MemVault**: Verifiable SHA-256 agent memory snapshots and dual-time (`t_valid`, `t_tx`) notarized proofs (`VIPROOF`). ## 3. Gasless Paymaster & Cross-Chain Bridge Economics - **On-Chain Gasless (`0x040A Paymaster`)**: Sponsored `$0.00` gas for whitelisted onboarding, swaps, vaults, and bounded AI agent operations. Sustained organically by 0.30% DEX fees, 0.01%-0.04% CLOB fees, and 0.50% Launchpad bonding-curve compute inflows. - **Cross-Chain Deposits (`BNB Smart Chain BEP-20` / `Ethereum` -> `AIST`)**: `$0.00` protocol bridge fee (user only pays standard source-chain gas; AIST L1 mint incurs zero external cash cost). - **Cross-Chain Withdrawals (`AIST` -> `BNB Chain` / `Ethereum`)**: Fixed `1.0 USDT` (`BNB_CHAIN` / `ARBITRUM_ONE`) or `2.5 USDT` (`ETH_MAINNET`) external relayer gas fee to 100% cover destination L1 gas with zero treasury subsidy loss. ## 4. Ten Native System Precompiles (`0x0401` - `0x040A`) - `0x0401 EpistemicNotary` (F-Tree): Bitemporal fact attestation & revocation. - `0x0402 DeterministicVM` (C-Tree): Proof-gated contract execution with zero-residue revert. - `0x0403 MultiAssetHub` (R-Tree): Native coin, ERC-20, and compliant RWA-3643 ledger. - `0x0404 HybridDexClob` (R/C): Constant-product AMM + Rust 1.96 STP-CLOB orderbook. - `0x0405 MilestoneEscrow` (C-Tree): Conditional A2A task bounty escrow and settlement. - `0x0406 PedersenZKSolvency` (F/R): Zero-knowledge homomorphic reserve proof verifier. - `0x0407 FormalXRayAuditor` (C/M): Static analyzer blocking unguarded fund outflows. - `0x0408 SubnetRollupAnchor` (F/R): L2 Rollup batch state-root checkpoint registry. - `0x0409 AgentFirewallOS` (M-Tree): Per-tx cap, epoch budget, contract allowlist, drawdown circuit breaker, and kill-switch. - `0x040A GasPaymasterPool` (R/M): ERC-4337 gasless sponsorship and stablecoin gas settlement. ## 5. Quickstart JSON-RPC & MCP Calls ```bash # List all 16 native MCP tools for AI agents curl -s -X POST https://aistchain.org/api/v1/mcp -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' # Quote a 2-hop Smart Swap route via MCP curl -s -X POST https://aistchain.org/api/v1/mcp -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"aist_smart_swap_quote","arguments":{"sym_in":"USDT","sym_out":"wETH","amount_in":1000}}}' ```