Skip to content

The services subnets list for their gamma, each with what was spent at it

GET
/v1/gamma/services/

Every service a hotkey publishes on a subnet, by subnet then hotkey, with the gamma the deposits’ hotkeys spent at it and how many of them did. Spends name their service since runtime 493, so the totals start there; they count the subnet’s current occupant alone, as the chain clears its own at a dissolution. A service that is no longer listed keeps its row, url null, while such spends name it. netuid keeps one subnet, hotkey one service hotkey on every subnet. Not paginated.

Rate limit: 300 requests per minute per IP (scope explore).

  • None
hotkey
string

SS58 address of a service’s hotkey: its services only. 400 when it contains a NUL byte.

netuid
integer

One subnet’s services only. 400 when not an integer.

The services, by subnet then hotkey.

Media typeapplication/json

The services subnets list for their gamma.

object
results
required

By subnet then hotkey.

Array<object>

A service a hotkey publishes on a subnet for its gamma, with what was spent at it.

object
netuid
required

The subnet the service is listed on.

integer
hotkey
required

SS58 of the hotkey that set the service, which the spends name.

string
url
required

The document describing the hotkey’s services, as set, at most 256 bytes. Untrusted: link it, never fetch or render it. Null once the subnet no longer lists the service.

string
nullable
spender
required

SS58 of the spender customers named for the service up to runtime 492. Null since 493.

string
nullable
spent
required

In units of 10⁻⁹ gamma. What the deposits’ hotkeys spent at the service on this subnet since its occupant registered; 0 for none, and before runtime 493, when a spend named no service.

integer
hotkeys_count
required

How many deposit hotkeys spent at the service.

integer

Example generated

{
"results": [
{
"netuid": 1,
"hotkey": "example",
"url": "example",
"spender": "example",
"spent": 1,
"hotkeys_count": 1
}
]
}

A parameter failed its check, which message names. code is usually VALIDATION_ERROR.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleVALIDATIONERROR

VALIDATION_ERROR

{
"error": true,
"code": "VALIDATION_ERROR",
"message": "netuid must be an integer",
"detail": null
}

Rate limit exceeded (300/minute, per IP). Retry-After carries the seconds to wait.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleRATELIMITED

RATE_LIMITED

{
"error": true,
"code": "RATE_LIMITED",
"message": "Request was throttled",
"detail": {
"retry_after": 12
}
}
Retry-After
integer

Seconds before the next request is accepted.