Table of Contents
Bittensor's Subtensor Runtime 493 changes who authorizes payments for subnet services, moving Gamma spending from service-controlled spenders to the customer's own hotkey. Services now credit customers by reading their cumulative onchain spending rather than submitting transactions against customer deposits.
The v493 release, published November 20, introduces a fee-free payment call signed by the deposit's hotkey while leaving budget management with its coldkey. Developers must migrate because existing spender-based Gamma integrations and older SDKs are incompatible with the new runtime.
Gamma is a dollar-valued service credit specific to a Bittensor subnet. A coldkey creates credits by burning the subnet's Alpha tokens, either bought with TAO or taken from existing stake. The credits sit in a deposit associated with a hotkey that can act as an API key, separating everyday service access from control of the funds allocated to it.
How Customer-Authorized Gamma Payments Work
Under the new payment path, the deposit's hotkey signs spend_gamma(service, netuid, amount), identifying a service listed on the subnet, the subnet's numerical identifier, and the amount to spend. The transaction burns that amount of Gamma and increases GammaSpent(netuid, service, hotkey), a running total of the customer's spending at that service.
The service then checks that total at a finalized block and credits the customer for the increase since its previous reading. Finalization provides a settled chain record for the service's accounting. The service maintains the customer's usable credit balance itself; it neither submits the payment transaction nor holds authority to spend the customer's remaining deposit.
Spending Gamma does not transfer tokens to the service onchain. The credits are destroyed when spent, while the earlier Alpha burn supplies the token-economic mechanism behind minting. Gamma cannot be redeemed for Alpha or TAO, and each subnet decides whether, and at what prices, to accept its credits.
The hotkey needs no TAO to pay transaction fees and no registration to act as a deposit's API key. Bittensor's Gamma guide recommends using a fresh hotkey rather than a staking hotkey or coldkey for this role.
The coldkey retains control over the deposit's balance, its daily spending cap, and closing an empty deposit. Moving the balance to another API-key hotkey removes the old key's access to those credits without handing the service control of the replacement key.
Individual spends must be at least 0.1 Gamma unless they empty the deposit, and cannot exceed either the balance or the allowance available under its cap. A configured daily cap must be zero, which pauses spending, or at least 0.1 Gamma. The upgrade pauses existing caps below that minimum.
The allowance refills continuously at the configured cap per 7,200 blocks, rather than resetting at a particular time of day. Resuming a paused deposit starts its allowance refilling from zero. A coldkey can also remove the cap. Moves between deposits must transfer the whole balance or move at least 0.1 Gamma while leaving at least 0.1 Gamma behind.
What Gamma Integrators Must Migrate
The official upgrade notes specify bittensor 11.3.5 and bittensor-core 0.1.12 for the new interface. Earlier SDKs cannot mint, spend, or read Gamma deposits once Runtime 493 is live.
The Python SpendGamma operation now takes a subnet identifier, service hotkey, and amount, and must be signed by the deposit's hotkey. A corresponding CLI payment looks like this:
btcli gamma spend --netuid 1 --service-hotkey SERVICE_HOTKEY --amount-gamma 5 -H API_KEYServices previously authorized to debit customers must replace that logic with reads of GammaSpent. The new SDK query, gamma_spent, returns a hotkey's cumulative spending at a service.
Persistent accounting also needs to distinguish successive subnets that use the same numerical identifier. The subnet services guide instructs services to store RegisteredSubnetCounter alongside each spending total and restart accounting from zero when that counter increases. Subnet dissolution clears Gamma balances and spending totals.
Teams maintaining direct chain bindings, transaction builders, or event indexers face several interface changes:
| Interface | Runtime 493 Change |
|---|---|
| Spending | The hotkey-signed call at index 168 replaces batched spender payments. |
| Minting and service registration | mint_gamma, mint_gamma_with_stake, and set_service drop the spender argument and use indices 166, 167, and 169. |
| Retired calls | Indices 158, 159, 162, 164, and 165 are retired; set_gamma_deposit_spender is removed. |
| Records and events | Deposit and service records, plus the minting and service-registration events, no longer carry a spender. GammaSpent contains { netuid, hotkey, service, amount }. |
| Runtime API | GammaRuntimeApi advances to version 2; deposit information drops the spender field. |
| Proxies | The deprecated GammaSpend proxy denies all calls. Only an Any proxy can spend for a hotkey. |
The CLI also removes btcli gamma set-spender and the minting options --spender and --service-hotkey. The latter remains part of the spending command, where it identifies the service receiving the credit allocation.
The hotkey-spending implementation also changes deposit handling around ownership operations. A hotkey swap moves the coldkey's deposit to the replacement hotkey; if the destination already holds another coldkey's deposit, the original deposit is paused instead. Historical spending stays attributed to the old hotkey. Deposits owned by a different coldkey at the old hotkey do not move, so their owners must move or pause those balances if the key is compromised.
Gamma emissions open the subnet owner's hotkey deposit with a zero cap, requiring the owner coldkey to enable spending by setting a cap. The migration also pauses an existing uncapped owner deposit at the subnet owner's hotkey.
Yuma Commit Limits and Release Notifications
Beyond payments, Runtime 493 adds a configurable limit for Yuma timelocked commitments. Validators use these commitments when submitting weights before revealing them.
Sudo can set MaxTimelockedCommitsPerHotkey separately for each subnet through sudo_set_max_timelocked_commits_per_hotkey. The limit applies per hotkey, mechanism, and commit epoch, with the default unchanged at 10. Setting it to zero stops new timelocked commitments while allowing already queued commitments to reveal. Legacy hash commitments retain their fixed limit of 10, and existing subnets receive the default without a storage migration.
The release also adds automated Discord announcements for proposed mainnet upgrades, upgrades becoming live, and stable Python package releases. Successful announcements are recorded as commit statuses so retries can skip completed posts. A separate workflow supports stable Python publication without a runtime upgrade, and future runtime or Python version bumps require structured notes linked to a release page.