github.com/lazyledger/lazyledger-core@v0.35.0-dev.0.20210613111200-4c651f053571/rpc/openapi/openapi.yaml (about)

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