Queries

services

Every service published on a subnet, by hotkey.

View as Markdown

Each url points to its hotkey's own document of its services and the payments they accept; the chain does not check what it says. spender is the spender customers name on gamma deposits for the service. owner marks the subnet owner's hotkey while the owner owns it, whose spender new deposits name by default. A url that is not printable text is returned as 0x-hex.

Category: Subnets

Parameters

ParameterTypeDescription
netuidintegerSubnet whose services to list.

CLI

btcli query services --netuid <integer> --json

Python

Namespace method (autocomplete, signature help):

import bittensor as bt

sub = bt.Subtensor()
result = sub.subnets.services(netuid=1)

Or dispatch by name, as an agent would:

result = sub.read("services", netuid=1)

Async is the same surface awaited: async with bt.Subtensor() as client:.

On-chain implementation

Every file is browsable under /code exactly as built into the runtime.