{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fastnear/json-schema/fastnear-json-rpc-response-status-schema.json",
  "title": "JsonRpcResponse_status",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fastnear-openapi.yaml#/components/schemas/JsonRpcResponse_status",
  "type": "object",
  "required": [
    "jsonrpc",
    "id"
  ],
  "properties": {
    "jsonrpc": {
      "type": "string",
      "enum": [
        "2.0"
      ]
    },
    "id": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ]
    },
    "result": {
      "type": "object",
      "properties": {
        "chain_id": {
          "type": "string",
          "description": "Unique chain id."
        },
        "detailed_debug_status": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "block_production_delay_millis": {
              "type": "integer",
              "format": "uint64",
              "minimum": 0
            },
            "catchup_status": {
              "type": "array",
              "items": {
                "type": "object"
              }
            },
            "current_head_status": {
              "type": "object",
              "description": "Height and hash of a block"
            },
            "current_header_head_status": {
              "type": "object",
              "description": "Height and hash of a block"
            },
            "network_info": {
              "type": "object"
            },
            "sync_status": {
              "type": "string"
            }
          },
          "required": [
            "network_info",
            "sync_status",
            "catchup_status",
            "current_head_status",
            "current_header_head_status",
            "block_production_delay_millis"
          ]
        },
        "genesis_hash": {
          "type": "string",
          "description": "Base58-encoded hash"
        },
        "latest_protocol_version": {
          "type": "integer",
          "description": "Latest protocol version that this client supports.",
          "format": "uint32",
          "minimum": 0
        },
        "node_key": {
          "type": [
            "string",
            "null"
          ],
          "description": "Public key with its type prefix: ed25519:, secp256k1:, or the full ml-dsa-65: key (never the ml-dsa-65-hash: handle)."
        },
        "node_public_key": {
          "type": "string",
          "description": "Public key with its type prefix: ed25519:, secp256k1:, or the full ml-dsa-65: key (never the ml-dsa-65-hash: handle)."
        },
        "protocol_version": {
          "type": "integer",
          "description": "Currently active protocol version.",
          "format": "uint32",
          "minimum": 0
        },
        "rpc_addr": {
          "type": [
            "string",
            "null"
          ],
          "description": "Address for RPC server.  None if node doesn't have RPC endpoint enabled."
        },
        "sync_info": {
          "type": "object",
          "properties": {
            "earliest_block_hash": {
              "type": [
                "string",
                "null"
              ],
              "description": "Base58-encoded hash"
            },
            "earliest_block_height": {
              "type": [
                "integer",
                "null"
              ],
              "format": "uint64",
              "minimum": 0
            },
            "earliest_block_time": {
              "type": [
                "string",
                "null"
              ]
            },
            "epoch_id": {
              "type": [
                "string",
                "null"
              ],
              "description": "Base58-encoded epoch identifier hash"
            },
            "epoch_start_height": {
              "type": [
                "integer",
                "null"
              ],
              "format": "uint64",
              "minimum": 0
            },
            "latest_block_hash": {
              "type": "string",
              "description": "Base58-encoded hash"
            },
            "latest_block_height": {
              "type": "integer",
              "format": "uint64",
              "minimum": 0
            },
            "latest_block_time": {
              "type": "string"
            },
            "latest_state_root": {
              "type": "string",
              "description": "Base58-encoded hash"
            },
            "syncing": {
              "type": "boolean"
            }
          },
          "required": [
            "latest_block_hash",
            "latest_block_height",
            "latest_state_root",
            "latest_block_time",
            "syncing"
          ],
          "description": "Sync status of the node."
        },
        "uptime_sec": {
          "type": "integer",
          "description": "Uptime of the node.",
          "format": "int64"
        },
        "validator_account_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "NEAR account ID"
        },
        "validator_public_key": {
          "type": [
            "string",
            "null"
          ],
          "description": "Public key with its type prefix: ed25519:, secp256k1:, or the full ml-dsa-65: key (never the ml-dsa-65-hash: handle)."
        },
        "validators": {
          "type": "array",
          "items": {
            "type": "object"
          },
          "description": "Current epoch validators."
        },
        "version": {
          "type": "object",
          "description": "Data structure for semver version and github tag or commit.",
          "properties": {
            "build": {
              "type": "string"
            },
            "commit": {
              "type": "string"
            },
            "rustc_version": {
              "type": "string",
              "default": ""
            },
            "version": {
              "type": "string"
            }
          },
          "required": [
            "version",
            "build",
            "commit"
          ]
        }
      },
      "required": [
        "version",
        "chain_id",
        "protocol_version",
        "latest_protocol_version",
        "validators",
        "sync_info",
        "node_public_key",
        "uptime_sec",
        "genesis_hash"
      ]
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "data": {
          "type": "object"
        }
      }
    }
  }
}