Queries

tao-usd-price

The TAO/USD price oracle, its last feed, and the accepted price at this block.

View as Markdown

The accepted price falls to the feed at once and rises toward it by at most 0.0066% (66 ppm) of itself per block, and mints value TAO at it. Minting needs a feed at most 300 blocks old, so no new mint succeeds once blocks_since_last_feed exceeds 300.

Category: Gamma

Parameters

This read takes no parameters.

CLI

btcli query tao-usd-price --json

Python

Namespace method (autocomplete, signature help):

import bittensor as bt

sub = bt.Subtensor()
result = sub.gamma.tao_usd_price()

Or dispatch by name, as an agent would:

result = sub.read("tao_usd_price")

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.