Channels

Channels queries all the IBC channels of a chain.

GEThttps://inj.nownodes.io/ibc/core/channel/v1/channels
Query parameters
Response

A successful response.

Body
channelsarray of object

list of stored channels of the chain.

paginationpagination response

PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.

message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }

heightquery block height

Normally the RevisionHeight is incremented at each height while keeping RevisionNumber the same. However some consensus algorithms may choose to reset the height in certain conditions e.g. hard forks, state-machine breaking changes In these cases, the RevisionNumber is incremented so that height continues to be monitonically increasing even as the RevisionHeight gets reset

Request
const response = await fetch('https://inj.nownodes.io/ibc/core/channel/v1/channels', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "channels": [
    {
      "state": "STATE_UNINITIALIZED_UNSPECIFIED",
      "ordering": "ORDER_NONE_UNSPECIFIED",
      "counterparty": {
        "port_id": "text",
        "channel_id": "text"
      },
      "connection_hops": [
        "text"
      ],
      "version": "text",
      "port_id": "text",
      "channel_id": "text",
      "upgrade_sequence": "text"
    }
  ],
  "pagination": {
    "next_key": "Ynl0ZXM=",
    "total": "text"
  },
  "height": {
    "revision_number": "text",
    "revision_height": "text"
  }
}