system_version - JSON-RPC Method
Description
Returns the software version string reported by the connected Enjin Matrix node. Pair this with system_chain
and state_getRuntimeVersion
to capture both node and runtime metadata in your diagnostics.
Parameters
This method does not take any parameters.
Returns
Field | Type | Description |
---|---|---|
result | string | Node version identifier |
Request Example
{
"jsonrpc": "2.0",
"method": "system_version",
"params": [],
"id": 1
}
Response Example
{
"jsonrpc": "2.0",
"result": "1.3.0-3bea00e2d8a",
"id": 1
}
Code Examples
cURL
curl https://api-enjin-matrixchain.n.dwellir.com/YOUR_API_KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "system_version",
"params": [],
"id": 1
}'
JavaScript
const fetchVersion = async () => {
const response = await fetch('https://api-enjin-matrixchain.n.dwellir.com/YOUR_API_KEY', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
method: 'system_version',
params: [],
id: 1
})
});
const { result } = await response.json();
console.log(`Node version: ${result}`);
};
Python
import json
import requests
payload = {
"jsonrpc": "2.0",
"method": "system_version",
"params": [],
"id": 1,
}
version = requests.post(
"https://api-enjin-matrixchain.n.dwellir.com/YOUR_API_KEY",
headers={"Content-Type": "application/json"},
data=json.dumps(payload),
timeout=10,
).json()["result"]
print(f"Enjin Matrix node version: {version}")
Operational Tips
- Record the node version alongside runtime spec/transaction versions for change management.
- Detect mismatched binaries across your node fleet by comparing this string over time.
- Combine with
system_name
to differentiate between Enjin Relaychain and Matrixchain nodes.