Skip to content

Validator API.

Compare
Choose a tag to compare
@Arrmlet Arrmlet released this 17 Jan 15:49
· 73 commits to main since this release
7f84745

Key Features:

  • Retrieve on-demand data from high-scoring miners with query, to quickly receive small size data requests.
    Set dynamic desirabilities with set_desirabilities, which will push specified labels onto the shared incentivized list.
  • Monitor the top 1000 labels by source and their associated content sizes in bytes with get_top_labels_by_source
  • Fetch the top 1000 time_bucket_ids by source and their associated content sizes in bytes with ages.
  • Get the total of the associated content size for a specified label with get_bytes_by_label.
  • Perform a validator health check with health, returning the timestamp, miners available, netuid, validator hotkey, and API version.
  • Validators can enable the api using **--neuron.api_on ** flag.

API Key Information:
API keys should be added as environment variables as API_KEYS=____. These can be comma-separated for multiple keys.
NOTE: The system that will allow validators to automatically create API keys and manage them system is still in testing.