Hyperledger · Schema

JsonRpcResponse

BlockchainDistributed LedgerEnterpriseLinux FoundationSmart Contracts

Properties

Name Type Description
jsonrpc string
id object
result object
error object
View JSON Schema on GitHub

JSON Schema

hyperledger-jsonrpcresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/JsonRpcResponse",
  "title": "JsonRpcResponse",
  "type": "object",
  "required": [
    "jsonrpc",
    "id"
  ],
  "properties": {
    "jsonrpc": {
      "type": "string",
      "enum": [
        "2.0"
      ]
    },
    "id": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ]
    },
    "result": {},
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "data": {}
      }
    }
  }
}