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"
}
]
}Getting Started With IO Explorer API
Device Details for a Block
The Deice Details for a Block endpoint returns granular information about a device in the context of a specific block reward. It offers details about Block Reward challenges, the outcome, and details about the device.
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
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Unique identifier for your device.
Unique identifier for a specific block.
Response
200
Example:
"Success"
Example:
"2024-03-18T22:00:00Z"
Example:
"2024-05-13T15:00:00"
Example:
"bedefd6b-44e8-4855-9692-f216e34a8d65"
Example:
"Ultra High Speed"
Example:
"NVIDIA A100 PCIE-80GB"
Example:
10
Example:
"Success"
Example:
"Success"
Example:
50
Example:
12032.5
Example:
327.54
Example:
1.401
Example:
"NVIDIA"
Example:
2
Example:
true
Example:
true
Was this page helpful?