NeuronCertificates
Storage Map v205 → v490 · 1 shape changeTLS /SSL certificates for neurons.
Explore chainThe Big Picture
Neurons can register certificates for secure communication. This enables encrypted connections between validators and miners. Essential for production deployments.
Use Cases
- Retrieve neuron certificates for secure connections
- Verify neuron identity
- Build secure communication tools
From Chain Metadata
MAP ( netuid, hotkey ) --> certificate
Purpose & Usage
Purpose
Store certificates for secure neuron communication.
Common Query Patterns
- Query by (netuid, hotkey)
Migration Notes
key type changed from (u16, AccountId) to (NetUid, AccountId)
Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.
Query Keys
Stored Value
certificate (NeuronCertificate)
Default Value
Optional storage: querying a key that has never been written returns no value (None) — do not assume a zero default.
Relationships
Modified By
Code Examples
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Query NeuronCertificates storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.NeuronCertificates.getValue(netuid, hotkey);
console.log("NeuronCertificates:", result);On-Chain Activity
100K to 1M writes
#158 most written storage item
Modified by both user extrinsics and runtime hooks
As of block 9,385,000
Version History
- key :
(u16, AccountId)→(NetUid, AccountId)
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v205
- Current Version
- v490