github.com/Finschia/finschia-sdk@v0.49.1/proto/cosmos/params/v1beta1/query.proto (about)

     1  syntax = "proto3";
     2  package cosmos.params.v1beta1;
     3  
     4  import "gogoproto/gogo.proto";
     5  import "google/api/annotations.proto";
     6  import "cosmos/params/v1beta1/params.proto";
     7  
     8  option go_package = "github.com/Finschia/finschia-sdk/x/params/types/proposal";
     9  
    10  // Query defines the gRPC querier service.
    11  service Query {
    12    // Params queries a specific parameter of a module, given its subspace and
    13    // key.
    14    rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
    15      option (google.api.http).get = "/cosmos/params/v1beta1/params";
    16    }
    17  }
    18  
    19  // QueryParamsRequest is request type for the Query/Params RPC method.
    20  message QueryParamsRequest {
    21    // subspace defines the module to query the parameter for.
    22    string subspace = 1;
    23  
    24    // key defines the key of the parameter in the subspace.
    25    string key = 2;
    26  }
    27  
    28  // QueryParamsResponse is response type for the Query/Params RPC method.
    29  message QueryParamsResponse {
    30    // param defines the queried parameter.
    31    ParamChange param = 1 [(gogoproto.nullable) = false];
    32  }