cosmos/consensus

Table of Contents

cosmos/consensus/module/v1/module.proto

Top

Module

Module is the config object of the consensus module.

FieldTypeLabelDescription
authority string

authority defines the custom module authority. If not set, defaults to the governance module.

cosmos/consensus/v1/query.proto

Top

Since: cosmos-sdk 0.47

QueryParamsRequest

QueryParamsRequest defines the request type for querying x/consensus parameters.

QueryParamsResponse

QueryParamsResponse defines the response type for querying x/consensus parameters.

FieldTypeLabelDescription
params tendermint.types.ConsensusParams

params are the tendermint consensus params stored in the consensus module. Please note that `params.version` is not populated in this response, it is tracked separately in the x/upgrade module.

Query

Query defines the gRPC querier service.

Method NameRequest TypeResponse TypeDescription
Params QueryParamsRequest QueryParamsResponse

Params queries the parameters of x/consensus module.

Methods with HTTP bindings

Method Name Method Pattern Body
Params GET /cosmos/consensus/v1/params

cosmos/consensus/v1/tx.proto

Top

Since: cosmos-sdk 0.47

MsgUpdateParams

MsgUpdateParams is the Msg/UpdateParams request type.

FieldTypeLabelDescription
authority string

authority is the address that controls the module (defaults to x/gov unless overwritten).

block tendermint.types.BlockParams

params defines the x/consensus parameters to update. VersionsParams is not included in this Msg because it is tracked separarately in x/upgrade. NOTE: All parameters must be supplied.

evidence tendermint.types.EvidenceParams

validator tendermint.types.ValidatorParams

abci tendermint.types.ABCIParams

Since: cosmos-sdk 0.50

MsgUpdateParamsResponse

MsgUpdateParamsResponse defines the response structure for executing a

MsgUpdateParams message.

Msg

Msg defines the consensus Msg service.

Method NameRequest TypeResponse TypeDescription
UpdateParams MsgUpdateParams MsgUpdateParamsResponse

UpdateParams defines a governance operation for updating the x/consensus module parameters. The authority is defined in the keeper. Since: cosmos-sdk 0.47

Scalar Value Types

.proto Type Notes Python Type
double float
float float
int32 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. int
int64 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. int/long
uint32 Uses variable-length encoding. int/long
uint64 Uses variable-length encoding. int/long
sint32 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. int
sint64 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. int/long
fixed32 Always four bytes. More efficient than uint32 if values are often greater than 2^28. int
fixed64 Always eight bytes. More efficient than uint64 if values are often greater than 2^56. int/long
sfixed32 Always four bytes. int
sfixed64 Always eight bytes. int/long
bool boolean
string A string must always contain UTF-8 encoded or 7-bit ASCII text. str/unicode
bytes May contain any arbitrary sequence of bytes. str