All pallets

Aura docs

Look up any call, event, or storage item with code examples. Runtime v472 · Block #9,197,056

Developer documentation for the Aura pallet of the Subtensor blockchain, part of the Bittensor decentralized AI network. This page is designed for developers integrating with the chain: look up any call, event, or storage item, copy code examples in TypeScript, Python, or Rust, and filter by your role. For in-depth explanations, version history, and relationships between items, see the Reference section.

Aura

Index: 3 3 items

Storage 2

Authorities

storage details

The current set of block production authorities.

Modifier: Default Keys: 0 Returns: BoundedVec
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Query Authorities storage (no keys - plain value)
const result = await api.query.Aura.Authorities.getValue();
console.log("Authorities:", result);

CurrentSlot

storage details

The current slot number for block production.

Modifier: Default Keys: 0 Returns: Slot
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Query CurrentSlot storage (no keys - plain value)
const result = await api.query.Aura.CurrentSlot.getValue();
console.log("CurrentSlot:", result);

Constants 1

SlotDuration

constant details

The slot duration Aura should run with, expressed in milliseconds.

Type: u64
Value: "12000"
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Query SlotDuration constant
const value = await api.constants.Aura.SlotDuration();
console.log("SlotDuration:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;