RuntimeVersion

data class RuntimeVersion(val specName: String, val specVersion: Long, val implName: String? = null, val implVersion: Long? = null, val transactionVersion: Long? = null)

The node's reported runtime version, from Substrate's state_getRuntimeVersion.

Substrate's runtime version doesn't carry the midnight-ledger semver directly; the most useful signal for a ledger-coherence check is specName + specVersion (e.g. the runtime bumps specVersion on a ledger-affecting upgrade). The raw values are kept so the host can decide how to map them to a known-compatible set.

Constructors

Link copied to clipboard
constructor(specName: String, specVersion: Long, implName: String? = null, implVersion: Long? = null, transactionVersion: Long? = null)

Properties

Link copied to clipboard
val implName: String? = null

Runtime implementation name.

Link copied to clipboard
val implVersion: Long? = null

Runtime implementation version.

Link copied to clipboard

Runtime spec name (e.g. "midnight").

Link copied to clipboard

Runtime spec version (monotonic; bumped on runtime upgrades).

Link copied to clipboard

Extrinsic format version (changes when the tx encoding changes).