{
  "swagger": "2.0",
  "info": {
    "title": "ledger.proto",
    "version": "version not set"
  },
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "paths": {
    "/ledger/accountBlocksCount": {
      "get": {
        "operationId": "LedgerAPI_AccountBlocksCount",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoInt64"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/accountHistoryTopn": {
      "get": {
        "operationId": "LedgerAPI_AccountHistoryTopn",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoAPIBlocks"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int32"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int32"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/accountInfo": {
      "get": {
        "operationId": "LedgerAPI_AccountInfo",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoAPIAccount"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/accountRepresentative": {
      "get": {
        "operationId": "LedgerAPI_AccountRepresentative",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesAddress"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/accountVotingWeight": {
      "get": {
        "operationId": "LedgerAPI_AccountVotingWeight",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesBalance"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/accounts": {
      "get": {
        "operationId": "LedgerAPI_Accounts",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesAddresses"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "count",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int32"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int32"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/accountsBalance": {
      "get": {
        "operationId": "LedgerAPI_AccountsBalance",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoAccountsBalanceRsp"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "addresses",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/accountsCount": {
      "get": {
        "operationId": "LedgerAPI_AccountsCount",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoUInt64"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/accountsFrontiers": {
      "get": {
        "operationId": "LedgerAPI_AccountsFrontiers",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoAccountsFrontiersRsp"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "addresses",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/accountsPending": {
      "get": {
        "operationId": "LedgerAPI_AccountsPending",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoAccountsPendingRsp"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "addresses",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int32"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/allGenesisBlocks": {
      "get": {
        "operationId": "LedgerAPI_AllGenesisBlocks",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesStateBlocks"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/balanceChange": {
      "get": {
        "operationId": "LedgerAPI_BalanceChange",
        "responses": {
          "200": {
            "description": "A successful response.(streaming responses)",
            "schema": {
              "type": "object",
              "properties": {
                "result": {
                  "$ref": "#/definitions/protoAPIAccount"
                },
                "error": {
                  "$ref": "#/definitions/runtimeStreamError"
                }
              },
              "title": "Stream result of protoAPIAccount"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/blockAccount": {
      "get": {
        "operationId": "LedgerAPI_BlockAccount",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesAddress"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "hash",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/blockConfirmedStatus": {
      "get": {
        "operationId": "LedgerAPI_BlockConfirmedStatus",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoBoolean"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "hash",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/blockHash": {
      "get": {
        "operationId": "LedgerAPI_BlockHash",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesHash"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "address",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "balance",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "int64"
          },
          {
            "name": "vote",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "int64"
          },
          {
            "name": "network",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "int64"
          },
          {
            "name": "storage",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "int64"
          },
          {
            "name": "oracle",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "int64"
          },
          {
            "name": "previous",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "link",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sender",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "byte"
          },
          {
            "name": "receiver",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "byte"
          },
          {
            "name": "message",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "data",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "byte"
          },
          {
            "name": "poVHeight",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "timestamp",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "int64"
          },
          {
            "name": "extra",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "representative",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "privateFrom",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "privateFor",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "privateGroupID",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "work",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "signature",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/blocks": {
      "get": {
        "operationId": "LedgerAPI_Blocks",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoAPIBlocks"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "count",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int32"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int32"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/blocksCount": {
      "get": {
        "operationId": "LedgerAPI_BlocksCount",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoBlocksCountRsp"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/blocksCount2": {
      "get": {
        "operationId": "LedgerAPI_BlocksCount2",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoBlocksCountRsp"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/blocksCountByType": {
      "get": {
        "operationId": "LedgerAPI_BlocksCountByType",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoBlocksCountRsp"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/blocksInfo": {
      "get": {
        "operationId": "LedgerAPI_BlocksInfo",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoAPIBlocks"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "hashes",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/chain": {
      "get": {
        "operationId": "LedgerAPI_Chain",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesHashes"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "hash",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int32"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/chainToken": {
      "get": {
        "operationId": "LedgerAPI_ChainToken",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesHash"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/confirmedAccountInfo": {
      "get": {
        "operationId": "LedgerAPI_ConfirmedAccountInfo",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoAPIAccount"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/confirmedBlocksInfo": {
      "get": {
        "operationId": "LedgerAPI_ConfirmedBlocksInfo",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoAPIBlocks"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "hashes",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/delegators": {
      "get": {
        "operationId": "LedgerAPI_Delegators",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoAPIAccountBalances"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/delegatorsCount": {
      "get": {
        "operationId": "LedgerAPI_DelegatorsCount",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoInt64"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/gasAddress": {
      "get": {
        "operationId": "LedgerAPI_GasAddress",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesAddress"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/gasBlock": {
      "get": {
        "operationId": "LedgerAPI_GasBlock",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesStateBlock"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/gasBlockHash": {
      "get": {
        "operationId": "LedgerAPI_GasBlockHash",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesHash"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/gasMintageBlock": {
      "get": {
        "operationId": "LedgerAPI_GasMintageBlock",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesStateBlock"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/gasToken": {
      "get": {
        "operationId": "LedgerAPI_GasToken",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesHash"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/generateChangeBlock": {
      "post": {
        "operationId": "LedgerAPI_GenerateChangeBlock",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesStateBlock"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/protoGenerateChangeBlockReq"
            }
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/generateReceiveBlock": {
      "post": {
        "operationId": "LedgerAPI_GenerateReceiveBlock",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesStateBlock"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/protoGenerateReceiveBlockReq"
            }
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/generateReceiveBlockByHash": {
      "post": {
        "operationId": "LedgerAPI_GenerateReceiveBlockByHash",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesStateBlock"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/protoGenerateReceiveBlockByHashReq"
            }
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/generateSendBlock": {
      "post": {
        "operationId": "LedgerAPI_GenerateSendBlock",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesStateBlock"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/protoGenerateSendBlockReq"
            }
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/genesisAddress": {
      "get": {
        "operationId": "LedgerAPI_GenesisAddress",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesAddress"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/genesisBlock": {
      "get": {
        "operationId": "LedgerAPI_GenesisBlock",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesStateBlock"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/genesisBlockHash": {
      "get": {
        "operationId": "LedgerAPI_GenesisBlockHash",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesHash"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/genesisMintageBlock": {
      "get": {
        "operationId": "LedgerAPI_GenesisMintageBlock",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesStateBlock"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/genesisMintageHash": {
      "get": {
        "operationId": "LedgerAPI_GenesisMintageHash",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesHash"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/getAccountOnlineBlock": {
      "get": {
        "operationId": "LedgerAPI_GetAccountOnlineBlock",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesStateBlocks"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/isGenesisBlock": {
      "get": {
        "operationId": "LedgerAPI_IsGenesisBlock",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoBoolean"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "address",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "balance",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "int64"
          },
          {
            "name": "vote",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "int64"
          },
          {
            "name": "network",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "int64"
          },
          {
            "name": "storage",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "int64"
          },
          {
            "name": "oracle",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "int64"
          },
          {
            "name": "previous",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "link",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "sender",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "byte"
          },
          {
            "name": "receiver",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "byte"
          },
          {
            "name": "message",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "data",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "byte"
          },
          {
            "name": "poVHeight",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "timestamp",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "int64"
          },
          {
            "name": "extra",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "representative",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "privateFrom",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "privateFor",
            "in": "query",
            "required": false,
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "multi"
          },
          {
            "name": "privateGroupID",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "work",
            "in": "query",
            "required": false,
            "type": "string",
            "format": "uint64"
          },
          {
            "name": "signature",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/isGenesisToken": {
      "get": {
        "operationId": "LedgerAPI_IsGenesisToken",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoBoolean"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "hash",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/newAccountBlock": {
      "get": {
        "operationId": "LedgerAPI_NewAccountBlock",
        "responses": {
          "200": {
            "description": "A successful response.(streaming responses)",
            "schema": {
              "type": "object",
              "properties": {
                "result": {
                  "$ref": "#/definitions/protoAPIBlock"
                },
                "error": {
                  "$ref": "#/definitions/runtimeStreamError"
                }
              },
              "title": "Stream result of protoAPIBlock"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/newBlock": {
      "get": {
        "operationId": "LedgerAPI_NewBlock",
        "responses": {
          "200": {
            "description": "A successful response.(streaming responses)",
            "schema": {
              "type": "object",
              "properties": {
                "result": {
                  "$ref": "#/definitions/protoAPIBlock"
                },
                "error": {
                  "$ref": "#/definitions/runtimeStreamError"
                }
              },
              "title": "Stream result of protoAPIBlock"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/newPending": {
      "get": {
        "operationId": "LedgerAPI_NewPending",
        "responses": {
          "200": {
            "description": "A successful response.(streaming responses)",
            "schema": {
              "type": "object",
              "properties": {
                "result": {
                  "$ref": "#/definitions/protoAPIPending"
                },
                "error": {
                  "$ref": "#/definitions/runtimeStreamError"
                }
              },
              "title": "Stream result of protoAPIPending"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/pendings": {
      "get": {
        "operationId": "LedgerAPI_Pendings",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoAPIPendings"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/process": {
      "post": {
        "operationId": "LedgerAPI_Process",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesHash"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/typesStateBlock"
            }
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/representatives": {
      "get": {
        "operationId": "LedgerAPI_Representatives",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoAPIRepresentatives"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "value",
            "in": "query",
            "required": false,
            "type": "boolean",
            "format": "boolean"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/tokenInfoById": {
      "get": {
        "operationId": "LedgerAPI_TokenInfoById",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesTokenInfo"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "hash",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/tokenInfoByName": {
      "get": {
        "operationId": "LedgerAPI_TokenInfoByName",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesTokenInfo"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "parameters": [
          {
            "name": "value",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/tokens": {
      "get": {
        "operationId": "LedgerAPI_Tokens",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/typesTokenInfos"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    },
    "/ledger/transactionsCount": {
      "get": {
        "operationId": "LedgerAPI_TransactionsCount",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/protoBlocksCountRsp"
            }
          },
          "default": {
            "description": "An unexpected error response",
            "schema": {
              "$ref": "#/definitions/runtimeError"
            }
          }
        },
        "tags": [
          "LedgerAPI"
        ]
      }
    }
  },
  "definitions": {
    "APIAccountBalancesAPIAccountBalance": {
      "type": "object",
      "properties": {
        "Address": {
          "type": "string"
        },
        "Balance": {
          "type": "string",
          "format": "int64"
        }
      }
    },
    "AccountsBalanceRspAPIAccountsBalance": {
      "type": "object",
      "properties": {
        "Balance": {
          "type": "string",
          "format": "int64"
        },
        "Vote": {
          "type": "string",
          "format": "int64"
        },
        "Network": {
          "type": "string",
          "format": "int64"
        },
        "Storage": {
          "type": "string",
          "format": "int64"
        },
        "Oracle": {
          "type": "string",
          "format": "int64"
        },
        "Pending": {
          "type": "string",
          "format": "int64"
        }
      }
    },
    "AccountsBalanceRspbalances": {
      "type": "object",
      "properties": {
        "balances": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/AccountsBalanceRspAPIAccountsBalance"
          }
        }
      }
    },
    "AccountsFrontiersRspfrontier": {
      "type": "object",
      "properties": {
        "frontier": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "protoAPIAccount": {
      "type": "object",
      "properties": {
        "address": {
          "type": "string"
        },
        "coinBalance": {
          "type": "string",
          "format": "int64"
        },
        "coinVote": {
          "type": "string",
          "format": "int64"
        },
        "coinNetwork": {
          "type": "string",
          "format": "int64"
        },
        "coinStorage": {
          "type": "string",
          "format": "int64"
        },
        "coinOracle": {
          "type": "string",
          "format": "int64"
        },
        "representative": {
          "type": "string"
        },
        "tokens": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/protoAPITokenMeta"
          }
        }
      }
    },
    "protoAPIAccountBalances": {
      "type": "object",
      "properties": {
        "balances": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/APIAccountBalancesAPIAccountBalance"
          }
        }
      }
    },
    "protoAPIBlock": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "token": {
          "type": "string"
        },
        "address": {
          "type": "string"
        },
        "balance": {
          "type": "string",
          "format": "int64"
        },
        "vote": {
          "type": "string",
          "format": "int64"
        },
        "network": {
          "type": "string",
          "format": "int64"
        },
        "storage": {
          "type": "string",
          "format": "int64"
        },
        "oracle": {
          "type": "string",
          "format": "int64"
        },
        "previous": {
          "type": "string"
        },
        "link": {
          "type": "string"
        },
        "sender": {
          "type": "string",
          "format": "byte"
        },
        "receiver": {
          "type": "string",
          "format": "byte"
        },
        "message": {
          "type": "string"
        },
        "data": {
          "type": "string",
          "format": "byte"
        },
        "poVHeight": {
          "type": "string",
          "format": "uint64"
        },
        "timestamp": {
          "type": "string",
          "format": "int64"
        },
        "extra": {
          "type": "string"
        },
        "representative": {
          "type": "string"
        },
        "privateFrom": {
          "type": "string"
        },
        "privateFor": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "privateGroupID": {
          "type": "string"
        },
        "work": {
          "type": "string",
          "format": "uint64"
        },
        "signature": {
          "type": "string"
        },
        "tokenName": {
          "type": "string"
        },
        "amount": {
          "type": "string",
          "format": "int64"
        },
        "hash": {
          "type": "string"
        },
        "povConfirmHeight": {
          "type": "string",
          "format": "uint64"
        },
        "povConfirmCount": {
          "type": "string",
          "format": "uint64"
        }
      }
    },
    "protoAPIBlocks": {
      "type": "object",
      "properties": {
        "blocks": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/protoAPIBlock"
          }
        }
      }
    },
    "protoAPIPending": {
      "type": "object",
      "properties": {
        "address": {
          "type": "string"
        },
        "hash": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "amount": {
          "type": "string",
          "format": "int64"
        },
        "type": {
          "type": "string"
        },
        "TokenName": {
          "type": "string"
        },
        "Timestamp": {
          "type": "string",
          "format": "int64"
        },
        "BlockType": {
          "type": "string"
        }
      }
    },
    "protoAPIPendings": {
      "type": "object",
      "properties": {
        "pendings": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/protoAPIPending"
          }
        }
      }
    },
    "protoAPIRepresentative": {
      "type": "object",
      "properties": {
        "Address": {
          "type": "string"
        },
        "Balance": {
          "type": "string",
          "format": "int64"
        },
        "Vote": {
          "type": "string",
          "format": "int64"
        },
        "Network": {
          "type": "string",
          "format": "int64"
        },
        "Storage": {
          "type": "string",
          "format": "int64"
        },
        "Oracle": {
          "type": "string",
          "format": "int64"
        },
        "Total": {
          "type": "string",
          "format": "int64"
        }
      }
    },
    "protoAPIRepresentatives": {
      "type": "object",
      "properties": {
        "representatives": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/protoAPIRepresentative"
          }
        }
      }
    },
    "protoAPISendBlockPara": {
      "type": "object",
      "properties": {
        "From": {
          "type": "string"
        },
        "TokenName": {
          "type": "string"
        },
        "To": {
          "type": "string"
        },
        "Amount": {
          "type": "string",
          "format": "int64"
        },
        "Sender": {
          "type": "string"
        },
        "Receiver": {
          "type": "string"
        },
        "Message": {
          "type": "string"
        }
      }
    },
    "protoAPITokenMeta": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "header": {
          "type": "string"
        },
        "representative": {
          "type": "string"
        },
        "openBlock": {
          "type": "string"
        },
        "balance": {
          "type": "string",
          "format": "int64"
        },
        "belongTo": {
          "type": "string"
        },
        "modified": {
          "type": "string",
          "format": "int64"
        },
        "blockCount": {
          "type": "string",
          "format": "int64"
        },
        "tokenName": {
          "type": "string"
        },
        "pending": {
          "type": "string",
          "format": "int64"
        }
      }
    },
    "protoAccountsBalanceRsp": {
      "type": "object",
      "properties": {
        "accountsBalances": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/AccountsBalanceRspbalances"
          }
        }
      }
    },
    "protoAccountsFrontiersRsp": {
      "type": "object",
      "properties": {
        "accountsFrontiers": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/AccountsFrontiersRspfrontier"
          }
        }
      }
    },
    "protoAccountsPendingRsp": {
      "type": "object",
      "properties": {
        "accountsPendings": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/protoAPIPendings"
          }
        }
      }
    },
    "protoBlocksCountRsp": {
      "type": "object",
      "properties": {
        "count": {
          "type": "object",
          "additionalProperties": {
            "type": "string",
            "format": "uint64"
          }
        }
      }
    },
    "protoBoolean": {
      "type": "object",
      "properties": {
        "value": {
          "type": "boolean",
          "format": "boolean"
        }
      }
    },
    "protoGenerateChangeBlockReq": {
      "type": "object",
      "properties": {
        "account": {
          "type": "string"
        },
        "representative": {
          "type": "string"
        },
        "prkStr": {
          "type": "string"
        }
      }
    },
    "protoGenerateReceiveBlockByHashReq": {
      "type": "object",
      "properties": {
        "hash": {
          "type": "string"
        },
        "prkStr": {
          "type": "string"
        }
      }
    },
    "protoGenerateReceiveBlockReq": {
      "type": "object",
      "properties": {
        "block": {
          "$ref": "#/definitions/typesStateBlock"
        },
        "prkStr": {
          "type": "string"
        }
      }
    },
    "protoGenerateSendBlockReq": {
      "type": "object",
      "properties": {
        "param": {
          "$ref": "#/definitions/protoAPISendBlockPara"
        },
        "prkStr": {
          "type": "string"
        }
      }
    },
    "protoInt64": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "format": "int64"
        }
      }
    },
    "protoUInt64": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "format": "uint64"
        }
      }
    },
    "protobufAny": {
      "type": "object",
      "properties": {
        "type_url": {
          "type": "string"
        },
        "value": {
          "type": "string",
          "format": "byte"
        }
      }
    },
    "runtimeError": {
      "type": "object",
      "properties": {
        "error": {
          "type": "string"
        },
        "code": {
          "type": "integer",
          "format": "int32"
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/protobufAny"
          }
        }
      }
    },
    "runtimeStreamError": {
      "type": "object",
      "properties": {
        "grpc_code": {
          "type": "integer",
          "format": "int32"
        },
        "http_code": {
          "type": "integer",
          "format": "int32"
        },
        "message": {
          "type": "string"
        },
        "http_status": {
          "type": "string"
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/protobufAny"
          }
        }
      }
    },
    "typesAddress": {
      "type": "object",
      "properties": {
        "address": {
          "type": "string"
        }
      }
    },
    "typesAddresses": {
      "type": "object",
      "properties": {
        "addresses": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "typesBalance": {
      "type": "object",
      "properties": {
        "balance": {
          "type": "string",
          "format": "int64"
        }
      }
    },
    "typesHash": {
      "type": "object",
      "properties": {
        "hash": {
          "type": "string"
        }
      }
    },
    "typesHashes": {
      "type": "object",
      "properties": {
        "hashes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "typesStateBlock": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "token": {
          "type": "string"
        },
        "address": {
          "type": "string"
        },
        "balance": {
          "type": "string",
          "format": "int64"
        },
        "vote": {
          "type": "string",
          "format": "int64"
        },
        "network": {
          "type": "string",
          "format": "int64"
        },
        "storage": {
          "type": "string",
          "format": "int64"
        },
        "oracle": {
          "type": "string",
          "format": "int64"
        },
        "previous": {
          "type": "string"
        },
        "link": {
          "type": "string"
        },
        "sender": {
          "type": "string",
          "format": "byte"
        },
        "receiver": {
          "type": "string",
          "format": "byte"
        },
        "message": {
          "type": "string"
        },
        "data": {
          "type": "string",
          "format": "byte"
        },
        "poVHeight": {
          "type": "string",
          "format": "uint64"
        },
        "timestamp": {
          "type": "string",
          "format": "int64"
        },
        "extra": {
          "type": "string"
        },
        "representative": {
          "type": "string"
        },
        "privateFrom": {
          "type": "string"
        },
        "privateFor": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "privateGroupID": {
          "type": "string"
        },
        "work": {
          "type": "string",
          "format": "uint64"
        },
        "signature": {
          "type": "string"
        }
      }
    },
    "typesStateBlocks": {
      "type": "object",
      "properties": {
        "stateBlocks": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/typesStateBlock"
          }
        }
      }
    },
    "typesTokenInfo": {
      "type": "object",
      "properties": {
        "tokenId": {
          "type": "string"
        },
        "tokenName": {
          "type": "string"
        },
        "tokenSymbol": {
          "type": "string"
        },
        "totalSupply": {
          "type": "string",
          "format": "int64"
        },
        "decimals": {
          "type": "integer",
          "format": "int32"
        },
        "owner": {
          "type": "string"
        },
        "pledgeAmount": {
          "type": "string",
          "format": "int64"
        },
        "withdrawTime": {
          "type": "string",
          "format": "int64"
        },
        "pledgeAddress": {
          "type": "string"
        },
        "NEP5TxId": {
          "type": "string"
        }
      }
    },
    "typesTokenInfos": {
      "type": "object",
      "properties": {
        "tokenInfos": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/typesTokenInfo"
          }
        }
      }
    }
  }
}