Skip to main content
GET
/
v1
/
io-blocks
/
blocks
/
{block_id}
/
workers
/
{device_id}
Device Details for a Block
curl --request GET \
  --url https://api.io.solutions/v1/io-blocks/blocks/{block_id}/workers/{device_id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.io.solutions/v1/io-blocks/blocks/{block_id}/workers/{device_id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.io.solutions/v1/io-blocks/blocks/{block_id}/workers/{device_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.io.solutions/v1/io-blocks/blocks/{block_id}/workers/{device_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.io.solutions/v1/io-blocks/blocks/{block_id}/workers/{device_id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.io.solutions/v1/io-blocks/blocks/{block_id}/workers/{device_id}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.io.solutions/v1/io-blocks/blocks/{block_id}/workers/{device_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "status": "Success",
  "time_and_date": "2024-03-18T22:00:00Z",
  "block_id": "2024-05-13T15:00:00",
  "device_id": "bedefd6b-44e8-4855-9692-f216e34a8d65",
  "connectivity_tier": "Ultra High Speed",
  "processor": "NVIDIA A100 PCIE-80GB",
  "processor_quantity": 10,
  "pow": "Success",
  "potl": "Success",
  "uptime_in_minutes": 50,
  "total_score": 12032.5,
  "normalized_score": 327.54,
  "rewarded": 1.401,
  "brand_name": "NVIDIA",
  "brand_id": 2,
  "pow_success_list": true,
  "potl_success_list": true
}
"\t\nNot found"
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

device_id
string
required

Unique identifier for your device.

block_id
string
required

Unique identifier for a specific block.

Response

200

status
string
Example:

"Success"

time_and_date
string
Example:

"2024-03-18T22:00:00Z"

block_id
string
Example:

"2024-05-13T15:00:00"

device_id
string
Example:

"bedefd6b-44e8-4855-9692-f216e34a8d65"

connectivity_tier
string
Example:

"Ultra High Speed"

processor
string
Example:

"NVIDIA A100 PCIE-80GB"

processor_quantity
integer
default:0
Example:

10

pow
string
Example:

"Success"

potl
string
Example:

"Success"

uptime_in_minutes
integer
default:0
Example:

50

total_score
number
default:0
Example:

12032.5

normalized_score
number
default:0
Example:

327.54

rewarded
number
default:0
Example:

1.401

brand_name
string
Example:

"NVIDIA"

brand_id
integer
default:0
Example:

2

pow_success_list
boolean
default:true
Example:

true

potl_success_list
boolean
default:true
Example:

true