RPC guide
Mazze exposes JSON-RPC over HTTP, WebSocket, and TCP. There are two RPC surfaces:
Mazze core (native) APIs.
EVM (Ethereum-compatible) APIs.
The exact set of enabled methods depends on your config.
Endpoints and configuration
All RPC ports and API allowlists live in run/hydra.toml.
Common fields:
jsonrpc_http_port,jsonrpc_ws_port,jsonrpc_tcp_port: Mazze core APIs.jsonrpc_local_http_port,jsonrpc_local_ws_port,jsonrpc_local_tcp_port: local-only Mazze endpoints (recommended for debug/admin calls).jsonrpc_http_eth_port,jsonrpc_ws_eth_port: EVM APIs.public_rpc_apis: core API allowlist (all,safe,mazze,debug,trace,txpool,test,pubsub, ...).public_evm_rpc_apis: EVM API allowlist (evm,eth,ethpubsub,ethdebug).
HTTP call examples
Mazze core status:
curl -s http://127.0.0.1:12539 \
-H 'content-type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"mazze_getStatus","params":[]}'The response keeps the legacy top-level fields and also groups the main values into progress, randomx, snapshots and era objects. For dashboards, prefer:
progress.bestEpochNumberprogress.bestBlockNumberprogress.latestStateEpochNumberrandomx.epochNumbersnapshots.latestSnapshotEpochNumbersnapshots.availableSnapshotCountera.number
mazze_getRandomXEpochInfo returns:
epochNumber: the RandomX epoch indexselectedEpochNumber: the Mazze epoch used to resolve the querystartEpochNumber/endEpochNumber/nextTransitionEpochNumber
The older startBlockHeight / endBlockHeight / nextTransitionBlockHeight fields remain as legacy aliases.
Mazze call (latest_state), here reading the legacy pool's root:
EVM (eSpace) block number:
Shielded space status (active stays false until the activation height):
See Shielded RPC for the full shielded API.
WebSocket pubsub example
Default ports
12539
Local HTTP, native and shielded APIs (used by the CLI)
52537
HTTP, native APIs
52535
WebSocket, native APIs
52536
TCP, native APIs
58545
HTTP, eSpace
58546
WebSocket, eSpace
These are the values in run/hydra.toml; your deployment may differ.
Exposing RPC safely
public_rpc_apisdefaults to"safe"(mazze,pubsub,txpool,shielded). Never use"all"on a public bind address.jsonrpc_corsno longer defaults to"all". List the origins you trust.Server limits bound what one client can cost you. Defaults: 1,000 requests per batch, 25 MiB responses, 1,000 HTTP and 100 WebSocket connections, 1,024 subscriptions per connection, 5 MiB per TCP request line. Each one is a
jsonrpc_*option documented inrun/hydra.toml. See RPC and APIs.
Supply and burn calls
mazze_getSupplyInfo: returns chain supply aggregates from node state.mazze_getFeeBurnt: returns cumulative MIP-1559 burned amount.
Interpretation note:
Theoretical tokenomics maximum and live bridge liquidity are separate from direct RPC state values.
For current tokenomics model and bridge constraints, see:
../tokenomics/overview.mdand../tokenomics/bridge-liquidity.md.
Full RPC method list
Mazze core (native) APIs
Mazze filters
Mazze txpool
Mazze debug and admin
Mazze trace
Mazze test/dev
Shielded APIs
Full nodes and archive nodes only. See Shielded RPC.
Mazze pubsub (WebSocket)
Methods:
Subscription kinds: newHeads, logs, newPendingTransactions, syncing, epochs.
EVM (Ethereum-compatible) APIs
Last updated