ZENANET DocsBeta

HTTP API Reference

The ZENANET HTTP API provides REST-style access to blockchain data for explorers, analytics tools, dashboards, and backend integrations.

Use this API when you need block data, transaction information, or chain-level metadata without using JSON-RPC.


Base URLs

Mainnet

https://api.zenanet.io

Testnet

https://api-testnet.zenanet.io

Endpoints

Below are commonly used REST endpoints for retrieving blockchain data.


Latest Block

GET /blocks/latest

Returns the most recent block on the network.

Example Response (simplified):

{
  "block": {
    "height": "1234567",
    "time": "2025-01-01T00:00:00Z"
  }
}

Block by Height

GET /blocks/{height}

Retrieves block metadata and transaction hashes for a specific height.

Example:

GET /blocks/100

Transaction by Hash

GET /txs/{hash}

Returns full transaction details, logs, and execution result.

Example:

GET /txs/0xabc123...

Node Info

GET /node_info

Provides information about the connected node, including version and protocol identifiers.


Chain Status

GET /status

Returns chain syncing information, latest block height, and validator info.


Notes

  • The HTTP API is read-only and complements the EVM JSON-RPC interface.
  • For contract calls, balance checks, or transaction submission, use JSON-RPC instead.
  • The REST API is useful for explorers, dashboards, and analytics services.

Summary

The ZENANET HTTP API offers a simple REST interface for retrieving blockchain data without directly interacting with the RPC layer.
Use this reference for explorers, analytics platforms, monitoring tools, and any system requiring easy blockchain data access.