Docs

chain_getRuntimeVersion - JSON-RPC Method

Get runtime specification and transaction versions for Bittensor via chain_getRuntimeVersion.

Returns the current runtime specification and transaction version for the node. As a developer, you use this to:

  • Detect runtime upgrades and adjust clients accordingly (e.g., refresh metadata).
  • Ensure your transaction building/signing logic matches the node’s transactionVersion.
  • Gate feature flags or migrations based on specName/specVersion (e.g., API changes between releases).

Code Examples

On this page