ApiVersion
Composite 541 v411pallet_contracts::ApiVersion
About This Type
Structured type: ApiVersion.
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 (1)
| # | Name | Type |
|---|---|---|
| 0 | (unnamed) | u16 |
SCALE Encoding
- Rule
- 1 field encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 1 field = ?: u16
0x<field0>field 0 field0: u16Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode ApiVersion
const value = registry.createType("ApiVersion", {
field: 1
});
console.log("Hex:", value.toHex());Type Information
- Type ID
- 541
- Kind
- Composite
- Path
- pallet_contracts::ApiVersion
- Runtime
- v411