Skip to main content

Power

Information on storage power and capacity of the storage provider.

Request URL

GET: /storage_provider/power

Request Parameters

VariableTypeDescriptionExampleDefault
state_dateSTRINGSelected date (Optional).2022-10-01If no state_date is input, returns data for the most recent date available.
miner_idSTRINGSelected ID of the miner (Optional).f0110804Returns data for all miners if no miner_id is input.

Request Examples

Code
import requests

url = "https://api.spacescope.io/v2/storage_provider/power?state_date=2022-10-01&miner_id=f0110804"

payload={}
headers = {
'authorization': 'Bearer <--Please replace your API key here-->'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Response Schema

VariableTypeDescription
stat_dateDATERefers to the date the data was recorded.
miner_idSTRINGUnique ID of the storage provider.
raw_byte_powerNUMERICThe latest total raw byte storage power (in byte) supplied by the storage provider.
quality_adj_powerNUMERICThe latest total quality adjusted storage power (in bytes) supplied by the storage provider.

Response Example

Response
{
"request_id": "ba4422cc-734f-4d90-84ec-7ad0b3ef01e7#9379",
"code": 0,
"message": "success.",
"data": [
{
"stat_date": "2022-10-01T00:00:00Z",
"miner_id": "f0110804",
"raw_byte_power": 29171417874432,
"quality_adj_power": 29171417874432
}
]
}