Next sequence

NextSequenceReceive returns the next receive sequence for a given channel.

GET//rest.origin.uptick.network/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequence
Path parameters
channel_id*string

channel unique identifier

port_id*string

port unique identifier

Response

A successful response.

Body
next_sequence_receivenext sequence receive number
proofmerkle proof of existence
proof_heightheight at which the proof was retrieved

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('//rest.origin.uptick.network/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequence', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "next_sequence_receive": "text",
  "proof": "Ynl0ZXM=",
  "proof_height": {
    "revision_number": "text",
    "revision_height": "text"
  }
}

Last updated