Skip to main content

Basic Info

Basic information on the storage providers.

Request URL

GET: /storage_provider/basic_info

Request Parameters

VariableTypeDescriptionExampleDefault
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/basic_info?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
miner_idSTRINGUnique ID of the storage provider.
onboarding_atTIMESTAMPThe earliest timestamp that the storage provider first recorded in the network.
sector_sizeBIGINTSize of a sector (32GiB or 64GiB, in bytes) of the storage provider.

Response Example

Response
{
"request_id": "ba4422cc-734f-4d90-84ec-7ad0b3ef01e7#9375",
"code": 0,
"message": "success.",
"data": [
{
"stat_date": "2022-10-01T00:00:00Z",
"miner_id": "f0110804",
"onboarding_at": "2020-12-21T18:35:00Z",
"sector_size": 34359738368
}
]
}