Twilight Protocol
Welcome to the Twilight Protocol developer documentation. Twilight is a privacy-preserving Bitcoin DeFi protocol built on the Nyks Cosmos SDK chain.
Which API Should I Use?
| Your goal | Use | Link |
|---|---|---|
| Query on-chain state (accounts, balances, staking, gov) | Nyks Chain API | Chain API |
| Submit or simulate transactions, broadcast txs | Nyks Chain API | Chain API |
| Privacy layer: UTXOs, shielded transfers, burn/mint | zkOS RPC | zkOS RPC |
| Indexed data: blocks, tx history, search, analytics | Indexer API | Indexer API |
| Browse everything in one page | Full Reference | Full Reference |
Section Guides
Nyks Chain API →
REST endpoints served by the LCD (Light Client Daemon). Query accounts, balances, staking state, governance proposals, IBC channels, and Twilight-specific modules.
Base URL: https://lcd.twilight.org
zkOS RPC →
Zero-knowledge privacy layer. Manage UTXOs, submit shielded transfers, and interact with the proof system.
Base URL: https://nykschain.twilight.rest/zkos/
Indexer API →
Read-only REST + WebSocket API for indexed chain data. Search blocks, transactions, accounts, validators, and BTC bridge operations.
Base URL: https://indexer.twilight.org/api
Full Reference →
All sections combined in a single scrollable page with unified sidebar and search.
See Also
- Client SDK (Rust): github.com/AhmadAshraf2/zkos-client-wallet