Chain Stake Fee
Fetch the fee the runtime would charge one stake move at the finalized head, from StakeInfoRuntimeApi.get_stake_fee: an add (no origin position), a remove (no destination position), or a move or transfer between positions and coldkeys, in rao as a decimal string. A failed read is the decline: block_number null and fee null. ?amount= and ?origin_coldkey= are required, each position's hotkey and netuid go together, and at least one position is needed; an invalid argument is a 400.
Query Parameters
The amount as a decimal integer: rao of TAO (10^9 to one TAO) or raw alpha (10^9 to one alpha), at most 18446744073709551615.
^\d{1,20}$The account the stake moves from (SS58).
^[1-9A-HJ-NP-Za-km-z]{47,48}$The hotkey the stake moves from (SS58); omit for new stake from free TAO.
^[1-9A-HJ-NP-Za-km-z]{47,48}$The subnet the stake moves from; required with origin_hotkey.
0 <= value <= 65535The account the stake moves to (SS58); origin_coldkey when omitted.
^[1-9A-HJ-NP-Za-km-z]{47,48}$The hotkey the stake moves to (SS58); omit for an unstake to free TAO.
^[1-9A-HJ-NP-Za-km-z]{47,48}$The subnet the stake moves to; required with destination_hotkey.
0 <= value <= 65535Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/chain/stake-fee?amount=string&origin_coldkey=string"{ "data": { "amount": "example", "block_hash": "a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1", "block_number": 5000000, "destination": { "hotkey": "example", "netuid": 7 }, "destination_coldkey": "example", "fee": "example", "origin": { "hotkey": "example", "netuid": 7 }, "origin_coldkey": "example", "queried_at": "2026-06-01T00:00:00.000Z", "schema_version": 1 }, "meta": { "artifact_path": "example", "cache": "short", "catalog_paging": { "reason": "catalog_changed" }, "contract_version": "2026-06-29.1", "generated_at": "2026-06-01T00:00:00.000Z", "observed_through": "2026-06-01T00:00:00.000Z", "pagination": { "collection": "example", "cursor": 1, "limit": 1, "next_cursor": 1, "order": "asc", "returned": 1, "snapshot": "v1.a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1", "sort": "example", "total": 1 }, "published_at": "2026-06-01T00:00:00.000Z", "source": "live-cron-prober", "stale_contract": { "built_under": "example", "live": "example" } }, "ok": true, "schema_version": 1}