system_version - Midnight

Example code for the system_version JSON-RPC method. Complete guide on how to use system_version JSON-RPC in GetBlock Web3 documentation.

This method returns the version string of the node implementation. For Midnight this identifies the underlying midnight-node build.

Parameters

  • None

Request Example

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "system_version",
    "params": [],
    "id": "getblock.io"
}'

Response Example

{
    "jsonrpc": "2.0",
    "id": "getblock.io",
    "result": "0.13.2-3a5f1c1"
}

Response Parameters

Field
Type
Description

result

string

Node implementation version string

Use Cases

  • Capability detection — feature availability varies by node version

  • Logging and debugging in multi-provider environments

  • Compatibility checks in tooling

Error Handling

Status Code
Error Message
Cause

403

Forbidden

Missing or invalid <ACCESS-TOKEN>

-32602

Invalid params

Request parameters are missing or malformed

429

Too Many Requests

Rate limit exceeded for your plan

SDK Integration

Last updated

Was this helpful?