Core API Reference
The core module provides the primary interface for communicating with the Midnight network, configuration management, and health checking.
Noxipher Client
noxipher.core.client.NoxipherClient
Main entry point for the Noxipher SDK. Coordinates the Indexer, Node, and Proof Server clients.
Source code in src/noxipher/core/client.py
check_health()
async
Checks the health of all network components.
Source code in src/noxipher/core/client.py
connect()
async
Establishes connections to all Midnight network components.
Source code in src/noxipher/core/client.py
disconnect()
async
Closes all network connections gracefully.
Source code in src/noxipher/core/client.py
get_balance(wallet)
async
send_unshielded_transaction(wallet, recipient_address, amount)
async
Sends an unshielded NIGHT transfer transaction.
Source code in src/noxipher/core/client.py
Configuration
noxipher.core.config
Health & Status
noxipher.core.health
Exceptions
noxipher.core.exceptions
AddressError
Bases: NoxipherError
Raised when an address format is invalid.
ConfigurationError
Bases: NoxipherError
Raised when configuration is invalid or missing.
ContractError
Bases: NoxipherError
Raised when a smart contract interaction fails.
CryptographyError
Bases: NoxipherError
Raised during cryptographic failures (e.g. invalid keys).
IndexerError
Bases: NoxipherError
Raised when the Indexer GraphQL API returns an error.
NetworkError
Bases: NoxipherError
Raised when network requests fail.
NodeError
Bases: NoxipherError
Raised when the Midnight Node returns an error.
NoxipherError
ProofServerError
Bases: NoxipherError
Raised when the ZK Proof Server returns an error.
TransactionError
Bases: NoxipherError
Raised during transaction construction or submission failures.
WalletError
Bases: NoxipherError
Raised for wallet-related issues (e.g. insufficient funds, locked wallet).