getRuntimeVersion

abstract suspend fun getRuntimeVersion(): RuntimeVersion

The node's runtime version (standard Substrate RPC: state_getRuntimeVersion).

Used by the host's one-time version-coherence check (see the SDK's pre-flight) to compare the node's runtime against the client's bundled ledger version, so a client built behind the chain warns loudly instead of silently mis-decoding ops.

Return

the parsed RuntimeVersion

Throws

if network connectivity fails

if request times out

if node returns JSON-RPC error

if response is malformed