Menu

Documentation

Complete technical documentation for Nethxeum.

RPC API Reference

The Nethxeum daemon exposes a JSON-RPC API on port 18331. Below are commonly used endpoints:

# Get blockchain height
curl -X POST http://127.0.0.1:18331/json_rpc \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":"0","method":"get_block_count"}'

# Get node info
curl -X POST http://127.0.0.1:18331/json_rpc \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":"0","method":"get_info"}'

# Get block header by height
curl -X POST http://127.0.0.1:18331/json_rpc \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":"0","method":"get_block_header_by_height","params":{"height":100}}'

Network Configuration

Mainnet P2P
18333
Mainnet RPC
18331
Mainnet ZMQ
18332
Testnet P2P
28333
Testnet RPC
28331
Stagenet P2P
38333