Skip to content

Bittensor Proposes Gamma Transfers and Smart-Contract Access in Runtime 498

The upgrade would let users share subnet credits and give developers built-in tools for Gamma-paid services.

The upgrade would let users share subnet credits and give developers built-in tools for Gamma-paid services.

Table of Contents

Bittensor has proposed Runtime 498, an upgrade that would let users transfer Gamma service credits between accounts, manage them through EVM smart contracts, and access paid subnet services through built-in command-line and Python clients.

The V498 release connects credit funding, distribution, service discovery, and authenticated API calls. Developers building applications or AI agents on Bittensor would no longer need to write separate integrations for transferring credits and constructing signed requests to each compatible service.

V498 remains labeled “Proposed” on Bittensor's releases page. Its accompanying software versions are Python SDK 11.3.8 and bittensor-core 0.1.15.

Gamma is a dollar-valued credit specific to a subnet. Customers mint it by burning that subnet's alpha tokens, either from existing stake or through a TAO-funded purchase and burn. V498 changes how those credits can be held and distributed without changing the minting mechanism.

Coldkey Balances Separate Ownership From Spending

Until now, Gamma has lived in deposits associated with hotkeys, the operational signing keys used to access services. V498 would add GammaBalances(netuid, coldkey): a balance belonging to the controlling account, or coldkey, without assigning it to a spending hotkey.

A transfer to another coldkey would land in that balance by default. The recipient would then allocate credits to a hotkey deposit before using them. A sender could also transfer directly from a deposit or into a recipient's deposit.

This preserves the payment model established in Runtime 493's hotkey-spending update. Hotkeys would continue spending only from deposits, while coldkeys would manage balances and permissions. Receiving Gamma would not, by itself, give an operational key access to it.

Three new runtime calls support the arrangement:

CallIndexFunction
deposit_gamma175Moves credits from a coldkey balance into a hotkey deposit, with an optional daily spending cap.
withdraw_gamma176Returns credits from a deposit to the coldkey balance, closing the deposit if emptied.
transfer_gamma177Sends an exact amount to another coldkey's balance or deposit.

Transfers must be at least 0.1 Gamma and cannot target the sender's own coldkey. The credits remain specific to their original subnet; transferability would not make them interchangeable across subnets or redeemable for TAO or alpha.

The Gamma guide gives the corresponding CLI workflow. In these examples, netuid identifies the subnet, and the uppercase values are placeholders:

btcli gamma list
btcli gamma withdraw --netuid 1 --hotkey HOTKEY --amount-gamma 5
btcli gamma deposit --netuid 1 --hotkey OTHER_HOTKEY --all
btcli gamma transfer --netuid 1 --dest-coldkey THEIR_COLDKEY --amount-gamma 5

Spending caps remain attached to deposits. Moving Gamma from a capped deposit into one with a looser cap, or no cap, would fail with GammaDepositDailySpendCapMismatch. The coldkey could deliberately withdraw credits to its unallocated balance to remove them from that deposit's cap.

To prevent other accounts from filling a recipient's deposit slots, a third party could open a deposit only at an unowned hotkey or one owned by the recipient, and only while the recipient held fewer than 32 deposits across all subnets. Additional restrictions apply during coldkey swaps. Swaps would move coldkey Gamma balances too, but would be refused if combined deposits exceeded 64 on a subnet.

For delegated accounts, deposits and withdrawals would fall under GammaCreditCalls, available to Any and NonCritical proxies. Transfers would fall under GammaTransferCalls, allowing a Transfer proxy to send credits. GammaRuntimeApi version 3 would expose the new balances through get_gamma_balances.

EVM Contracts Gain Native Gamma Operations

The proposed IGamma precompile at 0x0000000000000000000000000000000000000814 would expose Gamma to Ethereum-compatible accounts and smart contracts. A precompile is a fixed-address interface through which contracts invoke functionality implemented by the underlying chain.

Its 10 state-changing functions cover minting, moving, depositing, withdrawing, transferring, and spending Gamma, as well as deposit closure, spending-cap changes, and service registration. Eight read and simulation functions expose balances, deposits, spending totals, service records, enablement, and minting quotes.

Each state-changing operation would run as the caller's mapped Bittensor account. Contracts would therefore use the native ownership and spending rules rather than a separate token wrapper.

One application is distributing newly minted credits in a single transaction. A contract could mint Gamma into a pool deposit it controls, then transfer the credits to a user's deposit. If the transfer failed, the mint would roll back with it, avoiding a partially completed funding operation.

The IGamma interface documentation also covers payment costs. Spending through the EVM consumes gas, whereas native spend_gamma is fee-free. Both produce the spending record services use to credit customers.

The existing ISubnet interface would gain Gamma enablement controls and version-two emission-weight reads and writes. For hashed accounts, EVM alias registration would sweep Gamma balances from the legacy mapped account, but would fail while that account owned a Gamma deposit. Register hashed accounts before sharing their EVM addresses.

Service Clients Turn Published APIs Into Agent Tools

Bittensor's subnet services framework lets eligible publishers register a services-document URL onchain. That document identifies API specifications, payment methods, and the hotkeys at which customers spend Gamma.

The new btcli service and bittensor.services clients would read compatible OpenAPI 3 specifications and construct the available operations. OpenAPI describes an HTTP API's routes and inputs in a machine-readable format, letting the clients generate typed CLI flags rather than requiring users to assemble requests manually.

Users could discover services with btcli service list, inspect one with btcli service show --netuid 1, fund service credit through btcli gamma spend, invoke an operation, and check the remaining service balance.

Funding and calling are separate steps. Spending Gamma destroys the allocated credits and increases the customer's cumulative onchain spending at a service; the provider credits that amount in its own accounting. A subsequent signed API request consumes that service balance rather than moving Gamma or TAO again.

In Python, service.tools() would produce tool names, descriptions, and input schemas for agents. The same service object could execute an operation using the caller's prepared signer. This would let an agent use the published specification for both discovering a capability and supplying its arguments.

The clients would verify that the document's publishers match the onchain registration before trusting it. Signed btauth/1 requests would be bound to the receiving hotkey, URL, and body. Production calls would require HTTPS on public hosts and would not follow signed redirects.

Gamma already has a service-payment use case in Chutes, which has activated it across its services. V498's clients would provide a common access path for providers publishing compatible service specifications.

Validator Commitments and Upgrade Preparation

Beyond Gamma access, SubnetInfoRuntimeApi version 4 would add get_subnet_emission_weights_v2. It returns the five base emission slots alongside shares used to buy individual target subnets' Gamma. The earlier method would remain available but deprecated, and the SDK would fall back automatically when reading pre-V498 runtimes.

Validators changing hotkeys would need to account for a commitment-handling change. Once V498 activates, a successful swap would discard pending hash-based weight commitments signed by the old hotkey on affected subnets. Those commitments include the original signer and cannot be revealed by its replacement.

Validators should submit fresh commitments with the new hotkey and reveal them in the new commitment's reveal window. Commitments on untouched subnets, and those already signed by the replacement key, would remain intact.

SDK 11.3.8 also adds a btcli overview registration table, bulk unstaking through btcli stake remove --all with explicit --all-positions or --all-wallets sweep options, and fixes for right-to-left and Ogham subnet-symbol rendering.

V498 would raise the runtime specification from 497 to 498, leave the transaction version at 2, and require no storage migration. After activation, integrators should refresh runtime metadata, rebuild signing payloads prepared under earlier versions, and regenerate and review pending root-parameter proposals before continuing approvals.

Comments

Latest