Get runtime version
POST
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the version information of the runtime.
The state_getRuntimeVersion method provides detailed version information about the current runtime, including spec version, transaction version, and supported APIs. This information is crucial for compatibility checking and ensuring clients interact correctly with the chain.
This method is essential for:
- Client compatibility verification
- Runtime upgrade detection
- Transaction version validation
- Network protocol compatibility
Body
application/json
jsonrpcstring2.0requiredJSON-RPC version identifier
methodstringstate_getRuntimeVersionrequiredThe method to be invoked
idinteger | stringrequiredRequest identifier for matching responses
paramsArray<string>requiredOptional parameters array. Can be empty or contain an optional block hash for historical runtime version.
Response
200OK
Runtime version information retrieved successfully
400Bad Request
Invalid block hash or request
500Internal Server Error
Internal server error