Blockchain API Reference
All developer APIs, SDKs, and tools in one place. Pick what you need:
Chain APIs
| Chain | What it is | Reference |
|---|---|---|
| Main Chain (ELA) | Custom JSON-RPC. UTXO queries, block data, BPoS validator lists, transaction broadcast. Not EVM. | JSON-RPC → |
| Main Chain REST | HTTP endpoints for block, transaction, asset, and UTXO queries without JSON-RPC framing. | REST API → |
| Main Chain CLI | ela-cli command-line tool for wallet management, transaction building, and node queries. | CLI Reference → |
| Arbiter | Cross-chain JSON-RPC on the Arbiter process (typically with a supernode). Heights, side mining, finished deposits/withdraws. | Arbiter API → |
| ESC — Smart Chain | Full EVM JSON-RPC. Use ethers.js, web3.js, Hardhat, Foundry — any Ethereum tooling works directly. | ESC API → |
| EID — Identity Chain | EVM-compatible. Standard eth_* methods plus DID publishing and resolution via precompiled contracts. | EID API → |
SDKs
| SDK | Purpose | Languages | Reference |
|---|---|---|---|
| DID SDK | Create, resolve, and verify W3C decentralized identifiers | JS / Java / C++ / Swift | SDK Reference → |
| Hive SDK | Encrypted personal data vaults authenticated via DID | JS / Java / Swift | SDK Reference → |
| Carrier SDK | Peer-to-peer networking and service discovery | Java / C++ | SDK Reference → |
| Connectivity SDK | Connect your dApp to Essentials wallet — DID login, transaction signing | TypeScript | Connectivity SDK → |
| Wallet SDK | Main chain key derivation (NIST P-256), transaction building, UTXO management | TypeScript | SDK Reference → |
Network & Infrastructure
| Resource | Description | Link |
|---|---|---|
| Endpoints & Providers | All RPC URLs, WebSocket endpoints, block explorers, and testnet faucets | Network Endpoints → |
| Precompiled Contracts | ESC and EID built-in contracts for DID, staking, and cross-chain operations | Precompiled Contracts → |
| Hive HTTP API | REST endpoints for vault operations (database, files, scripting, backup) without SDK abstractions | Hive HTTP API ↗ |
Quick Connection Reference
Copy-paste ready. For the full provider list including WebSocket and alternates, see Network Endpoints.
| Chain | Mainnet RPC | Testnet RPC | Chain ID |
|---|---|---|---|
| Main Chain (ELA) | https://api.elastos.io/ela | https://api-testnet.elastos.io/ela | — |
| ESC | https://api.elastos.io/esc | https://api-testnet.elastos.io/esc | 20 / 21 |
| EID | https://api.elastos.io/eid | https://api-testnet.elastos.io/eid | 22 / 23 |
Block explorers:
| Chain | Mainnet | Testnet |
|---|---|---|
| Main Chain | blockchain.elastos.io | blockchain-testnet.elastos.io |
| ESC | esc.elastos.io | esc-testnet.elastos.io |
| EID | eid.elastos.io | eid-testnet.elastos.io |
Testnet faucets: ESC Faucet · EID Faucet