Skip to main content

API reference

Comprehensive API documentation for building decentralized applications on the Midnight blockchain. These APIs provide the foundational building blocks for smart contract interaction, wallet integration, blockchain queries, and transaction management.

Core APIs

Compact Runtime

Runtime primitives for Compact smart contracts.

View API →

Midnight.js

TypeScript SDK for building decentralized applications.

View API →

DApp Connector

Standard interface for connecting DApps to Midnight wallets.

View API →

Midnight Indexer

GraphQL API for querying blockchain data.

View API →

Blockchain interactions

Ledger

TypeScript bindings for transaction assembly and ledger operations.

View API →

Onchain Runtime

Low-level interface to Midnight's onchain runtime.

View API →

ZSwap

Privacy pool implementation for shielded transactions.

View API →

Testing and development

Testkit.js

Comprehensive testing solution for Midnight applications.

View API →

Version compatibility

For the latest version information and compatibility matrix, see the release notes and support matrix.