API Specification of the Relay
The OpenAPI specification of the Relay
Resources
API List
Task Related APIs
Network Stats Related APIs
Other APIs
Last updated
The OpenAPI specification of the Relay
Last updated
GET /v1/network HTTP/1.1
Accept: */*
{
"data": {
"tflops": 1
},
"message": "text"
}GET /v1/network/nodes/data?total=1 HTTP/1.1
Accept: */*
{
"data": [
{
"address": "text",
"balance": "text",
"card_model": "text",
"prob_weight": 1,
"qos_score": 1,
"staking": "text",
"staking_score": 1,
"v_ram": 1
}
],
"message": "text"
}GET /v1/network/nodes/number HTTP/1.1
Accept: */*
{
"data": {
"active_nodes": 1,
"all_nodes": 1,
"busy_nodes": 1
},
"message": "text"
}GET /v1/network/tasks/number HTTP/1.1
Accept: */*
{
"data": {
"queued_tasks": 1,
"running_tasks": 1,
"total_tasks": 1
},
"message": "text"
}GET /v1/now HTTP/1.1
Accept: */*
{
"data": {
"now": 1
},
"message": "text"
}