RPC and APIs
Mazze exposes a JSON-RPC interface over HTTP, WebSocket, and TCP. Handlers are implemented in the client crate and call into consensus and storage.
Namespaces
mazze_*- core chain queries, blocks, receipts, balances, logs, and DAG tips.debug_*- execution tracing and diagnostics.trace_*- transaction and block traces.txpool_*- pending pool status and contents.
Query path
Most RPCs resolve through:
ConsensusGraphfor chain/epoch context.BlockDataManagerfor headers, receipts, and rewards.State DB for balances, storage, and contract code.
Configuration
RPC ports and limits are configured in client/src/configuration.rs, including HTTP/WS/TCP ports, thread counts, and max payload sizes.
Key source files
crates/client/src/rpc/impls/mazze/mazze_handler.rscrates/client/src/rpc/impls/mazze/common.rscrates/client/src/rpc/traits/mazze_space/mazze.rscrates/client/src/configuration.rs
Last updated
Was this helpful?