Bring a Bittensor subnet to Silt
Port one task before inviting miners. Keep the miner’s job handler, the validator’s scoring rule and the data they exchange. Replace the code that discovers participants, publishes endpoints and sends weights. The new subnet receives its own Silt netuid, roster and alpha token. Each participant starts with a new Silt account. Their Finney balances, stake, UIDs and keys stay on Finney.
During mainnet’s proof-of-work phase, run the pilot on a disposable local Silt network. Mainnet registration opens after the first finalized NPoS block. The Stocktensor example records a completed local migration, from forecasts and grades to all four payouts. Run the local example · Explore its recorded epoch
Start here with your own subnet
| Role | What changes on Silt | What to verify |
|---|---|---|
| Owner | Register a subnet after the first finalized NPoS block. Choose its ticker, reward split, admission policy and scoring mode. Publish the Silt network’s genesis hash and the assigned netuid. | The directory lists the subnet, and the finalized registration burned the quoted SILT. |
| Miner | Enroll a Silt work key under a custody key. Advertise the endpoint and use the subnet’s existing protocol to serve jobs. | The grader authenticates the answer and checks that its author still controls the expected UID. |
| Subnet validator | Enroll, obtain a grading permit, discover miners from the Silt metagraph and submit their scores. | The weight transaction finalizes on the intended subnet. The next settled grading period credits the intended miners. |
| Staker | Delegate spendable alpha to the validator’s stable staking address. | Check its commission, record your redeemable amount and compare it after a dividend. Unstake and check your free alpha balance. |
Make a list of the Finney calls your worker, grader and monitoring service use. Silt’s adapter supports registration, metagraphs, endpoint publication, grades and alpha delegation. The v11-style query interface covers five named reads. Applications that publish text commitments, use custom runtime calls or rely on Finney’s indexers need an explicit replacement. Keep each network’s configuration and score database separate during a parallel run. Adapter coverage by operation
1. Connect and fund the pilot
The commands below use ./siltcli from the Silt checkout. With the installed CLI, use siltcli from any directory. Set SILT_RPC to your node’s endpoint and SILT_GENESIS to the independently verified genesis hash of the network you intend to use. Create separate Silt accounts for the owner, each participant’s custody and work keys, and any independent backer. Each participant runs the commands for their own role. Install the CLI and create an account
./siltcli --account owner wallet create
./siltcli --account owner wallet show
./siltcli status
./siltcli subnets list
Silt uses ML-DSA-65 accounts with prefix-42 addresses. Fund the new receiving addresses. The owner needs the registration burn plus a transaction fee. Work keys need fees to enroll, advertise or grade. Start with SILT for fees while the subnet’s order book is empty. A funded bid is required to sell alpha for a fee.
2. Owner registers the subnet
Read the current registration price in the finalized supply view, choose an unused ticker and set a maximum burn you are willing to pay. This example uses PILOT, open admission, two grading permits and ten blocks per scoring period. It assigns 41% to miners, 41% to validators and 18% to the owner. Read a finalized snapshot
./siltcli --account owner subnet create PILOT --mode Yuma --tempo 10 --permits 2 --miner-percent 41 --owner-percent 18 --lot-grains 1000 --max-burn 2
./siltcli subnets list
./siltcli subnet epoch PILOT
Publish your Silt netuid, ticker, worker software, job format, admission terms and scoring rules. Set NETUID in the remaining commands to the number beside PILOT in the directory. The registration creates the PILOT/SILT trading pair. Mining, grading and alpha staking can operate before anyone places an order.
3. Miner and validator enroll their keys
Each participant creates a custody account and a work account on their own machine. Set SILT_COLD_ADDRESS and SILT_HOT_ADDRESS to their respective receiving addresses. The custody account invites the work account. The work key accepts and claims the UID.
./siltcli --account custody wallet create
./siltcli --account work wallet create
./siltcli --account custody wallet show
./siltcli --account work wallet show
# Fund both addresses before signing the next two commands.
./siltcli --account custody subnet prepare-hotkey --netuid "$NETUID" "$SILT_HOT_ADDRESS"
./siltcli --account work subnet claim-uid --netuid "$NETUID" --coldkey "$SILT_COLD_ADDRESS"
./siltcli --json subnets metagraph --netuid "$NETUID"
Save each participant’s UID, hotkey, coldkey and staking_address from the finalized metagraph. Backers use the stable staking address. A new Yuma subnet initially has no alpha stake. Its first populated zero-stake period can pay enrolled UIDs and establish backing. Check for positive stake and a grading permit before trying to grade. A bootstrap payout alone tells you nothing about the quality of the miner’s work. Permits, bootstrap and rewards
4. Serve one real task and score it
Run the existing miner server. An Axon/Dendrite subnet can keep its Synapse and handlers. A v11 subnet can keep its own HTTP server, client and scorer. Connect those processes to Silt for chain operations. If the worker still signs HTTP messages with a Bittensor key, authenticate the association between that key and the enrolled Silt work key. The Stocktensor example below has both sides sign the mapping for a particular genesis, netuid, finalized roster and UID. An advertised IP address alone does not establish that link. Python adapter examples
On the miner’s machine, set MINER_IP to its reachable service IP and MINER_PORT to the port where its worker is listening. Publish the endpoint with the enrolled miner work key. If the worker already publishes its endpoint with serve_axon, read back that announcement.
./siltcli --account work subnet serve-axon --netuid "$NETUID" --ip "$MINER_IP" --port "$MINER_PORT"
On the validator’s machine, set MINER_HOT to the miner’s public Silt work address. Read the finalized row and compare its hotkey, custody address, IP and port with the miner’s announcement. Then send one job to that endpoint through the subnet’s normal client, verify the signed response and run the scoring rule.
./siltcli --json subnets metagraph --netuid "$NETUID" |
jq -e --arg hot "$MINER_HOT" '.neurons[] | select(.hotkey == $hot) | {uid, hotkey, coldkey, axon}'
A UID can change hands. Immediately before sending weights, resolve the miner’s UID again and require the endpoint that answered the job. Set MINER_IP and MINER_PORT on the validator to that verified IP and port. This example gives the full score to one miner on a public-weight Yuma subnet. The work account here is the validator’s signing key.
MINER_UID=$(./siltcli --json subnets metagraph --netuid "$NETUID" |
jq -er --arg hot "$MINER_HOT" --arg ip "$MINER_IP" --argjson port "$MINER_PORT" '
[.neurons[] | select(.hotkey == $hot and .axon.ip == $ip and .axon.port == $port)]
| if length == 1 then .[0].uid else error("Miner or endpoint changed") end') &&
./siltcli --account work subnet weights PILOT "${MINER_UID}=100"
./siltcli subnet epoch PILOT
For several miners, submit the actual scored row through chain.set_weights. If your scoring pipeline should clear an empty result, use graph.prepare_weights(..., on_empty="clear"). The default normalization can assign equal weights when all scores are zero. Subnets using commit/reveal must publish their commitment and deliver the reveal in its window. On Null, the highest-backed eligible validator’s row sets the miner weights. Scoring modes · Grade commitments and delivery
5. Verify a payout and back the grader
Record the finalized grade transaction, then inspect the next settled grading period. A ten-block period in the first issuance era allows 2.5 PILOT. At this split the miner budget is 1.025 PILOT, gross validator dividends total 1.025 PILOT, and the owner earns 0.45 PILOT. Miner awards can compound into their staking position. The validator and its backers share the gross dividend according to stake and commission.
A backer can obtain PILOT by transfer or by buying from a funded ask. Set GRADER_STAKE to the validator’s stable staking address. Run these commands on the funded backer’s account, checking the position before and after a settled dividend.
./siltcli subnet validators PILOT
./siltcli --account backer subnet stake PILOT "$GRADER_STAKE" 0.01
./siltcli --account backer subnet position PILOT "$GRADER_STAKE"
./siltcli --account backer subnet unstake PILOT "$GRADER_STAKE" all
./siltcli --account backer subnet position PILOT "$GRADER_STAKE"
./siltcli --account backer subnet balance PILOT
Unstaking returns spendable PILOT. It works with an empty book if the staker has SILT for the transaction fee. Selling PILOT for SILT is a separate order. Before inviting participants, reconcile the owner’s free alpha, the miner’s stake, the validator’s dividends and the backer’s withdrawal at finalized block hashes.
A working v11 example with Stocktensor
Stocktensor’s miner signs forecasts for three time horizons. Its validator verifies them, compares them with subsequent price observations and produces a weight row. The Silt integration runs the upstream miner and validator with Bittensor 11.1.0. A deterministic price feed and a controlled application clock let a one-week forecast resolve during the rehearsal. This checks delivery, grading and payment. A competitive forecast benchmark needs independent prices and several miners. Upstream source and worker dependencies
Stocktensor’s HTTP requests, responses and audit bundle retain their upstream signatures. Separate ML-DSA-65 keys authorize every Silt transaction. The adapter checks the miner’s Silt-advertised endpoint and its transport-key binding at a finalized block, rereads the roster before grading, and confirms the weight transaction to the running validator only after finality. Stocktensor’s text audit commitment is recorded in the signed off-chain evidence. An application that needs public on-chain discovery of those commitments must supply its own publication mechanism. Worker integration · Identity binding
Reproduce the Stocktensor run
From a clone of the Silt repository, install Docker, Rust and Python 3.12. The host needs the transport wallet package to create disposable Stocktensor keys. The upstream miner, validator and v11 SDK run inside Docker. The script creates fresh accounts, shortens the mining period, waits for four elected chain validators and an observer to finalize NPoS, then funds a separate subnet owner.
demo_dir=$(mktemp -d)
python3.12 -m venv "$demo_dir/venv"
. "$demo_dir/venv/bin/activate"
python -m pip install 'bittensor-wallet==4.0.1'
substrate/localnet/build_stocktensor_worker.sh --test-upstream
docker build --target default-operator --build-arg SILT_BUILD_ALIGNED_SLOTS=true \
-f packages/silt-testnet/docker/SDK.Dockerfile -t silt-stocktensor-node .
cargo build --locked --release --bins --manifest-path substrate/clients/wallet/Cargo.toml \
--target-dir "$demo_dir/tools"
export SILT_WALLET_BIN="$demo_dir/tools/release/silt-wallet"
python substrate/localnet/sdk_stocktensor.py --four-validators --image silt-stocktensor-node \
--wallet "$SILT_WALLET_BIN" --output "$demo_dir/result.json"
python substrate/localnet/sdk_stocktensor.py --verify-receipt "$demo_dir/result.json" --wallet "$SILT_WALLET_BIN"
The run checks canonical block hashes, balances, custody and grade receipts while its nodes are live. After shutdown, the last command rechecks the signed enrollment and forecasts, the grade binding and reward arithmetic. For a long-running port, connect the upstream workers to persistent storage, a real price feed and the public network’s endpoints. Keep the disposable node’s genesis and keys separate.
What the participants earned
Four chain validators and an observer finalized the first NPoS block at height 33 on this disposable network. The owner then registered STOCK for 1 SILT and paid a separate 0.001 SILT fee. The upstream validator graded three signed forecasts. Its Silt weight transaction finalized at height 64. The period settled at height 70 and issued 2.5 STOCK.
| Participant | Change at settlement |
|---|---|
| Miner’s staking position | +1.025 STOCK |
| Validator’s own position | +1.014207002 STOCK |
| Independent staker’s position | +0.010792998 STOCK |
| Subnet owner’s free balance | +0.45 STOCK |
The staker originally delegated 0.02 STOCK. Its shares were initially redeemable for 0.019999999 STOCK because the share calculation rounds to whole grains. At height 71, the staker unstaked its whole position. Both sides of the STOCK/SILT book were empty before and after the transaction. The free-balance command at height 72 showed 0.030792997 spendable STOCK, and the position was empty. The staker paid its transaction fee in SILT. Signed work, finalized grade, balances and unstake receipt