For AI agents: an LLM-friendly Markdown version of every page is available by appending .md to its URL or by sending an Accept: text/markdown request header. The full documentation index is at https://www.ankr.com/docs/llms.txt
Skip to main content

Midnight


Midnight API is available on Web3 API platform.

Midnight is a data protection-focused sidechain of Cardano, designed to support confidential smart contracts and zero-knowledge (ZK) technology. Developed by IOG (Input Output Global)—the same team behind Cardano—Midnight aims to bring privacy-preserving decentralized applications (dApps) to Web3.

Key Features:

  • Confidential Smart Contracts: Written in TypeScript, supporting zero-knowledge (ZK) privacy by default.
  • Zero-Knowledge Proofs (ZKPs): Enable validation without revealing sensitive data.
  • Privacy-First Architecture: Built for data protection and regulatory compliance (example: GDPR).
  • Selective Disclosure: Users can choose what information to share and with whom.
  • Cardano's Sidechain: Interoperable with Cardano, using ADA and its wrapped token DUST.
  • Custom PoS Consensus: A privacy-aware Proof-of-Stake mechanism tailored for Midnight.

Midnight is at a Testnet stage, providing a stable sandbox environment to develop commercially successful on-chain applications that benefit from the transparency of a blockchain while addressing granular data protection needs.

In order for your Web3 application to interact with Midnight — either by reading blockchain data or sending transactions to the network — it must connect to a Midnight node. Developers interact with the blockchain using the methods provided by the API.

Midnight supports JSON-RPC methods for API interaction. Responses come in JSON format.

JSON-RPC methods

System Info & Networking:

Accounts & Keys:

Grandpa Finality:

Offchain Storage:

Archive & Unstable Chain Access:

Sidechain & Midnight-specific:

Child State Access:

RPC Meta:

  • rpc_methods — Returns a list of all available RPC methods.

Chain & Block Data:

State & Storage:


System Info & Networking:

Methods

system, account, grandpa, offchain, archive, midnight, sidechain, childstate

childstate, rpc, chain, state