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

import bittensor as sub

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