NeuronCertificate
Composite 444 v393pallet_subtensor::pallet::NeuronCertificate
About This Type
Structured type: NeuronCertificate.
A struct-like type where each field is encoded in declaration order.
Encoding: Fields encoded consecutively in declaration order, no field names or separators.
Fields (2)
| # | Name | Type |
|---|---|---|
| 0 | public_key | BoundedVec |
| 1 | algorithm | u8 |
SCALE Encoding
- Rule
- 2 fields encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 2 fields = public_key: BoundedVec, algorithm: u8
0x<field0><field1>field 0 public_key: BoundedVecfield 1 algorithm: u8Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode NeuronCertificate
const value = registry.createType("NeuronCertificate", {
public_key: 0,
algorithm: 42
});
console.log("Hex:", value.toHex());Type Information
- Type ID
- 444
- Kind
- Composite
- Path
- pallet_subtensor::pallet::NeuronCertificate
- Runtime
- v393