github.com/franono/tendermint@v0.32.2-0.20200527150959-749313264ce9/rpc/swagger/swagger.yaml (about)

     1  openapi: 3.0.0
     2  info:
     3    title: RPC client for Tendermint
     4    description: A REST interface for state queries, transaction generation and broadcasting.
     5    version: "Master"
     6    license:
     7      name: Apache 2.0
     8      url: https://github.com/franono/tendermint/blob/master/LICENSE
     9  servers:
    10    - url: https://rpc.cosmos.network
    11      description: Cosmos mainnet node to interact with the Tendermint RPC
    12    - url: http://localhost:26657
    13      description: Interact with the Tendermint RPC locally on your device
    14  tags:
    15    - name: Websocket
    16      description: Subscribe/unsubscribe are reserved for websocket events.
    17    - name: Info
    18      description: Informations about the node APIs
    19    - name: Tx
    20      description: Transactions broadcast APIs
    21    - name: ABCI
    22      description: ABCI APIs
    23    - name: Evidence
    24      description: Evidence APIs
    25  paths:
    26    /broadcast_tx_sync:
    27      get:
    28        summary: Returns with the response from CheckTx. Does not wait for DeliverTx result.
    29        tags:
    30          - Tx
    31        operationId: broadcast_tx_sync
    32        description: |
    33          If you want to be sure that the transaction is included in a block, you can
    34          subscribe for the result using JSONRPC via a websocket. See
    35          https://docs.tendermint.com/master/app-dev/subscribing-to-events-via-websocket.html
    36          If you haven't received anything after a couple of blocks, resend it. If the
    37          same happens again, send it to some other node. A few reasons why it could
    38          happen:
    39  
    40          1. malicious node can drop or pretend it had committed your tx
    41          2. malicious proposer (not necessary the one you're communicating with) can
    42          drop transactions, which might become valid in the future
    43          (https://github.com/franono/tendermint/issues/3322)
    44  
    45  
    46          Please refer to
    47          https://docs.tendermint.com/master/tendermint-core/using-tendermint.html#formatting
    48          for formatting/encoding rules.
    49        parameters:
    50          - in: query
    51            name: tx
    52            required: true
    53            schema:
    54              type: string
    55              example: "456"
    56            description: The transaction
    57        responses:
    58          200:
    59            description: Empty
    60            content:
    61              application/json:
    62                schema:
    63                  $ref: "#/components/schemas/BroadcastTxResponse"
    64          500:
    65            description: Error
    66            content:
    67              application/json:
    68                schema:
    69                  $ref: "#/components/schemas/ErrorResponse"
    70    /broadcast_tx_async:
    71      get:
    72        summary: Returns right away, with no response. Does not wait for CheckTx nor DeliverTx results.
    73        tags:
    74          - Tx
    75        operationId: broadcast_tx_async
    76        description: |
    77          If you want to be sure that the transaction is included in a block, you can
    78          subscribe for the result using JSONRPC via a websocket. See
    79          https://docs.tendermint.com/master/app-dev/subscribing-to-events-via-websocket.html
    80          If you haven't received anything after a couple of blocks, resend it. If the
    81          same happens again, send it to some other node. A few reasons why it could
    82          happen:
    83  
    84          1. malicious node can drop or pretend it had committed your tx
    85          2. malicious proposer (not necessary the one you're communicating with) can
    86          drop transactions, which might become valid in the future
    87          (https://github.com/franono/tendermint/issues/3322)
    88          3. node can be offline
    89  
    90          Please refer to
    91          https://docs.tendermint.com/master/tendermint-core/using-tendermint.html#formatting
    92          for formatting/encoding rules.
    93        parameters:
    94          - in: query
    95            name: tx
    96            required: true
    97            schema:
    98              type: string
    99              example: "123"
   100            description: The transaction
   101        responses:
   102          200:
   103            description: empty answer
   104            content:
   105              application/json:
   106                schema:
   107                  $ref: "#/components/schemas/BroadcastTxResponse"
   108          500:
   109            description: empty error
   110            content:
   111              application/json:
   112                schema:
   113                  $ref: "#/components/schemas/ErrorResponse"
   114    /broadcast_tx_commit:
   115      get:
   116        summary: Returns with the responses from CheckTx and DeliverTx.
   117        tags:
   118          - Tx
   119        operationId: broadcast_tx_commit
   120        description: |
   121          IMPORTANT: use only for testing and development. In production, use
   122          BroadcastTxSync or BroadcastTxAsync. You can subscribe for the transaction
   123          result using JSONRPC via a websocket. See
   124          https://docs.tendermint.com/master/app-dev/subscribing-to-events-via-websocket.html
   125  
   126          CONTRACT: only returns error if mempool.CheckTx() errs or if we timeout
   127          waiting for tx to commit.
   128  
   129          If CheckTx or DeliverTx fail, no error will be returned, but the returned result
   130          will contain a non-OK ABCI code.
   131  
   132          Please refer to
   133          https://docs.tendermint.com/master/tendermint-core/using-tendermint.html#formatting
   134          for formatting/encoding rules.
   135        parameters:
   136          - in: query
   137            name: tx
   138            required: true
   139            schema:
   140              type: string
   141              example: "785"
   142            description: The transaction
   143        responses:
   144          200:
   145            description: empty answer
   146            content:
   147              application/json:
   148                schema:
   149                  $ref: "#/components/schemas/BroadcastTxCommitResponse"
   150          500:
   151            description: empty error
   152            content:
   153              application/json:
   154                schema:
   155                  $ref: "#/components/schemas/ErrorResponse"
   156    /subscribe:
   157      get:
   158        summary: Subscribe for events via WebSocket.
   159        tags:
   160          - Websocket
   161        operationId: subscribe
   162        description: |
   163          To tell which events you want, you need to provide a query. query is a
   164          string, which has a form: "condition AND condition ..." (no OR at the
   165          moment). condition has a form: "key operation operand". key is a string with
   166          a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
   167          operation can be "=", "<", "<=", ">", ">=", "CONTAINS" AND "EXISTS". operand
   168          can be a string (escaped with single quotes), number, date or time.
   169  
   170          Examples:
   171                tm.event = 'NewBlock'               # new blocks
   172                tm.event = 'CompleteProposal'       # node got a complete proposal
   173                tm.event = 'Tx' AND tx.hash = 'XYZ' # single transaction
   174                tm.event = 'Tx' AND tx.height = 5   # all txs of the fifth block
   175                tx.height = 5                       # all txs of the fifth block
   176  
   177          Tendermint provides a few predefined keys: tm.event, tx.hash and tx.height.
   178          Note for transactions, you can define additional keys by providing events with
   179          DeliverTx response.
   180  
   181          import (
   182              abci "github.com/franono/tendermint/abci/types"
   183              "github.com/franono/tendermint/libs/pubsub/query"
   184          )
   185  
   186          abci.ResponseDeliverTx{
   187            Events: []abci.Event{
   188                {
   189                    Type: "rewards.withdraw",
   190                    Attributes: kv.Pairs{
   191                        kv.Pair{Key: []byte("address"), Value: []byte("AddrA")},
   192                        kv.Pair{Key: []byte("source"), Value: []byte("SrcX")},
   193                        kv.Pair{Key: []byte("amount"), Value: []byte("...")},
   194                        kv.Pair{Key: []byte("balance"), Value: []byte("...")},
   195                    },
   196                },
   197                {
   198                    Type: "rewards.withdraw",
   199                    Attributes: kv.Pairs{
   200                        kv.Pair{Key: []byte("address"), Value: []byte("AddrB")},
   201                        kv.Pair{Key: []byte("source"), Value: []byte("SrcY")},
   202                        kv.Pair{Key: []byte("amount"), Value: []byte("...")},
   203                        kv.Pair{Key: []byte("balance"), Value: []byte("...")},
   204                    },
   205                },
   206                {
   207                    Type: "transfer",
   208                    Attributes: kv.Pairs{
   209                        kv.Pair{Key: []byte("sender"), Value: []byte("AddrC")},
   210                        kv.Pair{Key: []byte("recipient"), Value: []byte("AddrD")},
   211                        kv.Pair{Key: []byte("amount"), Value: []byte("...")},
   212                    },
   213                },
   214            },
   215          }
   216  
   217          All events are indexed by a composite key of the form {eventType}.{evenAttrKey}.
   218          In the above examples, the following keys would be indexed:
   219             - rewards.withdraw.address
   220             - rewards.withdraw.source
   221             - rewards.withdraw.amount
   222             - rewards.withdraw.balance
   223             - transfer.sender
   224             - transfer.recipient
   225             - transfer.amount
   226  
   227          Multiple event types with duplicate keys are allowed and are meant to
   228          categorize unique and distinct events. In the above example, all events
   229          indexed under the key `rewards.withdraw.address` will have the following
   230          values stored and queryable:
   231  
   232             - AddrA
   233             - AddrB
   234  
   235          To create a query for txs where address AddrA withdrew rewards:
   236          query.MustParse("tm.event = 'Tx' AND rewards.withdraw.address = 'AddrA'")
   237  
   238          To create a query for txs where address AddrA withdrew rewards from source Y:
   239          query.MustParse("tm.event = 'Tx' AND rewards.withdraw.address = 'AddrA' AND rewards.withdraw.source = 'Y'")
   240  
   241          To create a query for txs where AddrA transferred funds:
   242          query.MustParse("tm.event = 'Tx' AND transfer.sender = 'AddrA'")
   243  
   244          The following queries would return no results:
   245          query.MustParse("tm.event = 'Tx' AND transfer.sender = 'AddrZ'")
   246          query.MustParse("tm.event = 'Tx' AND rewards.withdraw.address = 'AddrZ'")
   247          query.MustParse("tm.event = 'Tx' AND rewards.withdraw.source = 'W'")
   248  
   249          See list of all possible events here
   250          https://godoc.org/github.com/franono/tendermint/types#pkg-constants
   251  
   252          For complete query syntax, check out
   253          https://godoc.org/github.com/franono/tendermint/libs/pubsub/query.
   254  
   255          ```go
   256          import rpchttp "github.com/tendermint/rpc/client/http"
   257          import "github.com/franono/tendermint/types"
   258  
   259          client := rpchttp.New("tcp:0.0.0.0:26657", "/websocket")
   260          err := client.Start()
   261          if err != nil {
   262            handle error
   263          }
   264          defer client.Stop()
   265          ctx, cancel := context.WithTimeout(context.Background(), 1 * time.Second)
   266          defer cancel()
   267          query := "tm.event = 'Tx' AND tx.height = 3"
   268          txs, err := client.Subscribe(ctx, "test-client", query)
   269          if err != nil {
   270            handle error
   271          }
   272  
   273          go func() {
   274           for e := range txs {
   275             fmt.Println("got ", e.Data.(types.EventDataTx))
   276             }
   277          }()
   278          ```
   279        parameters:
   280          - in: query
   281            name: query
   282            required: true
   283            schema:
   284              type: string
   285              example: tm.event = 'Tx' AND tx.height = 5
   286            description: |
   287              query is a string, which has a form: "condition AND condition ..." (no OR at the
   288              moment). condition has a form: "key operation operand". key is a string with
   289              a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
   290              operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
   291              string (escaped with single quotes), number, date or time.
   292        responses:
   293          200:
   294            description: empty answer
   295            content:
   296              application/json:
   297                schema:
   298                  $ref: "#/components/schemas/EmptyResponse"
   299          500:
   300            description: empty error
   301            content:
   302              application/json:
   303                schema:
   304                  $ref: "#/components/schemas/ErrorResponse"
   305    /unsubscribe:
   306      get:
   307        summary: Unsubscribe from event on Websocket
   308        tags:
   309          - Websocket
   310        operationId: unsubscribe
   311        description: |
   312          ```go
   313          client := rpchttp.New("tcp:0.0.0.0:26657", "/websocket")
   314          err := client.Start()
   315          if err != nil {
   316             handle error
   317          }
   318          defer client.Stop()
   319          query := "tm.event = 'Tx' AND tx.height = 3"
   320          err = client.Unsubscribe(context.Background(), "test-client", query)
   321          if err != nil {
   322             handle error
   323          }
   324          ```
   325        parameters:
   326          - in: query
   327            name: query
   328            required: true
   329            schema:
   330              type: string
   331              example: tm.event = 'Tx' AND tx.height = 5
   332            description: |
   333              query is a string, which has a form: "condition AND condition ..." (no OR at the
   334              moment). condition has a form: "key operation operand". key is a string with
   335              a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
   336              operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
   337              string (escaped with single quotes), number, date or time.
   338        responses:
   339          200:
   340            description: Answer
   341            content:
   342              application/json:
   343                schema:
   344                  $ref: "#/components/schemas/EmptyResponse"
   345          500:
   346            description: Error
   347            content:
   348              application/json:
   349                schema:
   350                  $ref: "#/components/schemas/ErrorResponse"
   351    /unsubscribe_all:
   352      get:
   353        summary: Unsubscribe from all events via WebSocket
   354        tags:
   355          - Websocket
   356        operationId: unsubscribe_all
   357        description: |
   358          Unsubscribe from all events via WebSocket
   359        responses:
   360          200:
   361            description: empty answer
   362            content:
   363              application/json:
   364                schema:
   365                  $ref: "#/components/schemas/EmptyResponse"
   366          500:
   367            description: empty error
   368            content:
   369              application/json:
   370                schema:
   371                  $ref: "#/components/schemas/ErrorResponse"
   372    /health:
   373      get:
   374        summary: Node heartbeat
   375        tags:
   376          - Info
   377        operationId: health
   378        description: |
   379          Get node health. Returns empty result (200 OK) on success, no response - in case of an error.
   380        responses:
   381          200:
   382            description: Gets Node Health
   383            content:
   384              application/json:
   385                schema:
   386                  $ref: "#/components/schemas/EmptyResponse"
   387          500:
   388            description: empty error
   389            content:
   390              application/json:
   391                schema:
   392                  $ref: "#/components/schemas/ErrorResponse"
   393    /status:
   394      get:
   395        summary: Node Status
   396        operationId: status
   397        tags:
   398          - Info
   399        description: |
   400          Get Tendermint status including node info, pubkey, latest block hash, app hash, block height and time.
   401        responses:
   402          200:
   403            description: Status of the node
   404            content:
   405              application/json:
   406                schema:
   407                  $ref: "#/components/schemas/StatusResponse"
   408          500:
   409            description: empty error
   410            content:
   411              application/json:
   412                schema:
   413                  $ref: "#/components/schemas/ErrorResponse"
   414    /net_info:
   415      get:
   416        summary: Network informations
   417        operationId: net_info
   418        tags:
   419          - Info
   420        description: |
   421          Get network info.
   422        responses:
   423          200:
   424            description: empty answer
   425            content:
   426              application/json:
   427                schema:
   428                  $ref: "#/components/schemas/NetInfoResponse"
   429          500:
   430            description: empty error
   431            content:
   432              application/json:
   433                schema:
   434                  $ref: "#/components/schemas/ErrorResponse"
   435    /dial_seeds:
   436      post:
   437        summary: Dial Seeds (Unsafe)
   438        operationId: dial_seeds
   439        tags:
   440          - unsafe
   441        description: |
   442          Dial a peer, this route in under unsafe, and has to manually enabled to use
   443        parameters:
   444          - description: string of possible peers
   445            in: body
   446            name: Array of peers to connect to
   447            required: true
   448            schema:
   449              $ref: "#/components/schemas/dialSeedsPost"
   450        responses:
   451          200:
   452            description: Dialing seeds in progress. See /net_info for details
   453            content:
   454              application/json:
   455                schema:
   456                  $ref: "#/components/schemas/dialResp"
   457          500:
   458            description: empty error
   459            content:
   460              application/json:
   461                schema:
   462                  $ref: "#/components/schemas/ErrorResponse"
   463    /dial_peers:
   464      post:
   465        summary: Add Peers/Persistent Peers (unsafe)
   466        operationId: dial_peers
   467        tags:
   468          - unsafe
   469        description: |
   470          Set a persistent peer, this route in under unsafe, and has to manually enabled to use
   471        parameters:
   472          - description: string of possible peers, bool argument if they should be added as persistent
   473            in: body
   474            name: Array of peers to connect to & if they should be persistent
   475            required: true
   476            schema:
   477              $ref: "#/components/schemas/dialPeersPost"
   478        responses:
   479          200:
   480            description: Dialing seeds in progress. See /net_info for details
   481            content:
   482              application/json:
   483                schema:
   484                  $ref: "#/components/schemas/dialResp"
   485          500:
   486            description: empty error
   487            content:
   488              application/json:
   489                schema:
   490                  $ref: "#/components/schemas/ErrorResponse"
   491    /blockchain:
   492      get:
   493        summary: Get block headers for minHeight <= height <= maxHeight.
   494        operationId: blockchain
   495        parameters:
   496          - in: query
   497            name: minHeight
   498            description: Minimum block height to return
   499            schema:
   500              type: number
   501              example: 1
   502          - in: query
   503            name: maxHeight
   504            description: Maximum block height to return
   505            schema:
   506              type: number
   507              example: 2
   508        tags:
   509          - Info
   510        description: |
   511          Get Blockchain info.
   512        responses:
   513          200:
   514            description: Block headers, returned in descending order (highest first).
   515            content:
   516              application/json:
   517                schema:
   518                  $ref: "#/components/schemas/BlockchainResponse"
   519          500:
   520            description: Error
   521            content:
   522              application/json:
   523                schema:
   524                  $ref: "#/components/schemas/ErrorResponse"
   525    /block:
   526      get:
   527        summary: Get block at a specified height
   528        operationId: block
   529        parameters:
   530          - in: query
   531            name: height
   532            schema:
   533              type: number
   534              default: 0
   535              example: 1
   536            description: height to return. If no height is provided, it will fetch the latest block.
   537        tags:
   538          - Info
   539        description: |
   540          Get Block.
   541        responses:
   542          200:
   543            description: Block informations.
   544            content:
   545              application/json:
   546                schema:
   547                  $ref: "#/components/schemas/BlockResponse"
   548          500:
   549            description: Error
   550            content:
   551              application/json:
   552                schema:
   553                  $ref: "#/components/schemas/ErrorResponse"
   554    /block_by_hash:
   555      get:
   556        summary: Get block by hash
   557        operationId: block_by_hash
   558        parameters:
   559          - in: query
   560            name: hash
   561            description: block hash
   562            required: true
   563            schema:
   564              type: string
   565              example: "0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED"
   566        tags:
   567          - Info
   568        description: |
   569          Get Block By Hash.
   570        responses:
   571          200:
   572            description: Block informations.
   573            content:
   574              application/json:
   575                schema:
   576                  $ref: "#/components/schemas/BlockResponse"
   577          500:
   578            description: Error
   579            content:
   580              application/json:
   581                schema:
   582                  $ref: "#/components/schemas/ErrorResponse"
   583    /block_results:
   584      get:
   585        summary: Get block results at a specified height
   586        operationId: block_results
   587        parameters:
   588          - in: query
   589            name: height
   590            description: height to return. If no height is provided, it will fetch informations regarding the latest block.
   591            schema:
   592              type: number
   593              default: 0
   594              example: 1
   595        tags:
   596          - Info
   597        description: |
   598          Get block_results.
   599        responses:
   600          200:
   601            description: Block results.
   602            content:
   603              application/json:
   604                schema:
   605                  $ref: "#/components/schemas/BlockResultsResponse"
   606          500:
   607            description: Error
   608            content:
   609              application/json:
   610                schema:
   611                  $ref: "#/components/schemas/ErrorResponse"
   612    /commit:
   613      get:
   614        summary: Get commit results at a specified height
   615        operationId: commit
   616        parameters:
   617          - in: query
   618            name: height
   619            description: height to return. If no height is provided, it will fetch commit informations regarding the latest block.
   620            schema:
   621              type: number
   622              default: 0
   623              example: 1
   624        tags:
   625          - Info
   626        description: |
   627          Get Commit.
   628        responses:
   629          200:
   630            description: Commit results.
   631            content:
   632              application/json:
   633                schema:
   634                  $ref: "#/components/schemas/CommitResponse"
   635          500:
   636            description: Error
   637            content:
   638              application/json:
   639                schema:
   640                  $ref: "#/components/schemas/ErrorResponse"
   641    /validators:
   642      get:
   643        summary: Get validator set at a specified height
   644        operationId: validators
   645        parameters:
   646          - in: query
   647            name: height
   648            description: height to return. If no height is provided, it will fetch validator set which corresponds to the latest block.
   649            schema:
   650              type: number
   651              default: 0
   652              example: 1
   653          - in: query
   654            name: page
   655            description: "Page number (1-based)"
   656            required: false
   657            schema:
   658              type: number
   659              default: 0
   660              example: 1
   661          - in: query
   662            name: per_page
   663            description: "Number of entries per page (max: 100)"
   664            required: false
   665            schema:
   666              type: number
   667              example: 30
   668              default: 30
   669        tags:
   670          - Info
   671        description: |
   672          Get Validators. Validators are sorted by voting power.
   673        responses:
   674          200:
   675            description: Commit results.
   676            content:
   677              application/json:
   678                schema:
   679                  $ref: "#/components/schemas/ValidatorsResponse"
   680          500:
   681            description: Error
   682            content:
   683              application/json:
   684                schema:
   685                  $ref: "#/components/schemas/ErrorResponse"
   686    /genesis:
   687      get:
   688        summary: Get Genesis
   689        operationId: genesis
   690        tags:
   691          - Info
   692        description: |
   693          Get genesis.
   694        responses:
   695          200:
   696            description: Genesis results.
   697            content:
   698              application/json:
   699                schema:
   700                  $ref: "#/components/schemas/GenesisResponse"
   701          500:
   702            description: Error
   703            content:
   704              application/json:
   705                schema:
   706                  $ref: "#/components/schemas/ErrorResponse"
   707    /dump_consensus_state:
   708      get:
   709        summary: Get consensus state
   710        operationId: dump_consensus_state
   711        tags:
   712          - Info
   713        description: |
   714          Get consensus state.
   715  
   716          Not safe to call from inside the ABCI application during a block execution.
   717        responses:
   718          200:
   719            description: consensus state results.
   720            content:
   721              application/json:
   722                schema:
   723                  $ref: "#/components/schemas/DumpConsensusResponse"
   724          500:
   725            description: Error
   726            content:
   727              application/json:
   728                schema:
   729                  $ref: "#/components/schemas/ErrorResponse"
   730    /consensus_state:
   731      get:
   732        summary: Get consensus state
   733        operationId: consensus_state
   734        tags:
   735          - Info
   736        description: |
   737          Get consensus state.
   738  
   739          Not safe to call from inside the ABCI application during a block execution.
   740        responses:
   741          200:
   742            description: consensus state results.
   743            content:
   744              application/json:
   745                schema:
   746                  $ref: "#/components/schemas/ConsensusStateResponse"
   747          500:
   748            description: Error
   749            content:
   750              application/json:
   751                schema:
   752                  $ref: "#/components/schemas/ErrorResponse"
   753    /consensus_params:
   754      get:
   755        summary: Get consensus parameters
   756        operationId: consensus_params
   757        parameters:
   758          - in: query
   759            name: height
   760            description: height to return. If no height is provided, it will fetch commit informations regarding the latest block.
   761            schema:
   762              type: number
   763              default: 0
   764              example: 1
   765        tags:
   766          - Info
   767        description: |
   768          Get consensus parameters.
   769        responses:
   770          200:
   771            description: consensus parameters results.
   772            content:
   773              application/json:
   774                schema:
   775                  $ref: "#/components/schemas/ConsensusParamsResponse"
   776          500:
   777            description: Error
   778            content:
   779              application/json:
   780                schema:
   781                  $ref: "#/components/schemas/ErrorResponse"
   782    /unconfirmed_txs:
   783      get:
   784        summary: Get the list of unconfirmed transactions
   785        operationId: unconfirmed_txs
   786        parameters:
   787          - in: query
   788            name: limit
   789            description: Maximum number of unconfirmed transactions to return
   790            schema:
   791              type: number
   792              example: 1
   793        tags:
   794          - Info
   795        description: |
   796          Get list of unconfirmed transactions
   797        responses:
   798          200:
   799            description: List of unconfirmed transactions
   800            content:
   801              application/json:
   802                schema:
   803                  $ref: "#/components/schemas/UnconfirmedTransactionsResponse"
   804          500:
   805            description: Error
   806            content:
   807              application/json:
   808                schema:
   809                  $ref: "#/components/schemas/ErrorResponse"
   810    /num_unconfirmed_txs:
   811      get:
   812        summary: Get data about unconfirmed transactions
   813        operationId: num_unconfirmed_txs
   814        tags:
   815          - Info
   816        description: |
   817          Get data about unconfirmed transactions
   818        responses:
   819          200:
   820            description: status about unconfirmed transactions
   821            content:
   822              application/json:
   823                schema:
   824                  $ref: "#/components/schemas/NumUnconfirmedTransactionsResponse"
   825          500:
   826            description: Error
   827            content:
   828              application/json:
   829                schema:
   830                  $ref: "#/components/schemas/ErrorResponse"
   831    /tx_search:
   832      get:
   833        summary: Search for transactions
   834        operationId: tx_search
   835        parameters:
   836          - in: query
   837            name: query
   838            description: Query
   839            required: true
   840            schema:
   841              type: string
   842              example: "tx.height=1000"
   843          - in: query
   844            name: prove
   845            description: Include proofs of the transactions inclusion in the block
   846            required: false
   847            schema:
   848              type: boolean
   849              default: false
   850              example: true
   851          - in: query
   852            name: page
   853            description: "Page number (1-based)"
   854            required: false
   855            schema:
   856              type: number
   857              default: 1
   858              example: 1
   859          - in: query
   860            name: per_page
   861            description: "Number of entries per page (max: 100)"
   862            required: false
   863            schema:
   864              type: number
   865              default: 30
   866              example: 30
   867          - in: query
   868            name: order_by
   869            description: Order in which transactions are sorted ("asc" or "desc"), by height & index. If empty, default sorting will be still applied.
   870            required: false
   871            schema:
   872              type: string
   873              default: "asc"
   874              example: "asc"
   875        tags:
   876          - Info
   877        description: |
   878          Get list of unconfirmed transactions
   879        responses:
   880          200:
   881            description: List of unconfirmed transactions
   882            content:
   883              application/json:
   884                schema:
   885                  $ref: "#/components/schemas/TxSearchResponse"
   886          500:
   887            description: Error
   888            content:
   889              application/json:
   890                schema:
   891                  $ref: "#/components/schemas/ErrorResponse"
   892    /tx:
   893      get:
   894        summary: Get transactions by hash
   895        operationId: tx
   896        parameters:
   897          - in: query
   898            name: hash
   899            description: transaction Hash to retrive
   900            required: true
   901            schema:
   902              type: string
   903              example: "0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED"
   904          - in: query
   905            name: prove
   906            description: Include proofs of the transactions inclusion in the block
   907            required: false
   908            schema:
   909              type: boolean
   910              example: true
   911              default: false
   912        tags:
   913          - Info
   914        description: |
   915          Get a trasasction
   916        responses:
   917          200:
   918            description: Get a transaction`
   919            content:
   920              application/json:
   921                schema:
   922                  $ref: "#/components/schemas/TxResponse"
   923          500:
   924            description: Error
   925            content:
   926              application/json:
   927                schema:
   928                  $ref: "#/components/schemas/ErrorResponse"
   929    /abci_info:
   930      get:
   931        summary: Get some info about the application.
   932        operationId: abci_info
   933        tags:
   934          - ABCI
   935        description: |
   936          Get some info about the application.
   937        responses:
   938          200:
   939            description: Get some info about the application.
   940            content:
   941              application/json:
   942                schema:
   943                  $ref: "#/components/schemas/ABCIInfoResponse"
   944          500:
   945            description: Error
   946            content:
   947              application/json:
   948                schema:
   949                  $ref: "#/components/schemas/ErrorResponse"
   950    /abci_query:
   951      get:
   952        summary: Query the application for some information.
   953        operationId: abci_query
   954        parameters:
   955          - in: query
   956            name: path
   957            description: Path to the data ("/a/b/c")
   958            required: true
   959            schema:
   960              type: string
   961              example: "/a/b/c"
   962          - in: query
   963            name: data
   964            description: Data
   965            required: true
   966            schema:
   967              type: string
   968              example: "IHAVENOIDEA"
   969          - in: query
   970            name: height
   971            description: Height (0 means latest)
   972            required: false
   973            schema:
   974              type: number
   975              example: 1
   976              default: 0
   977          - in: query
   978            name: prove
   979            description: Include proofs of the transactions inclusion in the block
   980            required: false
   981            schema:
   982              type: boolean
   983              example: true
   984              default: false
   985        tags:
   986          - ABCI
   987        description: |
   988          Query the application for some information.
   989        responses:
   990          200:
   991            description: Response of the submitted query
   992            content:
   993              application/json:
   994                schema:
   995                  $ref: "#/components/schemas/ABCIQueryResponse"
   996          500:
   997            description: Error
   998            content:
   999              application/json:
  1000                schema:
  1001                  $ref: "#/components/schemas/ErrorResponse"
  1002    /broadcast_evidence:
  1003      get:
  1004        summary: Broadcast evidence of the misbehavior.
  1005        operationId: broadcast_evidence
  1006        parameters:
  1007          - in: query
  1008            name: evidence
  1009            description: Amino-encoded JSON evidence
  1010            required: true
  1011            schema:
  1012              type: string
  1013              example: "JSON_EVIDENCE_Amino_encoded"
  1014        tags:
  1015          - Info
  1016        description: |
  1017          Broadcast evidence of the misbehavior.
  1018        responses:
  1019          200:
  1020            description: Broadcast evidence of the misbehavior.
  1021            content:
  1022              application/json:
  1023                schema:
  1024                  $ref: "#/components/schemas/BroadcastEvidenceResponse"
  1025          500:
  1026            description: Error
  1027            content:
  1028              application/json:
  1029                schema:
  1030                  $ref: "#/components/schemas/ErrorResponse"
  1031  
  1032  components:
  1033    schemas:
  1034      JSONRPC:
  1035        type: object
  1036        properties:
  1037          id:
  1038            type: number
  1039            example: 0
  1040          jsonrpc:
  1041            type: string
  1042            example: "2.0"
  1043      EmptyResponse:
  1044        description: Empty Response
  1045        allOf:
  1046          - $ref: "#/components/schemas/JSONRPC"
  1047          - type: object
  1048            properties:
  1049              result:
  1050                type: object
  1051                additionalProperties: {}
  1052      ErrorResponse:
  1053        description: Error Response
  1054        allOf:
  1055          - $ref: "#/components/schemas/JSONRPC"
  1056          - type: object
  1057            properties:
  1058              error:
  1059                type: string
  1060                example: "Description of failure"
  1061      ProtocolVersion:
  1062        type: object
  1063        properties:
  1064          p2p:
  1065            type: string
  1066            example: "7"
  1067          block:
  1068            type: string
  1069            example: "10"
  1070          app:
  1071            type: string
  1072            example: "0"
  1073      PubKey:
  1074        type: object
  1075        properties:
  1076          type:
  1077            type: string
  1078            example: "tendermint/PubKeyEd25519"
  1079          value:
  1080            type: string
  1081            example: "A6DoBUypNtUAyEHWtQ9bFjfNg8Bo9CrnkUGl6k6OHN4="
  1082      NodeInfo:
  1083        type: object
  1084        properties:
  1085          protocol_version:
  1086            $ref: "#/components/schemas/ProtocolVersion"
  1087          id:
  1088            type: string
  1089            example: "5576458aef205977e18fd50b274e9b5d9014525a"
  1090          listen_addr:
  1091            type: string
  1092            example: "tcp:0.0.0.0:26656"
  1093          network:
  1094            type: string
  1095            example: "cosmoshub-2"
  1096          version:
  1097            type: string
  1098            example: "0.32.1"
  1099          channels:
  1100            type: string
  1101            example: "4020212223303800"
  1102          moniker:
  1103            type: string
  1104            example: "moniker-node"
  1105          other:
  1106            type: object
  1107            properties:
  1108              tx_index:
  1109                type: string
  1110                example: "on"
  1111              rpc_address:
  1112                type: string
  1113                example: "tcp:0.0.0.0:26657"
  1114            example: "moniker-node"
  1115      SyncInfo:
  1116        type: object
  1117        properties:
  1118          latest_block_hash:
  1119            type: string
  1120            example: "790BA84C3545FCCC49A5C629CEE6EA58A6E875C3862175BDC11EE7AF54703501"
  1121          latest_app_hash:
  1122            type: string
  1123            example: "C9AEBB441B787D9F1D846DE51F3826F4FD386108B59B08239653ABF59455C3F8"
  1124          latest_block_height:
  1125            type: string
  1126            example: "1262196"
  1127          latest_block_time:
  1128            type: string
  1129            example: "2019-08-01T11:52:22.818762194Z"
  1130            earliest_block_hash:
  1131              type: string
  1132              example: "790BA84C3545FCCC49A5C629CEE6EA58A6E875C3862175BDC11EE7AF54703501"
  1133            earliest_app_hash:
  1134              type: string
  1135              example: "C9AEBB441B787D9F1D846DE51F3826F4FD386108B59B08239653ABF59455C3F8"
  1136            earliest_block_height:
  1137              type: string
  1138              example: "1262196"
  1139            earliest_block_time:
  1140              type: string
  1141              example: "2019-08-01T11:52:22.818762194Z"
  1142          catching_up:
  1143            type: boolean
  1144            example: false
  1145      ValidatorInfo:
  1146        type: object
  1147        properties:
  1148          address:
  1149            type: string
  1150            example: "5D6A51A8E9899C44079C6AF90618BA0369070E6E"
  1151          pub_key:
  1152            $ref: "#/components/schemas/PubKey"
  1153          voting_power:
  1154            type: string
  1155            example: "0"
  1156      Status:
  1157        description: Status Response
  1158        type: object
  1159        properties:
  1160          node_info:
  1161            $ref: "#/components/schemas/NodeInfo"
  1162          sync_info:
  1163            $ref: "#/components/schemas/SyncInfo"
  1164          validator_info:
  1165            $ref: "#/components/schemas/ValidatorInfo"
  1166      StatusResponse:
  1167        description: Status Response
  1168        allOf:
  1169          - $ref: "#/components/schemas/JSONRPC"
  1170          - type: object
  1171            properties:
  1172              result:
  1173                $ref: "#/components/schemas/Status"
  1174      Monitor:
  1175        type: object
  1176        properties:
  1177          Active:
  1178            type: boolean
  1179            example: true
  1180          Start:
  1181            type: string
  1182            example: "2019-07-31T14:31:28.66Z"
  1183          Duration:
  1184            type: string
  1185            example: "168901060000000"
  1186          Idle:
  1187            type: string
  1188            example: "168901040000000"
  1189          Bytes:
  1190            type: string
  1191            example: "5"
  1192          Samples:
  1193            type: string
  1194            example: "1"
  1195          InstRate:
  1196            type: string
  1197            example: "0"
  1198          CurRate:
  1199            type: string
  1200            example: "0"
  1201          AvgRate:
  1202            type: string
  1203            example: "0"
  1204          PeakRate:
  1205            type: string
  1206            example: "0"
  1207          BytesRem:
  1208            type: string
  1209            example: "0"
  1210          TimeRem:
  1211            type: string
  1212            example: "0"
  1213          Progress:
  1214            type: number
  1215            example: 0
  1216      Channel:
  1217        type: object
  1218        properties:
  1219          ID:
  1220            type: number
  1221            example: 48
  1222          SendQueueCapacity:
  1223            type: string
  1224            example: "1"
  1225          SendQueueSize:
  1226            type: string
  1227            example: "0"
  1228          Priority:
  1229            type: string
  1230            example: "5"
  1231          RecentlySent:
  1232            type: string
  1233            example: "0"
  1234      ConnectionStatus:
  1235        type: object
  1236        properties:
  1237          Duration:
  1238            type: string
  1239            example: "168901057956119"
  1240          SendMonitor:
  1241            $ref: "#/components/schemas/Monitor"
  1242          RecvMonitor:
  1243            $ref: "#/components/schemas/Monitor"
  1244          Channels:
  1245            type: array
  1246            items:
  1247              $ref: "#/components/schemas/Channel"
  1248      Peer:
  1249        type: object
  1250        properties:
  1251          node_info:
  1252            $ref: "#/components/schemas/NodeInfo"
  1253          is_outbound:
  1254            type: boolean
  1255            example: true
  1256          connection_status:
  1257            $ref: "#/components/schemas/ConnectionStatus"
  1258          remote_ip:
  1259            type: string
  1260            example: "95.179.155.35"
  1261      NetInfo:
  1262        type: object
  1263        properties:
  1264          listening:
  1265            type: boolean
  1266            example: true
  1267          listeners:
  1268            type: array
  1269            items:
  1270              type: string
  1271              example: "Listener(@)"
  1272          n_peers:
  1273            type: number
  1274            example: "1"
  1275          peers:
  1276            type: array
  1277            items:
  1278              $ref: "#/components/schemas/Peer"
  1279      NetInfoResponse:
  1280        description: NetInfo Response
  1281        allOf:
  1282          - $ref: "#/components/schemas/JSONRPC"
  1283          - type: object
  1284            properties:
  1285              result:
  1286                $ref: "#/components/schemas/NetInfo"
  1287      BlockID:
  1288        required:
  1289          - "hash"
  1290          - "parts"
  1291        properties:
  1292          hash:
  1293            type: string
  1294            example: "D82C2734BB0E76C772A10994B210EF9D11505D1B98CB189D9CF7F9A5488672A5"
  1295          parts:
  1296            required:
  1297              - "total"
  1298              - "hash"
  1299            properties:
  1300              total:
  1301                type: string
  1302                example: "1"
  1303              hash:
  1304                type: string
  1305                example: "CB02DCAA7FB46BF874052EC2273FD0B1F2CF2E1593298D9781E60FE9C3DB8638"
  1306            type: object
  1307        type: object
  1308      BlockHeader:
  1309        required:
  1310          - "version"
  1311          - "chain_id"
  1312          - "height"
  1313          - "time"
  1314          - "last_block_id"
  1315          - "last_commit_hash"
  1316          - "data_hash"
  1317          - "validators_hash"
  1318          - "next_validators_hash"
  1319          - "consensus_hash"
  1320          - "app_hash"
  1321          - "last_results_hash"
  1322          - "evidence_hash"
  1323          - "proposer_address"
  1324        properties:
  1325          version:
  1326            required:
  1327              - "block"
  1328              - "app"
  1329            properties:
  1330              block:
  1331                type: string
  1332                example: "10"
  1333              app:
  1334                type: string
  1335                example: "0"
  1336            type: object
  1337          chain_id:
  1338            type: string
  1339            example: "cosmoshub-2"
  1340          height:
  1341            type: string
  1342            example: "12"
  1343          time:
  1344            type: string
  1345            example: "2019-04-22T17:01:51.701356223Z"
  1346          last_block_id:
  1347            $ref: "#/components/schemas/BlockID"
  1348          last_commit_hash:
  1349            type: string
  1350            example: "21B9BC845AD2CB2C4193CDD17BFC506F1EBE5A7402E84AD96E64171287A34812"
  1351          data_hash:
  1352            type: string
  1353            example: "970886F99E77ED0D60DA8FCE0447C2676E59F2F77302B0C4AA10E1D02F18EF73"
  1354          validators_hash:
  1355            type: string
  1356            example: "D658BFD100CA8025CFD3BECFE86194322731D387286FBD26E059115FD5F2BCA0"
  1357          next_validators_hash:
  1358            type: string
  1359            example: "D658BFD100CA8025CFD3BECFE86194322731D387286FBD26E059115FD5F2BCA0"
  1360          consensus_hash:
  1361            type: string
  1362            example: "0F2908883A105C793B74495EB7D6DF2EEA479ED7FC9349206A65CB0F9987A0B8"
  1363          app_hash:
  1364            type: string
  1365            example: "223BF64D4A01074DC523A80E76B9BBC786C791FB0A1893AC5B14866356FCFD6C"
  1366          last_results_hash:
  1367            type: string
  1368            example: ""
  1369          evidence_hash:
  1370            type: string
  1371            example: ""
  1372          proposer_address:
  1373            type: string
  1374            example: "D540AB022088612AC74B287D076DBFBC4A377A2E"
  1375        type: object
  1376      BlockMeta:
  1377        type: object
  1378        properties:
  1379          block_id:
  1380            $ref: "#/components/schemas/BlockID"
  1381          block_size:
  1382            type: number
  1383            example: 1000000
  1384          header:
  1385            $ref: "#/components/schemas/BlockHeader"
  1386          num_txs:
  1387            type: string
  1388            example: "54"
  1389      Blockchain:
  1390        type: object
  1391        required:
  1392          - "last_height"
  1393          - "block_metas"
  1394        properties:
  1395          last_height:
  1396            type: string
  1397            example: "1276718"
  1398          block_metas:
  1399            type: "array"
  1400            items:
  1401              $ref: "#/components/schemas/BlockMeta"
  1402      BlockchainResponse:
  1403        description: Blockchain info
  1404        allOf:
  1405          - $ref: "#/components/schemas/JSONRPC"
  1406          - type: object
  1407            properties:
  1408              result:
  1409                $ref: "#/components/schemas/Blockchain"
  1410      Commit:
  1411        required:
  1412          - "type"
  1413          - "height"
  1414          - "round"
  1415          - "block_id"
  1416          - "timestamp"
  1417          - "validator_address"
  1418          - "validator_index"
  1419          - "signature"
  1420        properties:
  1421          type:
  1422            type: number
  1423            example: 2
  1424          height:
  1425            type: string
  1426            example: "1262085"
  1427          round:
  1428            type: string
  1429            example: "0"
  1430          block_id:
  1431            $ref: "#/components/schemas/BlockID"
  1432          timestamp:
  1433            type: string
  1434            example: "2019-08-01T11:39:38.867269833Z"
  1435          validator_address:
  1436            type: string
  1437            example: "000001E443FD237E4B616E2FA69DF4EE3D49A94F"
  1438          validator_index:
  1439            type: string
  1440            example: "0"
  1441          signature:
  1442            type: string
  1443            example: "DBchvucTzAUEJnGYpNvMdqLhBAHG4Px8BsOBB3J3mAFCLGeuG7uJqy+nVngKzZdPhPi8RhmE/xcw/M9DOJjEDg=="
  1444      Block:
  1445        type: object
  1446        properties:
  1447          header:
  1448            $ref: "#/components/schemas/BlockHeader"
  1449          data:
  1450            type: array
  1451            items:
  1452              type: string
  1453              example: "yQHwYl3uCkKoo2GaChRnd+THLQ2RM87nEZrE19910Z28ABIUWW/t8AtIMwcyU0sT32RcMDI9GF0aEAoFdWF0b20SBzEwMDAwMDASEwoNCgV1YXRvbRIEMzEwMRCd8gEaagom61rphyEDoJPxlcjRoNDtZ9xMdvs+lRzFaHe2dl2P5R2yVCWrsHISQKkqX5H1zXAIJuC57yw0Yb03Fwy75VRip0ZBtLiYsUqkOsPUoQZAhDNP+6LY+RUwz/nVzedkF0S29NZ32QXdGv0="
  1454          evidence:
  1455            type: array
  1456            items:
  1457              $ref: "#/components/schemas/Evidence"
  1458          last_commit:
  1459            type: object
  1460            properties:
  1461              height:
  1462                type: number
  1463              round:
  1464                type: number
  1465              block_id:
  1466                $ref: "#/components/schemas/BlockID"
  1467              signatures:
  1468                type: array
  1469                items:
  1470                  $ref: "#/components/schemas/Commit"
  1471      Validator:
  1472        type: object
  1473        properties:
  1474          pub_key:
  1475            $ref: "#/components/schemas/PubKey"
  1476          voting_power:
  1477            type: number
  1478          address:
  1479            type: string
  1480      Evidence:
  1481        type: object
  1482        properties:
  1483          type:
  1484            type: string
  1485          height:
  1486            type: number
  1487          time:
  1488            type: number
  1489          total_voting_power:
  1490            type: number
  1491          validator:
  1492            $ref: "#/components/schemas/Validator"
  1493      BlockComplete:
  1494        type: object
  1495        properties:
  1496          block_id:
  1497            $ref: "#/components/schemas/BlockID"
  1498          block:
  1499            $ref: "#/components/schemas/Block"
  1500      BlockResponse:
  1501        description: Blockc info
  1502        allOf:
  1503          - $ref: "#/components/schemas/JSONRPC"
  1504          - type: object
  1505            properties:
  1506              result:
  1507                $ref: "#/components/schemas/BlockComplete"
  1508      Tag:
  1509        type: object
  1510        properties:
  1511          key:
  1512            type: string
  1513            example: "YWN0aW9u"
  1514          value:
  1515            type: string
  1516            example: "c2VuZA=="
  1517      ################## FROM NOW ON NEEDS REFACTOR ##################
  1518      BlockResultsResponse:
  1519        type: "object"
  1520        required:
  1521          - "jsonrpc"
  1522          - "id"
  1523          - "result"
  1524        properties:
  1525          jsonrpc:
  1526            type: "string"
  1527            example: "2.0"
  1528          id:
  1529            type: "number"
  1530            example: 0
  1531          result:
  1532            type: "object"
  1533            required:
  1534              - "height"
  1535            properties:
  1536              height:
  1537                type: "string"
  1538                example: "12"
  1539              txs_results:
  1540                type: "array"
  1541                x-nullable: true
  1542                items:
  1543                  type: "object"
  1544                  properties:
  1545                    code:
  1546                      type: "string"
  1547                      example: "0"
  1548                    data:
  1549                      type: "string"
  1550                      example: ""
  1551                    log:
  1552                      type: "string"
  1553                      example: "not enough gas"
  1554                    info:
  1555                      type: "string"
  1556                      example: ""
  1557                    gasWanted:
  1558                      type: "string"
  1559                      example: "100"
  1560                    gasUsed:
  1561                      type: "string"
  1562                      example: "100"
  1563                    events:
  1564                      type: "array"
  1565                      x-nullable: true
  1566                      items:
  1567                        type: "object"
  1568                        properties:
  1569                          type:
  1570                            type: "string"
  1571                            example: "app"
  1572                          attributes:
  1573                            type: "array"
  1574                            x-nullable: false
  1575                            items:
  1576                              type: "object"
  1577                              properties:
  1578                                key:
  1579                                  type: "string"
  1580                                  example: "Y3JlYXRvcg=="
  1581                                value:
  1582                                  type: "string"
  1583                                  example: "Q29zbW9zaGkgTmV0b3dva28="
  1584                    codespace:
  1585                      type: "string"
  1586                      example: "ibc"
  1587              begin_block_events:
  1588                type: "array"
  1589                x-nullable: true
  1590                items:
  1591                  type: "object"
  1592                  properties:
  1593                    type:
  1594                      type: "string"
  1595                      example: "app"
  1596                    attributes:
  1597                      type: "array"
  1598                      x-nullable: false
  1599                      items:
  1600                        type: "object"
  1601                        properties:
  1602                          key:
  1603                            type: "string"
  1604                            example: "Y3JlYXRvcg=="
  1605                          value:
  1606                            type: "string"
  1607                            example: "Q29zbW9zaGkgTmV0b3dva28="
  1608              end_block:
  1609                type: "array"
  1610                x-nullable: true
  1611                items:
  1612                  type: "object"
  1613                  properties:
  1614                    type:
  1615                      type: "string"
  1616                      example: "app"
  1617                    attributes:
  1618                      type: "array"
  1619                      x-nullable: false
  1620                      items:
  1621                        type: "object"
  1622                        properties:
  1623                          key:
  1624                            type: "string"
  1625                            example: "Y3JlYXRvcg=="
  1626                          value:
  1627                            type: "string"
  1628                            example: "Q29zbW9zaGkgTmV0b3dva28="
  1629              validator_updates:
  1630                type: "array"
  1631                x-nullable: true
  1632                items:
  1633                  type: "object"
  1634                  properties:
  1635                    pub_key:
  1636                      type: "object"
  1637                      required:
  1638                        - "type"
  1639                        - "value"
  1640                      properties:
  1641                        type:
  1642                          type: "string"
  1643                          example: "tendermint/PubKeyEd25519"
  1644                        value:
  1645                          type: "string"
  1646                          example: "9tK9IT+FPdf2qm+5c2qaxi10sWP+3erWTKgftn2PaQM="
  1647                    power:
  1648                      type: "string"
  1649                      example: "300"
  1650              consensus_param_updates:
  1651                type: "object"
  1652                x-nullable: true
  1653                required:
  1654                  - "block"
  1655                  - "evidence"
  1656                  - "validator"
  1657                properties:
  1658                  block:
  1659                    type: "object"
  1660                    required:
  1661                      - "max_bytes"
  1662                      - "max_gas"
  1663                      - "time_iota_ms"
  1664                    properties:
  1665                      max_bytes:
  1666                        type: "string"
  1667                        example: "22020096"
  1668                      max_gas:
  1669                        type: "string"
  1670                        example: "1000"
  1671                      time_iota_ms:
  1672                        type: "string"
  1673                        example: "1000"
  1674                  evidence:
  1675                    type: "object"
  1676                    required:
  1677                      - "max_age"
  1678                    properties:
  1679                      max_age:
  1680                        type: "string"
  1681                        example: "100000"
  1682                  validator:
  1683                    type: "object"
  1684                    required:
  1685                      - "pub_key_types"
  1686                    properties:
  1687                      pub_key_types:
  1688                        type: "array"
  1689                        items:
  1690                          type: "string"
  1691                        example:
  1692                          - "ed25519"
  1693  
  1694      CommitResponse:
  1695        type: "object"
  1696        required:
  1697          - "jsonrpc"
  1698          - "id"
  1699          - "result"
  1700        properties:
  1701          jsonrpc:
  1702            type: "string"
  1703            example: "2.0"
  1704          id:
  1705            type: "number"
  1706            example: 0
  1707          result:
  1708            required:
  1709              - "signed_header"
  1710              - "canonical"
  1711            properties:
  1712              signed_header:
  1713                required:
  1714                  - "header"
  1715                  - "commit"
  1716                properties:
  1717                  header:
  1718                    required:
  1719                      - "version"
  1720                      - "chain_id"
  1721                      - "height"
  1722                      - "time"
  1723                      - "last_block_id"
  1724                      - "last_commit_hash"
  1725                      - "data_hash"
  1726                      - "validators_hash"
  1727                      - "next_validators_hash"
  1728                      - "consensus_hash"
  1729                      - "app_hash"
  1730                      - "last_results_hash"
  1731                      - "evidence_hash"
  1732                      - "proposer_address"
  1733                    properties:
  1734                      version:
  1735                        required:
  1736                          - "block"
  1737                          - "app"
  1738                        properties:
  1739                          block:
  1740                            type: "string"
  1741                            example: "10"
  1742                          app:
  1743                            type: "string"
  1744                            example: "0"
  1745                        type: "object"
  1746                      chain_id:
  1747                        type: "string"
  1748                        example: "cosmoshub-2"
  1749                      height:
  1750                        type: "string"
  1751                        example: "12"
  1752                      time:
  1753                        type: "string"
  1754                        example: "2019-04-22T17:01:51.701356223Z"
  1755                      last_block_id:
  1756                        required:
  1757                          - "hash"
  1758                          - "parts"
  1759                        properties:
  1760                          hash:
  1761                            type: "string"
  1762                            example: "D82C2734BB0E76C772A10994B210EF9D11505D1B98CB189D9CF7F9A5488672A5"
  1763                          parts:
  1764                            required:
  1765                              - "total"
  1766                              - "hash"
  1767                            properties:
  1768                              total:
  1769                                type: "string"
  1770                                example: "1"
  1771                              hash:
  1772                                type: "string"
  1773                                example: "CB02DCAA7FB46BF874052EC2273FD0B1F2CF2E1593298D9781E60FE9C3DB8638"
  1774                            type: "object"
  1775                        type: "object"
  1776                      last_commit_hash:
  1777                        type: "string"
  1778                        example: "21B9BC845AD2CB2C4193CDD17BFC506F1EBE5A7402E84AD96E64171287A34812"
  1779                      data_hash:
  1780                        type: "string"
  1781                        example: "970886F99E77ED0D60DA8FCE0447C2676E59F2F77302B0C4AA10E1D02F18EF73"
  1782                      validators_hash:
  1783                        type: "string"
  1784                        example: "D658BFD100CA8025CFD3BECFE86194322731D387286FBD26E059115FD5F2BCA0"
  1785                      next_validators_hash:
  1786                        type: "string"
  1787                        example: "D658BFD100CA8025CFD3BECFE86194322731D387286FBD26E059115FD5F2BCA0"
  1788                      consensus_hash:
  1789                        type: "string"
  1790                        example: "0F2908883A105C793B74495EB7D6DF2EEA479ED7FC9349206A65CB0F9987A0B8"
  1791                      app_hash:
  1792                        type: "string"
  1793                        example: "223BF64D4A01074DC523A80E76B9BBC786C791FB0A1893AC5B14866356FCFD6C"
  1794                      last_results_hash:
  1795                        type: "string"
  1796                        example: ""
  1797                      evidence_hash:
  1798                        type: "string"
  1799                        example: ""
  1800                      proposer_address:
  1801                        type: "string"
  1802                        example: "D540AB022088612AC74B287D076DBFBC4A377A2E"
  1803                    type: "object"
  1804                  commit:
  1805                    required:
  1806                      - "height"
  1807                      - "round"
  1808                      - "block_id"
  1809                      - "signatures"
  1810                    properties:
  1811                      height:
  1812                        type: "string"
  1813                        example: "1311801"
  1814                      round:
  1815                        type: "string"
  1816                        example: "0"
  1817                      block_id:
  1818                        required:
  1819                          - "hash"
  1820                          - "parts"
  1821                        properties:
  1822                          hash:
  1823                            type: "string"
  1824                            example: "112BC173FD838FB68EB43476816CD7B4C6661B6884A9E357B417EE957E1CF8F7"
  1825                          parts:
  1826                            required:
  1827                              - "total"
  1828                              - "hash"
  1829                            properties:
  1830                              total:
  1831                                type: "string"
  1832                                example: "1"
  1833                              hash:
  1834                                type: "string"
  1835                                example: "38D4B26B5B725C4F13571EFE022C030390E4C33C8CF6F88EDD142EA769642DBD"
  1836                            type: "object"
  1837                        type: "object"
  1838                      signatures:
  1839                        type: "array"
  1840                        items:
  1841                          type: "object"
  1842                          properties:
  1843                            block_id_flag:
  1844                              type: "number"
  1845                              example: 2
  1846                            validator_address:
  1847                              type: "string"
  1848                              example: "000001E443FD237E4B616E2FA69DF4EE3D49A94F"
  1849                            timestamp:
  1850                              type: "string"
  1851                              example: "2019-04-22T17:01:58.376629719Z"
  1852                            signature:
  1853                              type: "string"
  1854                              example: "14jaTQXYRt8kbLKEhdHq7AXycrFImiLuZx50uOjs2+Zv+2i7RTG/jnObD07Jo2ubZ8xd7bNBJMqkgtkd0oQHAw=="
  1855                    type: "object"
  1856                type: "object"
  1857              canonical:
  1858                type: "boolean"
  1859                example: true
  1860            type: "object"
  1861      ValidatorsResponse:
  1862        type: object
  1863        required:
  1864          - "jsonrpc"
  1865          - "id"
  1866          - "result"
  1867        properties:
  1868          jsonrpc:
  1869            type: "string"
  1870            example: "2.0"
  1871          id:
  1872            type: "number"
  1873            example: 0
  1874          result:
  1875            required:
  1876              - "block_height"
  1877              - "validators"
  1878            properties:
  1879              block_height:
  1880                type: "string"
  1881                example: "55"
  1882              validators:
  1883                type: "array"
  1884                items:
  1885                  type: "object"
  1886                  properties:
  1887                    address:
  1888                      type: "string"
  1889                      example: "000001E443FD237E4B616E2FA69DF4EE3D49A94F"
  1890                    pub_key:
  1891                      required:
  1892                        - "type"
  1893                        - "value"
  1894                      properties:
  1895                        type:
  1896                          type: "string"
  1897                          example: "tendermint/PubKeyEd25519"
  1898                        value:
  1899                          type: "string"
  1900                          example: "9tK9IT+FPdf2qm+5c2qaxi10sWP+3erWTKgftn2PaQM="
  1901                      type: "object"
  1902                    voting_power:
  1903                      type: "string"
  1904                      example: "250353"
  1905                    proposer_priority:
  1906                      type: "string"
  1907                      example: "13769415"
  1908              count:
  1909                type: "number"
  1910                example: 1
  1911              total:
  1912                type: "number"
  1913                example: 25
  1914            type: "object"
  1915      GenesisResponse:
  1916        type: object
  1917        required:
  1918          - "jsonrpc"
  1919          - "id"
  1920          - "result"
  1921        properties:
  1922          jsonrpc:
  1923            type: "string"
  1924            example: "2.0"
  1925          id:
  1926            type: "number"
  1927            example: 0
  1928          result:
  1929            type: "object"
  1930            required:
  1931              - "genesis"
  1932            properties:
  1933              genesis:
  1934                type: "object"
  1935                required:
  1936                  - "genesis_time"
  1937                  - "chain_id"
  1938                  - "consensus_params"
  1939                  - "validators"
  1940                  - "app_hash"
  1941                properties:
  1942                  genesis_time:
  1943                    type: "string"
  1944                    example: "2019-04-22T17:00:00Z"
  1945                  chain_id:
  1946                    type: "string"
  1947                    example: "cosmoshub-2"
  1948                  consensus_params:
  1949                    type: "object"
  1950                    required:
  1951                      - "block"
  1952                      - "evidence"
  1953                      - "validator"
  1954                    properties:
  1955                      block:
  1956                        type: "object"
  1957                        required:
  1958                          - "max_bytes"
  1959                          - "max_gas"
  1960                          - "time_iota_ms"
  1961                        properties:
  1962                          max_bytes:
  1963                            type: "string"
  1964                            example: "22020096"
  1965                          max_gas:
  1966                            type: "string"
  1967                            example: "1000"
  1968                          time_iota_ms:
  1969                            type: "string"
  1970                            example: "1000"
  1971                      evidence:
  1972                        type: "object"
  1973                        required:
  1974                          - "max_age"
  1975                        properties:
  1976                          max_age:
  1977                            type: "string"
  1978                            example: "100000"
  1979                      validator:
  1980                        type: "object"
  1981                        required:
  1982                          - "pub_key_types"
  1983                        properties:
  1984                          pub_key_types:
  1985                            type: "array"
  1986                            items:
  1987                              type: "string"
  1988                            example:
  1989                              - "ed25519"
  1990                  validators:
  1991                    type: "array"
  1992                    items:
  1993                      type: "object"
  1994                      properties:
  1995                        address:
  1996                          type: "string"
  1997                          example: "B00A6323737F321EB0B8D59C6FD497A14B60938A"
  1998                        pub_key:
  1999                          required:
  2000                            - "type"
  2001                            - "value"
  2002                          properties:
  2003                            type:
  2004                              type: "string"
  2005                              example: "tendermint/PubKeyEd25519"
  2006                            value:
  2007                              type: "string"
  2008                              example: "cOQZvh/h9ZioSeUMZB/1Vy1Xo5x2sjrVjlE/qHnYifM="
  2009                          type: "object"
  2010                        power:
  2011                          type: "string"
  2012                          example: "9328525"
  2013                        name:
  2014                          type: "string"
  2015                          example: "Certus One"
  2016                  app_hash:
  2017                    type: "string"
  2018                    example: ""
  2019                  app_state:
  2020                    properties: {}
  2021                    type: "object"
  2022  
  2023      DumpConsensusResponse:
  2024        type: object
  2025        required:
  2026          - "jsonrpc"
  2027          - "id"
  2028          - "result"
  2029        properties:
  2030          jsonrpc:
  2031            type: "string"
  2032            example: "2.0"
  2033          id:
  2034            type: "number"
  2035            example: 0
  2036          result:
  2037            required:
  2038              - "round_state"
  2039              - "peers"
  2040            properties:
  2041              round_state:
  2042                required:
  2043                  - "height"
  2044                  - "round"
  2045                  - "step"
  2046                  - "start_time"
  2047                  - "commit_time"
  2048                  - "validators"
  2049                  - "proposal"
  2050                  - "proposal_block"
  2051                  - "proposal_block_parts"
  2052                  - "locked_round"
  2053                  - "locked_block"
  2054                  - "locked_block_parts"
  2055                  - "valid_round"
  2056                  - "valid_block"
  2057                  - "valid_block_parts"
  2058                  - "votes"
  2059                  - "commit_round"
  2060                  - "last_commit"
  2061                  - "last_validators"
  2062                  - "triggered_timeout_precommit"
  2063                properties:
  2064                  height:
  2065                    type: "string"
  2066                    example: "1311801"
  2067                  round:
  2068                    type: "string"
  2069                    example: "0"
  2070                  step:
  2071                    type: "number"
  2072                    example: 3
  2073                  start_time:
  2074                    type: "string"
  2075                    example: "2019-08-05T11:28:49.064658805Z"
  2076                  commit_time:
  2077                    type: "string"
  2078                    example: "2019-08-05T11:28:44.064658805Z"
  2079                  validators:
  2080                    required:
  2081                      - "validators"
  2082                      - "proposer"
  2083                    properties:
  2084                      validators:
  2085                        type: "array"
  2086                        items:
  2087                          type: "object"
  2088                          properties:
  2089                            address:
  2090                              type: "string"
  2091                              example: "000001E443FD237E4B616E2FA69DF4EE3D49A94F"
  2092                            pub_key:
  2093                              required:
  2094                                - "type"
  2095                                - "value"
  2096                              properties:
  2097                                type:
  2098                                  type: "string"
  2099                                  example: "tendermint/PubKeyEd25519"
  2100                                value:
  2101                                  type: "string"
  2102                                  example: "9tK9IT+FPdf2qm+5c2qaxi10sWP+3erWTKgftn2PaQM="
  2103                              type: "object"
  2104                            voting_power:
  2105                              type: "string"
  2106                              example: "239727"
  2107                            proposer_priority:
  2108                              type: "string"
  2109                              example: "-11896414"
  2110                      proposer:
  2111                        required:
  2112                          - "address"
  2113                          - "pub_key"
  2114                          - "voting_power"
  2115                          - "proposer_priority"
  2116                        properties:
  2117                          address:
  2118                            type: "string"
  2119                            example: "708FDDCE121CDADA502F2B0252FEF13FDAA31E50"
  2120                          pub_key:
  2121                            required:
  2122                              - "type"
  2123                              - "value"
  2124                            properties:
  2125                              type:
  2126                                type: "string"
  2127                                example: "tendermint/PubKeyEd25519"
  2128                              value:
  2129                                type: "string"
  2130                                example: "VNMNfw7mrQBSpEvCtA9ykOe6BoR00RM9b/a9v3vXZhY="
  2131                            type: "object"
  2132                          voting_power:
  2133                            type: "string"
  2134                            example: "295360"
  2135                          proposer_priority:
  2136                            type: "string"
  2137                            example: "-88886833"
  2138                        type: "object"
  2139                    type: "object"
  2140                  locked_round:
  2141                    type: "string"
  2142                    example: "-1"
  2143                  valid_round:
  2144                    type: "string"
  2145                    example: "-1"
  2146                  votes:
  2147                    type: "array"
  2148                    items:
  2149                      type: "object"
  2150                      properties:
  2151                        round:
  2152                          type: "string"
  2153                          example: "0"
  2154                        prevotes:
  2155                          type: "array"
  2156                          x-nullable: true
  2157                          items:
  2158                            type: "string"
  2159                          example:
  2160                            - "nil-Vote"
  2161                            - "Vote{19:46A3F8B8393B 1311801/00/1(Prevote) 000000000000 64CE682305CB @ 2019-08-05T11:28:47.374703444Z}"
  2162                        prevotes_bit_array:
  2163                          type: "string"
  2164                          example: "BA{100:___________________x________________________________________________________________________________} 209706/170220253 = 0.00"
  2165                        precommits:
  2166                          type: "array"
  2167                          x-nullable: true
  2168                          items:
  2169                            type: "string"
  2170                          example:
  2171                            - "nil-Vote"
  2172                        precommits_bit_array:
  2173                          type: "string"
  2174                          example: "BA{100:____________________________________________________________________________________________________} 0/170220253 = 0.00"
  2175                  commit_round:
  2176                    type: "string"
  2177                    example: "-1"
  2178                  last_commit:
  2179                    x-nullable: true
  2180                    required:
  2181                      - "votes"
  2182                      - "votes_bit_array"
  2183                      - "peer_maj_23s"
  2184                    properties:
  2185                      votes:
  2186                        type: "array"
  2187                        items:
  2188                          type: "string"
  2189                        example:
  2190                          - "Vote{0:000001E443FD 1311800/00/2(Precommit) 3071ADB27D1A 77EE1B6B6847 @ 2019-08-05T11:28:43.810128139Z}"
  2191                      votes_bit_array:
  2192                        type: "string"
  2193                        example: "BA{100:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx} 170220253/170220253 = 1.00"
  2194                      peer_maj_23s:
  2195                        properties: {}
  2196                        type: "object"
  2197                    type: "object"
  2198                  last_validators:
  2199                    required:
  2200                      - "validators"
  2201                      - "proposer"
  2202                    properties:
  2203                      validators:
  2204                        type: "array"
  2205                        items:
  2206                          type: "object"
  2207                          properties:
  2208                            address:
  2209                              type: "string"
  2210                              example: "000001E443FD237E4B616E2FA69DF4EE3D49A94F"
  2211                            pub_key:
  2212                              required:
  2213                                - "type"
  2214                                - "value"
  2215                              properties:
  2216                                type:
  2217                                  type: "string"
  2218                                  example: "tendermint/PubKeyEd25519"
  2219                                value:
  2220                                  type: "string"
  2221                                  example: "9tK9IT+FPdf2qm+5c2qaxi10sWP+3erWTKgftn2PaQM="
  2222                              type: "object"
  2223                            voting_power:
  2224                              type: "string"
  2225                              example: "239727"
  2226                            proposer_priority:
  2227                              type: "string"
  2228                              example: "-12136141"
  2229                      proposer:
  2230                        required:
  2231                          - "address"
  2232                          - "pub_key"
  2233                          - "voting_power"
  2234                          - "proposer_priority"
  2235                        properties:
  2236                          address:
  2237                            type: "string"
  2238                            example: "B00A6323737F321EB0B8D59C6FD497A14B60938A"
  2239                          pub_key:
  2240                            required:
  2241                              - "type"
  2242                              - "value"
  2243                            properties:
  2244                              type:
  2245                                type: "string"
  2246                                example: "tendermint/PubKeyEd25519"
  2247                              value:
  2248                                type: "string"
  2249                                example: "cOQZvh/h9ZioSeUMZB/1Vy1Xo5x2sjrVjlE/qHnYifM="
  2250                            type: "object"
  2251                          voting_power:
  2252                            type: "string"
  2253                            example: "8590153"
  2254                          proposer_priority:
  2255                            type: "string"
  2256                            example: "-79515145"
  2257                        type: "object"
  2258                    type: "object"
  2259                  triggered_timeout_precommit:
  2260                    type: "boolean"
  2261                    example: false
  2262                type: "object"
  2263              peers:
  2264                type: "array"
  2265                items:
  2266                  type: "object"
  2267                  properties:
  2268                    node_address:
  2269                      type: "string"
  2270                      example: "357f6a6c1d27414579a8185060aa8adf9815c43c@68.183.41.207:26656"
  2271                    peer_state:
  2272                      required:
  2273                        - "round_state"
  2274                        - "stats"
  2275                      properties:
  2276                        round_state:
  2277                          required:
  2278                            - "height"
  2279                            - "round"
  2280                            - "step"
  2281                            - "start_time"
  2282                            - "proposal"
  2283                            - "proposal_block_parts_header"
  2284                            - "proposal_block_parts"
  2285                            - "proposal_pol_round"
  2286                            - "proposal_pol"
  2287                            - "prevotes"
  2288                            - "precommits"
  2289                            - "last_commit_round"
  2290                            - "last_commit"
  2291                            - "catchup_commit_round"
  2292                            - "catchup_commit"
  2293                          properties:
  2294                            height:
  2295                              type: "string"
  2296                              example: "1311801"
  2297                            round:
  2298                              type: "string"
  2299                              example: "0"
  2300                            step:
  2301                              type: "number"
  2302                              example: 3
  2303                            start_time:
  2304                              type: "string"
  2305                              example: "2019-08-05T11:28:49.21730864Z"
  2306                            proposal:
  2307                              type: "boolean"
  2308                              example: false
  2309                            proposal_block_parts_header:
  2310                              required:
  2311                                - "total"
  2312                                - "hash"
  2313                              properties:
  2314                                total:
  2315                                  type: "string"
  2316                                  example: "0"
  2317                                hash:
  2318                                  type: "string"
  2319                                  example: ""
  2320                              type: "object"
  2321                            proposal_pol_round:
  2322                              x-nullable: true
  2323                              type: "string"
  2324                              example: "-1"
  2325                            proposal_pol:
  2326                              x-nullable: true
  2327                              type: "string"
  2328                              example: "____________________________________________________________________________________________________"
  2329                            prevotes:
  2330                              x-nullable: true
  2331                              type: "string"
  2332                              example: "___________________x________________________________________________________________________________"
  2333                            precommits:
  2334                              x-nullable: true
  2335                              type: "string"
  2336                              example: "____________________________________________________________________________________________________"
  2337                            last_commit_round:
  2338                              x-nullable: true
  2339                              type: "string"
  2340                              example: "0"
  2341                            last_commit:
  2342                              x-nullable: true
  2343                              type: "string"
  2344                              example: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  2345                            catchup_commit_round:
  2346                              type: "string"
  2347                              x-nullable: true
  2348                              example: "-1"
  2349                            catchup_commit:
  2350                              x-nullable: true
  2351                              type: "string"
  2352                              example: "____________________________________________________________________________________________________"
  2353                          type: "object"
  2354                        stats:
  2355                          required:
  2356                            - "votes"
  2357                            - "block_parts"
  2358                          properties:
  2359                            votes:
  2360                              type: "string"
  2361                              example: "1159558"
  2362                            block_parts:
  2363                              type: "string"
  2364                              example: "4786"
  2365                          type: "object"
  2366                      type: "object"
  2367            type: "object"
  2368      ConsensusStateResponse:
  2369        type: object
  2370        required:
  2371          - "jsonrpc"
  2372          - "id"
  2373          - "result"
  2374        properties:
  2375          jsonrpc:
  2376            type: "string"
  2377            example: "2.0"
  2378          id:
  2379            type: "number"
  2380            example: 0
  2381          result:
  2382            required:
  2383              - "round_state"
  2384            properties:
  2385              round_state:
  2386                required:
  2387                  - "height/round/step"
  2388                  - "start_time"
  2389                  - "proposal_block_hash"
  2390                  - "locked_block_hash"
  2391                  - "valid_block_hash"
  2392                  - "height_vote_set"
  2393                  - "proposer"
  2394                properties:
  2395                  height/round/step:
  2396                    type: "string"
  2397                    example: "1262197/0/8"
  2398                  start_time:
  2399                    type: "string"
  2400                    example: "2019-08-01T11:52:38.962730289Z"
  2401                  proposal_block_hash:
  2402                    type: "string"
  2403                    example: "634ADAF1F402663BEC2ABC340ECE8B4B45AA906FA603272ACC5F5EED3097E009"
  2404                  locked_block_hash:
  2405                    type: "string"
  2406                    example: "634ADAF1F402663BEC2ABC340ECE8B4B45AA906FA603272ACC5F5EED3097E009"
  2407                  valid_block_hash:
  2408                    type: "string"
  2409                    example: "634ADAF1F402663BEC2ABC340ECE8B4B45AA906FA603272ACC5F5EED3097E009"
  2410                  height_vote_set:
  2411                    type: "array"
  2412                    items:
  2413                      type: "object"
  2414                      properties:
  2415                        round:
  2416                          type: "string"
  2417                          example: "0"
  2418                        prevotes:
  2419                          type: "array"
  2420                          items:
  2421                            type: "string"
  2422                          example:
  2423                            - "Vote{0:000001E443FD 1262197/00/1(Prevote) 634ADAF1F402 7BB974E1BA40 @ 2019-08-01T11:52:35.513572509Z}"
  2424                            - "nil-Vote"
  2425                        prevotes_bit_array:
  2426                          type: "string"
  2427                          example: "BA{100:xxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx} 169753436/170151262 = 1.00"
  2428                        precommits:
  2429                          type: "array"
  2430                          items:
  2431                            type: "string"
  2432                          example:
  2433                            - "Vote{5:18C78D135C9D 1262197/00/2(Precommit) 634ADAF1F402 8B5EFFFEABCD @ 2019-08-01T11:52:36.25600005Z}"
  2434                            - "nil-Vote"
  2435                        precommits_bit_array:
  2436                          type: "string"
  2437                          example: "BA{100:xxxxxx_xxxxx_xxxx_x_xxx_xx_xx_xx__x_x_x__xxxxxxxxxxxxxx_xxxx_xx_xxxxxx_xxxxxxxx_xxxx_xxx_x_xxxx__xxx} 118726247/170151262 = 0.70"
  2438                  proposer:
  2439                    type: "object"
  2440                    properties:
  2441                      address:
  2442                        type: "string"
  2443                        example: "D540AB022088612AC74B287D076DBFBC4A377A2E"
  2444                      index:
  2445                        type: "string"
  2446                        example: "0"
  2447                type: "object"
  2448            type: "object"
  2449      ConsensusParamsResponse:
  2450        type: object
  2451        required:
  2452          - "jsonrpc"
  2453          - "id"
  2454          - "result"
  2455        properties:
  2456          jsonrpc:
  2457            type: "string"
  2458            example: "2.0"
  2459          id:
  2460            type: "number"
  2461            example: 0
  2462          result:
  2463            type: "object"
  2464            required:
  2465              - "block_height"
  2466              - "consensus_params"
  2467            properties:
  2468              block_height:
  2469                type: "string"
  2470                example: "1313448"
  2471              consensus_params:
  2472                type: "object"
  2473                required:
  2474                  - "block"
  2475                  - "evidence"
  2476                  - "validator"
  2477                properties:
  2478                  block:
  2479                    type: "object"
  2480                    required:
  2481                      - "max_bytes"
  2482                      - "max_gas"
  2483                      - "time_iota_ms"
  2484                    properties:
  2485                      max_bytes:
  2486                        type: "string"
  2487                        example: "22020096"
  2488                      max_gas:
  2489                        type: "string"
  2490                        example: "1000"
  2491                      time_iota_ms:
  2492                        type: "string"
  2493                        example: "1000"
  2494                  evidence:
  2495                    type: "object"
  2496                    required:
  2497                      - "max_age"
  2498                    properties:
  2499                      max_age:
  2500                        type: "string"
  2501                        example: "100000"
  2502                  validator:
  2503                    type: "object"
  2504                    required:
  2505                      - "pub_key_types"
  2506                    properties:
  2507                      pub_key_types:
  2508                        type: "array"
  2509                        items:
  2510                          type: "string"
  2511                        example:
  2512                          - "ed25519"
  2513  
  2514      NumUnconfirmedTransactionsResponse:
  2515        type: object
  2516        required:
  2517          - "jsonrpc"
  2518          - "id"
  2519          - "result"
  2520        properties:
  2521          jsonrpc:
  2522            type: "string"
  2523            example: "2.0"
  2524          id:
  2525            type: "number"
  2526            example: 0
  2527          result:
  2528            required:
  2529              - "n_txs"
  2530              - "total"
  2531              - "total_bytes"
  2532            properties:
  2533              n_txs:
  2534                type: "string"
  2535                example: "31"
  2536              total:
  2537                type: "string"
  2538                example: "82"
  2539              total_bytes:
  2540                type: "string"
  2541                example: "19974"
  2542            #          txs:
  2543            #            type: "array"
  2544            #            x-nullable: true
  2545            #            items:
  2546            #              type: "string"
  2547            #              x-nullable: true
  2548            #            example:
  2549            #              - "gAPwYl3uCjCMTXENChSMnIkb5ZpYHBKIZqecFEV2tuZr7xIUA75/FmYq9WymsOBJ0XSJ8yV8zmQKMIxNcQ0KFIyciRvlmlgcEohmp5wURXa25mvvEhQbrvwbvlNiT+Yjr86G+YQNx7kRVgowjE1xDQoUjJyJG+WaWBwSiGannBRFdrbma+8SFK2m+1oxgILuQLO55n8mWfnbIzyPCjCMTXENChSMnIkb5ZpYHBKIZqecFEV2tuZr7xIUQNGfkmhTNMis4j+dyMDIWXdIPiYKMIxNcQ0KFIyciRvlmlgcEohmp5wURXa25mvvEhS8sL0D0wwgGCItQwVowak5YB38KRIUCg4KBXVhdG9tEgUxMDA1NBDoxRgaagom61rphyECn8x7emhhKdRCB2io7aS/6Cpuq5NbVqbODmqOT3jWw6kSQKUresk+d+Gw0BhjiggTsu8+1voW+VlDCQ1GRYnMaFOHXhyFv7BCLhFWxLxHSAYT8a5XqoMayosZf9mANKdXArA="
  2550            type: "object"
  2551      UnconfirmedTransactionsResponse:
  2552        type: object
  2553        required:
  2554          - "jsonrpc"
  2555          - "id"
  2556          - "result"
  2557        properties:
  2558          jsonrpc:
  2559            type: "string"
  2560            example: "2.0"
  2561          id:
  2562            type: "number"
  2563            example: 0
  2564          result:
  2565            required:
  2566              - "n_txs"
  2567              - "total"
  2568              - "total_bytes"
  2569              - "txs"
  2570            properties:
  2571              n_txs:
  2572                type: "string"
  2573                example: "82"
  2574              total:
  2575                type: "string"
  2576                example: "82"
  2577              total_bytes:
  2578                type: "string"
  2579                example: "19974"
  2580              txs:
  2581                type: array
  2582                x-nullable: true
  2583                items:
  2584                  type: string
  2585                  x-nullable: true
  2586                example:
  2587                  - "gAPwYl3uCjCMTXENChSMnIkb5ZpYHBKIZqecFEV2tuZr7xIUA75/FmYq9WymsOBJ0XSJ8yV8zmQKMIxNcQ0KFIyciRvlmlgcEohmp5wURXa25mvvEhQbrvwbvlNiT+Yjr86G+YQNx7kRVgowjE1xDQoUjJyJG+WaWBwSiGannBRFdrbma+8SFK2m+1oxgILuQLO55n8mWfnbIzyPCjCMTXENChSMnIkb5ZpYHBKIZqecFEV2tuZr7xIUQNGfkmhTNMis4j+dyMDIWXdIPiYKMIxNcQ0KFIyciRvlmlgcEohmp5wURXa25mvvEhS8sL0D0wwgGCItQwVowak5YB38KRIUCg4KBXVhdG9tEgUxMDA1NBDoxRgaagom61rphyECn8x7emhhKdRCB2io7aS/6Cpuq5NbVqbODmqOT3jWw6kSQKUresk+d+Gw0BhjiggTsu8+1voW+VlDCQ1GRYnMaFOHXhyFv7BCLhFWxLxHSAYT8a5XqoMayosZf9mANKdXArA="
  2588            type: "object"
  2589      TxSearchResponse:
  2590        type: object
  2591        required:
  2592          - "jsonrpc"
  2593          - "id"
  2594          - "result"
  2595        properties:
  2596          jsonrpc:
  2597            type: "string"
  2598            example: "2.0"
  2599          id:
  2600            type: "number"
  2601            example: 0
  2602          result:
  2603            required:
  2604              - "txs"
  2605              - "total_count"
  2606            properties:
  2607              txs:
  2608                type: "array"
  2609                items:
  2610                  type: "object"
  2611                  properties:
  2612                    hash:
  2613                      type: "string"
  2614                      example: "D70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED"
  2615                    height:
  2616                      type: "string"
  2617                      example: "1000"
  2618                    index:
  2619                      type: "number"
  2620                      example: 0
  2621                    tx_result:
  2622                      required:
  2623                        - "log"
  2624                        - "gasWanted"
  2625                        - "gasUsed"
  2626                        - "tags"
  2627                      properties:
  2628                        log:
  2629                          type: "string"
  2630                          example: '[{"msg_index":"0","success":true,"log":""}]'
  2631                        gasWanted:
  2632                          type: "string"
  2633                          example: "200000"
  2634                        gasUsed:
  2635                          type: "string"
  2636                          example: "28596"
  2637                        tags:
  2638                          type: "array"
  2639                          items:
  2640                            type: "object"
  2641                            properties:
  2642                              key:
  2643                                type: "string"
  2644                                example: "YWN0aW9u"
  2645                              value:
  2646                                type: "string"
  2647                                example: "c2VuZA=="
  2648                      type: "object"
  2649                    tx:
  2650                      type: "string"
  2651                      example: "5wHwYl3uCkaoo2GaChQmSIu8hxpJxLcCuIi8fiHN4TMwrRIU/Af1cEG7Rcs/6LjTl7YjRSymJfYaFAoFdWF0b20SCzE0OTk5OTk1MDAwEhMKDQoFdWF0b20SBDUwMDAQwJoMGmoKJuta6YchAwswBShaB1wkZBctLIhYqBC3JrAI28XGzxP+rVEticGEEkAc+khTkKL9CDE47aDvjEHvUNt+izJfT4KVF2v2JkC+bmlH9K08q3PqHeMI9Z5up+XMusnTqlP985KF+SI5J3ZOIhhNYWRlIGJ5IENpcmNsZSB3aXRoIGxvdmU="
  2652                    proof:
  2653                      required:
  2654                        - "RootHash"
  2655                        - "Data"
  2656                        - "Proof"
  2657                      properties:
  2658                        RootHash:
  2659                          type: "string"
  2660                          example: "72FE6BF6D4109105357AECE0A82E99D0F6288854D16D8767C5E72C57F876A14D"
  2661                        Data:
  2662                          type: "string"
  2663                          example: "5wHwYl3uCkaoo2GaChQmSIu8hxpJxLcCuIi8fiHN4TMwrRIU/Af1cEG7Rcs/6LjTl7YjRSymJfYaFAoFdWF0b20SCzE0OTk5OTk1MDAwEhMKDQoFdWF0b20SBDUwMDAQwJoMGmoKJuta6YchAwswBShaB1wkZBctLIhYqBC3JrAI28XGzxP+rVEticGEEkAc+khTkKL9CDE47aDvjEHvUNt+izJfT4KVF2v2JkC+bmlH9K08q3PqHeMI9Z5up+XMusnTqlP985KF+SI5J3ZOIhhNYWRlIGJ5IENpcmNsZSB3aXRoIGxvdmU="
  2664                        Proof:
  2665                          required:
  2666                            - "total"
  2667                            - "index"
  2668                            - "leaf_hash"
  2669                            - "aunts"
  2670                          properties:
  2671                            total:
  2672                              type: "string"
  2673                              example: "2"
  2674                            index:
  2675                              type: "string"
  2676                              example: "0"
  2677                            leaf_hash:
  2678                              type: "string"
  2679                              example: "eoJxKCzF3m72Xiwb/Q43vJ37/2Sx8sfNS9JKJohlsYI="
  2680                            aunts:
  2681                              type: "array"
  2682                              items:
  2683                                type: "string"
  2684                              example:
  2685                                - "eWb+HG/eMmukrQj4vNGyFYb3nKQncAWacq4HF5eFzDY="
  2686                          type: "object"
  2687                      type: "object"
  2688              total_count:
  2689                type: "string"
  2690                example: "2"
  2691            type: "object"
  2692      TxResponse:
  2693        type: object
  2694        required:
  2695          - "jsonrpc"
  2696          - "id"
  2697          - "result"
  2698        properties:
  2699          jsonrpc:
  2700            type: "string"
  2701            example: "2.0"
  2702          id:
  2703            type: "number"
  2704            example: 0
  2705          result:
  2706            required:
  2707              - "hash"
  2708              - "height"
  2709              - "index"
  2710              - "tx_result"
  2711              - "tx"
  2712            properties:
  2713              hash:
  2714                type: "string"
  2715                example: "D70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED"
  2716              height:
  2717                type: "string"
  2718                example: "1000"
  2719              index:
  2720                type: "number"
  2721                example: 0
  2722              tx_result:
  2723                required:
  2724                  - "log"
  2725                  - "gasWanted"
  2726                  - "gasUsed"
  2727                  - "tags"
  2728                properties:
  2729                  log:
  2730                    type: "string"
  2731                    example: '[{"msg_index":"0","success":true,"log":""}]'
  2732                  gasWanted:
  2733                    type: "string"
  2734                    example: "200000"
  2735                  gasUsed:
  2736                    type: "string"
  2737                    example: "28596"
  2738                  tags:
  2739                    type: "array"
  2740                    items:
  2741                      type: "object"
  2742                      properties:
  2743                        key:
  2744                          type: "string"
  2745                          example: "YWN0aW9u"
  2746                        value:
  2747                          type: "string"
  2748                          example: "c2VuZA=="
  2749                type: "object"
  2750              tx:
  2751                type: "string"
  2752                example: "5wHwYl3uCkaoo2GaChQmSIu8hxpJxLcCuIi8fiHN4TMwrRIU/Af1cEG7Rcs/6LjTl7YjRSymJfYaFAoFdWF0b20SCzE0OTk5OTk1MDAwEhMKDQoFdWF0b20SBDUwMDAQwJoMGmoKJuta6YchAwswBShaB1wkZBctLIhYqBC3JrAI28XGzxP+rVEticGEEkAc+khTkKL9CDE47aDvjEHvUNt+izJfT4KVF2v2JkC+bmlH9K08q3PqHeMI9Z5up+XMusnTqlP985KF+SI5J3ZOIhhNYWRlIGJ5IENpcmNsZSB3aXRoIGxvdmU="
  2753            type: "object"
  2754      ABCIInfoResponse:
  2755        type: object
  2756        required:
  2757          - "jsonrpc"
  2758          - "id"
  2759        properties:
  2760          jsonrpc:
  2761            type: "string"
  2762            example: "2.0"
  2763          id:
  2764            type: "number"
  2765            example: 0
  2766          result:
  2767            required:
  2768              - "response"
  2769            properties:
  2770              response:
  2771                required:
  2772                  - "data"
  2773                  - "app_version"
  2774                  - "version"
  2775                properties:
  2776                  data:
  2777                    type: "string"
  2778                    example: '{"size":0}'
  2779                  version:
  2780                    type: string
  2781                    example: "0.16.1"
  2782                  app_version:
  2783                    type: "string"
  2784                    example: "1314126"
  2785                type: "object"
  2786            type: "object"
  2787      ABCIQueryResponse:
  2788        type: object
  2789        required:
  2790          - "error"
  2791          - "result"
  2792          - "id"
  2793          - "jsonrpc"
  2794        properties:
  2795          error:
  2796            type: "string"
  2797            example: ""
  2798          result:
  2799            required:
  2800              - "response"
  2801            properties:
  2802              response:
  2803                required:
  2804                  - "log"
  2805                  - "height"
  2806                  - "proof"
  2807                  - "value"
  2808                  - "key"
  2809                  - "index"
  2810                  - "code"
  2811                properties:
  2812                  log:
  2813                    type: "string"
  2814                    example: "exists"
  2815                  height:
  2816                    type: "string"
  2817                    example: "0"
  2818                  proof:
  2819                    type: "string"
  2820                    example: "010114FED0DAD959F36091AD761C922ABA3CBF1D8349990101020103011406AA2262E2F448242DF2C2607C3CDC705313EE3B0001149D16177BC71E445476174622EA559715C293740C"
  2821                  value:
  2822                    type: "string"
  2823                    example: "61626364"
  2824                  key:
  2825                    type: "string"
  2826                    example: "61626364"
  2827                  index:
  2828                    type: "string"
  2829                    example: "-1"
  2830                  code:
  2831                    type: "string"
  2832                    example: "0"
  2833                type: "object"
  2834            type: "object"
  2835          id:
  2836            type: "number"
  2837            example: 0
  2838          jsonrpc:
  2839            type: "string"
  2840            example: "2.0"
  2841      BroadcastEvidenceResponse:
  2842        type: object
  2843        required:
  2844          - "id"
  2845          - "jsonrpc"
  2846        properties:
  2847          error:
  2848            type: "string"
  2849            example: ""
  2850          result:
  2851            type: "string"
  2852            example: ""
  2853          id:
  2854            type: "number"
  2855            example: 0
  2856          jsonrpc:
  2857            type: "string"
  2858            example: "2.0"
  2859      BroadcastTxCommitResponse:
  2860        type: object
  2861        required:
  2862          - "error"
  2863          - "result"
  2864          - "id"
  2865          - "jsonrpc"
  2866        properties:
  2867          error:
  2868            type: "string"
  2869            example: ""
  2870          result:
  2871            required:
  2872              - "height"
  2873              - "hash"
  2874              - "deliver_tx"
  2875              - "check_tx"
  2876            properties:
  2877              height:
  2878                type: "string"
  2879                example: "26682"
  2880              hash:
  2881                type: "string"
  2882                example: "75CA0F856A4DA078FC4911580360E70CEFB2EBEE"
  2883              deliver_tx:
  2884                required:
  2885                  - "log"
  2886                  - "data"
  2887                  - "code"
  2888                properties:
  2889                  log:
  2890                    type: "string"
  2891                    example: ""
  2892                  data:
  2893                    type: "string"
  2894                    example: ""
  2895                  code:
  2896                    type: "string"
  2897                    example: "0"
  2898                type: "object"
  2899              check_tx:
  2900                required:
  2901                  - "log"
  2902                  - "data"
  2903                  - "code"
  2904                properties:
  2905                  log:
  2906                    type: "string"
  2907                    example: ""
  2908                  data:
  2909                    type: "string"
  2910                    example: ""
  2911                  code:
  2912                    type: "string"
  2913                    example: "0"
  2914                type: "object"
  2915            type: "object"
  2916          id:
  2917            type: "number"
  2918            example: 0
  2919          jsonrpc:
  2920            type: "string"
  2921            example: "2.0"
  2922      BroadcastTxResponse:
  2923        type: object
  2924        required:
  2925          - "jsonrpc"
  2926          - "id"
  2927          - "result"
  2928          - "error"
  2929        properties:
  2930          jsonrpc:
  2931            type: "string"
  2932            example: "2.0"
  2933          id:
  2934            type: "number"
  2935            example: 0
  2936          result:
  2937            required:
  2938              - "code"
  2939              - "data"
  2940              - "log"
  2941              - "hash"
  2942            properties:
  2943              code:
  2944                type: "string"
  2945                example: "0"
  2946              data:
  2947                type: "string"
  2948                example: ""
  2949              log:
  2950                type: "string"
  2951                example: ""
  2952              codespace:
  2953                type: "string"
  2954                example: "ibc"
  2955              hash:
  2956                type: "string"
  2957                example: "0D33F2F03A5234F38706E43004489E061AC40A2E"
  2958            type: "object"
  2959          error:
  2960            type: "string"
  2961            example: ""
  2962      dialPeersPost:
  2963        type: object
  2964        properties:
  2965          Persistent:
  2966            type: boolean
  2967            example: false
  2968          Peers:
  2969            type: array
  2970            items:
  2971              type: "string"
  2972            example:
  2973              ["6f172048b821e3b1ab98ffb0973ba737966eecf8@192.168.1.2:26656"]
  2974      dialSeedsPost:
  2975        type: object
  2976        properties:
  2977          Peers:
  2978            type: array
  2979            items:
  2980              type: "string"
  2981            example:
  2982              ["6f172048b821e3b1ab98ffb0973ba737966eecf8@192.168.1.2:26656"]
  2983      dialResp:
  2984        type: object
  2985        properties:
  2986          Log:
  2987            type: string
  2988            example: "Dialing seeds in progress. See /net_info for details"