JSON-RPC API

Interact with the Nimiq node using JSON-RPC API endpoints

JSON-RPC API Reference

The Nimiq JSON-RPC API allows you to interact with a Nimiq node programmatically. You can use it to query blockchain data, manage wallets, control validators, and monitor network status.

Available Methods

  • Validator: Methods for managing validator operations and voting
  • Wallet: Methods for managing accounts and transactions
  • Consensus: Methods for interacting with consensus state
  • Blockchain: Methods for querying blockchain data
  • Policy: Methods for retrieving network policy information
  • Mempool: Methods for managing transaction pool
  • Network: Methods for network information and peer management
  • Zkp component: Methods for zero-knowledge proof operations

Using the API

All requests are made via HTTP POST to your node's RPC endpoint (default: http://127.0.0.1:8648). Each request must include:

  • Content-Type: application/json
  • A JSON-RPC 2.0 compliant body

See individual method pages for specific request examples.

On this page