{"uid":"cap_B0lHhNe3zF5H4HpR2FefN","slug":"peyon-bittensor-unstake-cost-4e7c5a85","name":"Peyon Bittensor Unstake Cost","description":"Exact cost to unstake from a Bittensor subnet right now, from the chain's own swap simulator: TAO received, cost in TAO and percent. Give alpha (amount of alpha) or tao (position value in TAO).","url":"https://peyon.ai/api/subnet-exit/:netuid?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","required":["netuid"],"properties":{"netuid":{"type":"string","pattern":"^[0-9]{1,3}$"}}},"queryParams":{"type":"object","properties":{"tao":{"type":"number"},"alpha":{"type":"number"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NBKNF_zJulzi99mDZiO8C","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the real-time cost to exit (unstake) a Bittensor subnet position, including TAO received, cost in TAO, and percent cost, simulated directly from the chain's swap mechanism.","exampleAgentPrompt":"What will I actually receive in TAO if I unstake my 500 alpha from Bittensor subnet 18 right now, and what's the exit cost percentage?","exampleUseCases":[{"title":"Pre-exit unstake cost check","prompt":"I have 200 alpha staked on Bittensor subnet 64 — how much TAO would I get back if I unstaked right now, and what's the swap cost?"},{"title":"TAO-denominated position exit quote","prompt":"My Bittensor position on subnet 1 is worth about 10 TAO. What would I actually receive after exit costs if I unstake now?"},{"title":"Monitoring exit cost before rebalancing","prompt":"What's the current exit cost percentage and TAO received if I pull 1000 alpha out of Bittensor subnet 18 today?"}],"resultDescription":"Returns the TAO amount received after the swap, the cost of the exit in TAO, and the exit cost as a percentage — all computed from the on-chain swap simulator for the specified subnet at the current moment.","failureModes":["Invalid netuid (non-numeric or out of range) returns a 400 or error response","Subnet not found or not active returns an error","Neither alpha nor tao query param provided may return a default simulation or error","Chain RPC unavailability may cause timeouts or 500 errors","Payment not made (x402) results in 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need a real-time, chain-accurate simulation of the cost to exit (unstake) a specific Bittensor subnet position. It is preferable over manual calculations or static estimates because it queries the chain's own swap simulator, reflecting current pool reserves and alpha price. Choose this when you need exact TAO received and cost percentage before executing an actual unstake.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:35:25.438Z","isFirstParty":false,"canonicalSlug":"peyon-bittensor-unstake-cost-4e7c5a85"}