Queries

quote-unstake

Simulate unstaking `amount_alpha` alpha from a subnet: TAO out, fee, and slippage.

View as Markdown

Category: Prices & swaps

Parameters

ParameterTypeDescription
netuidintegerSubnet to simulate unstaking from.
amount_alphanumberAlpha amount to simulate unstaking.

CLI

btcli query quote-unstake --netuid <integer> --amount-alpha <number> --json

Python

Typed namespace method (autocomplete, signature help):

import bittensor as sub

async with sub.Client("finney") as client:
    result = await client.prices.quote_unstake(netuid=1, amount_alpha=1.0)

Or dispatch by name, as an agent would:

result = await client.read("quote_unstake", netuid=1, amount_alpha=1.0)