ONET API

📋 Table of Contents

Overview

The ONET API provides comprehensive network management services for the OASIS ecosystem. It handles network operations, node management, routing, and analytics with support for multiple protocols, real-time updates, and advanced security features.

Network Management

Get Network Status

GET /api/onet/network/status
Authorization: Bearer YOUR_TOKEN

Response:

Get Network Nodes

Query Parameters:

  • limit (int, optional): Number of results (default: 50)

  • offset (int, optional): Number to skip (default: 0)

  • status (string, optional): Filter by status (Active, Inactive, Bootstrap, Validator)

  • type (string, optional): Filter by type (Full, Light, Archive)

  • sortBy (string, optional): Sort field (name, latency, uptime, lastActivity)

  • sortOrder (string, optional): Sort order (asc/desc, default: desc)

Response:

Connect to Network

Request Body:

Response:

Disconnect from Network

Response:

Get Network Stats

Response:

Start Network

Response:

Stop Network

Response:

Get Network Topology

Response:

Broadcast Message

Request Body:

Response:

Node Operations

Get Node Status

Parameters:

  • nodeId (string): Node UUID

Response:

Get Node Performance

Parameters:

  • nodeId (string): Node UUID

Response:

Get Node Health

Parameters:

  • nodeId (string): Node UUID

Response:

Network Analytics

Get Network Analytics

Query Parameters:

  • timeframe (string, optional): Timeframe (hour, day, week, month)

  • includeDetails (boolean, optional): Include detailed analytics

Response:

Get Network Performance

Response:

Get Network Health

Response:

Network Security

Get Network Security

Response:

Update Network Security

Request Body:

Error Responses

Network Not Found

Node Not Found

Connection Failed

Invalid Message

Permission Denied


← Previous: NFT API | Next: Avatar API

Last updated