Queries
quote-unstake
Simulate unstaking `amount_alpha` alpha from a subnet: TAO out, fee, and slippage.
Category: Prices & swaps
Parameters
| Parameter | Type | Description |
|---|---|---|
netuid | integer | Subnet to simulate unstaking from. |
amount_alpha | number | Alpha amount to simulate unstaking. |
CLI
btcli query quote-unstake --netuid <integer> --amount-alpha <number> --jsonPython
import bittensor as sub
async with sub.Client("finney") as client:
result = await client.read("quote_unstake", netuid=1, amount_alpha=1.0)