Skip to main content

Upgrades

Blockchain Integration Data Query Apis Protocol Rest Queries Upgrades (v1.0.0)

Download OpenAPI specification:Download

API Documentation for Blockchain Integration Data Query Apis Protocol Rest Queries Upgrades

AppliedPlan

AppliedPlan queries a previously applied upgrade plan by its name.

Authorizations:
bearerAuth
path Parameters
name
required
string (name)

name is the name of the applied plan to query for.

Responses

Response samples

Content type
application/json
{
  • "height": 0
}

Authority

Returns the account with authority to conduct upgrades

Since: cosmos-sdk 0.46

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "address": "string"
}

CurrentPlan

CurrentPlan queries the current upgrade plan.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "plan": {
    }
}

ModuleVersions

ModuleVersions queries the list of module versions from state.

Since: cosmos-sdk 0.43

Authorizations:
bearerAuth
query Parameters
moduleName
string (module_name)

module_name is a field to query a specific module consensus version from state. Leaving this empty will fetch the full list of module versions from state

Responses

Response samples

Content type
application/json
{
  • "moduleVersions": [
    ]
}

UpgradedConsensusState

UpgradedConsensusState queries the consensus state that will serve as a trusted kernel for the next version of this chain. It will only be stored at the last height of this chain. UpgradedConsensusState RPC not supported with legacy querier This rpc is deprecated now that IBC has its own replacement (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54)

Authorizations:
bearerAuth
path Parameters
last_height
required
integer or string <int64> (last_height)

last height of the current chain must be sent in request as this is the height under which next consensus state is stored

Responses

Response samples

Content type
application/json
{
  • "upgradedConsensusState": "string"
}