Hyperledger · Schema

JsonRpcRequest

BlockchainDistributed LedgerEnterpriseLinux FoundationSmart Contracts

Properties

Name Type Description
jsonrpc string
method string Method name, e.g. `eth_blockNumber`, `admin_peers`, `debug_traceTransaction`, `net_version`, `web3_clientVersion`, `txpool_status`, `trace_block`.
params array
id object
View JSON Schema on GitHub

JSON Schema

hyperledger-jsonrpcrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/JsonRpcRequest",
  "title": "JsonRpcRequest",
  "type": "object",
  "required": [
    "jsonrpc",
    "method",
    "id"
  ],
  "properties": {
    "jsonrpc": {
      "type": "string",
      "enum": [
        "2.0"
      ]
    },
    "method": {
      "type": "string",
      "description": "Method name, e.g. `eth_blockNumber`, `admin_peers`, `debug_traceTransaction`, `net_version`, `web3_clientVersion`, `txpool_status`, `trace_block`.",
      "examples": [
        "eth_blockNumber",
        "eth_getBalance",
        "eth_sendRawTransaction",
        "admin_peers",
        "admin_nodeInfo",
        "debug_traceTransaction",
        "net_version",
        "web3_clientVersion",
        "txpool_status",
        "trace_block"
      ]
    },
    "params": {
      "type": "array",
      "items": {}
    },
    "id": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ]
    }
  }
}