slashing
The slashing
module is responsible for validator punishment mechanisms, or disincentivizing any attributable action by a protocol-recognized actor with value at stake by penalizing them ("slashing"). Penalties may include, but are not limited to:
- burning some amount of their stake
- removing their ability to vote on future blocks for a period of time
For more information, visit https://docs.cosmos.network/main/modules/slashing/
Message Types
Msg
defines the slashing Msg service.
_6 // Unjail defines a method for unjailing a jailed validator, thus returning
_6 // them into the bonded validator set, so they can begin receiving provisions
_6 rpc Unjail(MsgUnjail) returns (MsgUnjailResponse);
MsgUnjail
MsgUnjail
defines the Msg/Unjail
request type.
_8 option (cosmos.msg.v1.signer) = "validator_addr";
_8 option (gogoproto.goproto_getters) = false;
_8 option (gogoproto.goproto_stringer) = true;
_8 string validator_addr = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.jsontag) = "address"];
MsgUnjailResponse
MsgUnjailResponse
defines the Msg/Unjail
response type.
_1message MsgUnjailResponse {}
Queries
Query
provides defines the gRPC querier service.
_16 // Params queries the parameters of slashing module
_16 rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
_16 option (google.api.http).get = "/cosmos/slashing/v1beta1/params";
_16 // SigningInfo queries the signing info of given cons address
_16 rpc SigningInfo(QuerySigningInfoRequest) returns (QuerySigningInfoResponse) {
_16 option (google.api.http).get = "/cosmos/slashing/v1beta1/signing_infos/{cons_address}";
_16 // SigningInfos queries signing info of all validators
_16 rpc SigningInfos(QuerySigningInfosRequest) returns (QuerySigningInfosResponse) {
_16 option (google.api.http).get = "/cosmos/slashing/v1beta1/signing_infos";
QueryParamsRequest
QueryParamsRequest
is the request type for the Query/Params
RPC method.
_1message QueryParamsRequest {}
QueryParamsResponse
QueryParamsResponse
is the response type for the Query/Params
RPC method.
_3message QueryParamsResponse {
_3 Params params = 1 [(gogoproto.nullable) = false];
QuerySigningInfoRequest
QuerySigningInfoRequest
is the request type for the Query/SigningInfo
RPC method.
_4message QuerySigningInfoRequest {
_4 // cons_address is the address to query signing info of
_4 string cons_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
QuerySigningInfoResponse
QuerySigningInfoResponse
is the response type for the Query/SigningInfo
RPC method.
_4message QuerySigningInfoResponse {
_4 // val_signing_info is the signing info of requested val cons address
_4 ValidatorSigningInfo val_signing_info = 1 [(gogoproto.nullable) = false];
QuerySigningInfosRequest
QuerySigningInfosRequest
is the request type for the Query/SigningInfos
RPC method.
_3message QuerySigningInfosRequest {
_3 cosmos.base.query.v1beta1.PageRequest pagination = 1;
QuerySigningInfosResponse
QuerySigningInfosResponse
is the response type for the Query/SigningInfos
RPC method.
_5message QuerySigningInfosResponse {
_5 // info is the signing info of all validators
_5 repeated cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(gogoproto.nullable) = false];
_5 cosmos.base.query.v1beta1.PageResponse pagination = 2;