chain_getRuntimeVersion - JSON-RPC Method
Get runtime specification and transaction versions for Bittensor via chain_getRuntimeVersion.
Bittensor RPC endpoint: endpoint URLs, plans and pricing.
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
{
"jsonrpc": "2.0",
"method": "chain_getRuntimeVersion",
"params": [],
"id": 1
}