• ABOUT

  • WHITEPAPER

  • DOCS

  • DISCORD

  • WALLET

  • EXPLORE

The V498 Upgrade

Transferable Gamma · Gamma EVM precompile · btcli service & bittensor.services · Runtime spec 498 · Python SDK 11.3.8

Gamma end-to-end: transferable balances, EVM precompile, and subnet services

V498 turns Gamma into a complete credit and service layer across the native runtime, the EVM, the CLI, and the Python SDK. Coldkeys can now hold Gamma balances outside any hotkey deposit and transfer credits directly to other coldkeys, smart contracts can mint, transfer, spend, and query Gamma through the new IGamma precompile at 0x0814, and btcli service / bittensor.services turn any subnet's published OpenAPI 3 service into typed CLI commands and agent tool schemas paid in Gamma.

Alongside the Gamma release, V498 bumps SubnetInfoRuntimeApi to version 4 with per-target-subnet Gamma shares in get_subnet_emission_weights_v2, clears unrevealable hash weight commitments during hotkey swaps, and ships Python SDK 11.3.8 with btcli overview, bulk btcli stake remove --all sweeps, and RTL subnet symbol fixes.

AreaBefore V498After V498
Coldkey Gamma balances & transfersGamma lived only in hotkey deposits and could not leave its coldkeyGammaBalances storage plus deposit_gamma, withdraw_gamma, and transfer_gamma across coldkeys
EVM access to GammaNo Gamma precompile; Gamma controls absent from ISubnetIGamma at 0x0814 (10 calls, 8 views/simulations) and Gamma / V2 emission weight methods on ISubnet
Calling Gamma-paid subnet servicesCallers parsed service specs and signed btauth/1 requests by handbtcli service and bittensor.services discover services, validate OpenAPI 3 specs, sign requests, and emit agent tool schemas
Emission weights runtime APIget_subnet_emission_weights returned the five base slots onlySubnetInfoRuntimeApi v4 adds get_subnet_emission_weights_v2 with per-subnet Gamma shares
Hotkey swap weight commitsPending hash commits tied to the old hotkey remained unrevealableHotkey swaps discard pending hash commits for the old hotkey on affected subnets so the replacement hotkey can recommit immediately
Python SDK & CLI (11.3.8)No unified registration table, single-position unstake only, RTL reorderingAdds btcli service, btcli overview, bulk btcli stake remove --all sweeps, and RTL bidi / Ogham symbol fixes

Transferable Gamma and coldkey balances

A coldkey can now hold Gamma on a subnet without tying it to a hotkey, stored in GammaBalances(netuid, coldkey). Gamma sent to a coldkey lands in its balance by default — just as TAO lands in a free balance — and cannot be spent until moved into a hotkey deposit. Hotkeys still spend only from deposits, so existing services and billing flows do not change.

  • deposit_gamma(hotkey, netuid, amount, daily_spend_cap) (call index 175): moves up to amount from the coldkey's balance to its deposit at hotkey, checking daily_spend_cap if the deposit already exists or opening one with it (None for uncapped).
  • withdraw_gamma(hotkey, netuid, amount) (call index 176): moves up to amount from a deposit back to the coldkey's balance, closing the deposit when emptied and taking Gamma out from under any daily spend cap.
  • transfer_gamma(destination_coldkey, origin_hotkey, destination_hotkey, netuid, amount) (call index 177): sends exactly amount (minimum 0.1 Gamma, preventing dust) from the signer's balance or origin deposit to another coldkey's balance or deposit. Transfers to the signer's own coldkey fail with InvalidValue.
  • Third-party deposit limits and coldkey swaps: another coldkey can open a deposit for a recipient only at an unowned hotkey (or one owned by the recipient), only while the recipient holds fewer than 32 deposits across all subnets, and not while the recipient has a coldkey swap announced, disputed, or reserved as a destination. Coldkey swaps now move GammaBalances alongside TAO (treating destination balances as funds) and are refused at announce_coldkey_swap_v2 with TooManyGammaDeposits if combined deposits on any subnet would exceed 64.
  • Spend-cap enforcement and proxies: move_gamma from a capped deposit into a deposit with a looser cap (or no cap) now fails with GammaDepositDailySpendCapMismatch, and a hotkey swap tightens such a destination deposit to the moved deposit's cap while emitting GammaDepositDailySpendCapSet. deposit_gamma and withdraw_gamma sit in GammaCreditCalls (Any / NonCritical proxies), while transfer_gamma sits in GammaTransferCalls so Transfer proxies can send Gamma.
# Inspect both hotkey deposits and unallocated coldkey Gamma balances
btcli gamma list
btcli query gamma-balances

# Move Gamma between deposits and your coldkey balance
btcli gamma withdraw --netuid 1 --hotkey HOTKEY --amount-gamma 5
btcli gamma deposit --netuid 1 --hotkey OTHER_HOTKEY --all

# Send Gamma to another coldkey's balance (or straight from a deposit)
btcli gamma transfer --netuid 1 --dest-coldkey THEIR_COLDKEY --amount-gamma 5
btcli gamma transfer --netuid 1 --dest-coldkey THEIR_COLDKEY --origin-hotkey HOTKEY --amount-gamma 5

Minting (mint_gamma and mint_gamma_with_stake) is unchanged. The release adds events GammaDeposited, GammaWithdrawn, and GammaTransferred, and moves GammaRuntimeApi to version 3 with get_gamma_balances. See the Gamma guide and proxies guide for full details.

Gamma from the EVM: IGamma (0x0814) and ISubnet

The new IGamma precompile at 0x0000000000000000000000000000000000000814 (PrecompileEnum::Gamma) exposes the full signed Gamma lifecycle and read surface to EVM accounts and smart contracts, dispatching every state-changing call as the caller's mapped account:

  • State-changing calls: mintGamma, mintGammaWithStake, moveGamma, closeGammaDeposit, setGammaDepositDailySpendCap, depositGamma, withdrawGamma, transferGamma, spendGamma, and setService. Optional arguments use a has… boolean paired with a value; runtime rejections revert atomically.
  • Views and simulations: getGammaDeposit (returning owner, balance, cap, and immediately spendable amount), getGammaDepositHotkeys, getGammaBalance, getGammaSpent, getService, getGammaEnabled, simMintGamma, and simMintGammaWithStake.
  • ISubnet additions: getSubnetGammaEnabled, setSubnetGammaEnabled, getSubnetEmissionWeightsV2, and setSubnetEmissionWeightsV2.

A smart contract can mint Gamma for an end user in a single atomic transaction by minting into a contract-owned pool hotkey deposit and transferring the minted balance to the user's deposit — if the transfer reverts, the mint rolls back with it:

IGamma gamma = IGamma(IGAMMA_ADDRESS);
gamma.mintGamma(poolHotkey, netuid, amountRao, minGammaOut, false, 0);
(, , uint64 minted, , , ) = gamma.getGammaDeposit(netuid, poolHotkey);
gamma.transferGamma(user, true, poolHotkey, true, userHotkey, netuid, minted);

Hashed EVM aliases & SDK ABIs: registering a hashed account's EVM alias sweeps GammaBalances from the address's legacy mapped account into the registered account and refuses registration while that mapped account holds a Gamma deposit (register hashed accounts before sharing their EVM address). The updated gamma.json and subnet.json ABIs are vendored into the Python SDK, and btcli evm calls now reject unrecognized boolean arguments instead of treating them as false.

Usable Gamma services in btcli service and bittensor.services

Subnets publish paid HTTP services on chain by committing a services document URL that points to OpenAPI 3 specs and accepts btauth/1 requests backed by Gamma. V498 ships a built-in client in both btcli service and bittensor.services so humans, scripts, and agents can discover and invoke published subnet services without reading custom docs or hand-crafting signed HTTP requests.

# Discover usable published services (--all includes unusable ones with reasons)
btcli service list
btcli service show --netuid 1

# Inspect an operation's typed flags, pay in Gamma, and call it
btcli service call --netuid 1 create-chat-completion --help
btcli gamma spend --netuid 1 --service-hotkey SERVICE --amount-gamma 5 -H HOTKEY
btcli service call --netuid 1 -H HOTKEY create-chat-completion \
  --model m --messages '[{"role": "user", "content": "Hi"}]'
btcli service balance --netuid 1 -H HOTKEY
published = await bt.services.discover(client)
service = await bt.services.load(client, netuid=1)
tools = service.tools()  # [{"name", "description", "input_schema"}] for agents

signer = await bt.http_auth.prepare_signer(wallet, client=client)
response = await service.call(
    "createChatCompletion",
    {"model": "m", "messages": [{"role": "user", "content": "Hi"}]},
    signer=signer,
)
balance = await service.balance(signer=signer)

The client verifies chain-committed publishers before trusting a service document, binds each signed btauth/1 request to the receiver hotkey, target URL, and body, restricts production calls to HTTPS on public hosts with no signed redirects, and parses JSON or YAML OpenAPI 3 specs under a bounded 200,000-item resolution budget. Pass --json for structured responses and machine-readable error codes, or --inputs / --file / --out for JSON objects, uploads, and binary/streamed answers. See the services guide.

Emission weights runtime API v2

SubnetInfoRuntimeApi moves to version 4 with get_subnet_emission_weights_v2, returning a subnet's five base emission slots alongside its per-target-subnet Gamma shares (the portion of emission buying each target subnet's Gamma). The v1 method get_subnet_emission_weights remains served and is now deprecated.

The Python SDK's emission weights read and SetSubnetEmissionWeights intent now call V2 and fall back automatically to V1 plus the SubnetGammaEmission storage read against pre-V498 runtimes. See the eTAO guide.

Validator action: recommit pending weights after a hotkey swap

Once V498 activates, a successful hotkey swap (both swap_hotkey and swap_hotkey_v2, subnet-scoped and full) discards pending hash-based weight commitments signed by the old hotkey across all active mechanisms on each affected subnet. Those hashes include the original signer and could never be revealed by the replacement hotkey. Untouched subnets and commitments already signed by the replacement hotkey are preserved.

After a hotkey swap on V498: submit fresh hash-based weight commitments signed by the replacement hotkey for each affected subnet and mechanism whose pending update you still want to publish, then reveal during the new commitment's reveal window.

Python SDK 11.3.8: btcli overview, bulk unstake sweeps, and RTL fixes

Alongside btcli service, bittensor.services, and the new Gamma balance/transfer commands, Python SDK 11.3.8 (accompanied by bittensor-core 0.1.15) ships three major CLI updates:

  • btcli overview: top-level registration table listing every UID held by local and on-chain owned hotkeys with activity, stake, incentive, emission per tempo, dividends, validator permit, and last-update age read at a single pinned block, supporting -w, --all, --netuid, and --json.
  • Bulk btcli stake remove --all sweeps: explicit opt-in sweep flags --all --all-positions -w NAME (one wallet) and --all --all-wallets (all local wallets, with --exclude and --include-small), with per-wallet atomic batching, lock/collateral and root unlock filtering, and per-extrinsic weight-limit preflight checks. See the staking guide.
  • RTL terminal rendering fixes: isolates right-to-left Hebrew/Arabic subnet token symbols (subnets 25–80) with LRM marks so amounts and SS58 addresses no longer swap columns, preserves subnet 90's Ogham space mark (U+1680), and sanitizes on-chain subnet names to single-line terminal text.
uv pip install "bittensor==11.3.8"
btcli --version

Scope, versions, and on-chain summary

V498 raises the runtime spec_version from 497 to 498 and keeps transaction_version at 2. There are no storage migrations. Once the upgrade activates, refresh runtime metadata and rebuild signing payloads prepared under earlier versions, and regenerate and review any pending root parameter proposals before continuing approvals. See the V497 release notes for the sudo signing safeguards carried forward.

SurfaceAdditions in V498
Extrinsics (SubtensorModule)deposit_gamma (175), withdraw_gamma (176), transfer_gamma (177)
StorageSubtensorModule.GammaBalances(netuid, coldkey)
EventsGammaDeposited, GammaWithdrawn, GammaTransferred (plus GammaDepositDailySpendCapSet emitted when a hotkey swap tightens a cap)
Runtime APIsGammaRuntimeApi v3 (get_gamma_balances), SubnetInfoRuntimeApi v4 (get_subnet_emission_weights_v2)
EVM PrecompilesIGamma at 0x0000000000000000000000000000000000000814 (PrecompileEnum::Gamma); ISubnet Gamma and V2 emission weight methods
Proxy FiltersGammaCreditCalls adds deposit_gamma / withdraw_gamma; GammaTransferCalls exposes transfer_gamma to Transfer proxies