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

     1  syntax = "proto3";
     2  package cosmos.auth.v1beta1;
     3  
     4  import "cosmos/base/query/v1beta1/pagination.proto";
     5  import "gogoproto/gogo.proto";
     6  import "google/protobuf/any.proto";
     7  import "google/api/annotations.proto";
     8  import "cosmos/auth/v1beta1/auth.proto";
     9  import "cosmos_proto/cosmos.proto";
    10  
    11  option go_package = "github.com/Finschia/finschia-sdk/x/auth/types";
    12  
    13  // Query defines the gRPC querier service.
    14  service Query {
    15    // Accounts returns all the existing accounts
    16    //
    17    // Since: cosmos-sdk 0.43
    18    rpc Accounts(QueryAccountsRequest) returns (QueryAccountsResponse) {
    19      option (google.api.http).get = "/cosmos/auth/v1beta1/accounts";
    20    }
    21  
    22    // Account returns account details based on address.
    23    rpc Account(QueryAccountRequest) returns (QueryAccountResponse) {
    24      option (google.api.http).get = "/cosmos/auth/v1beta1/accounts/{address}";
    25    }
    26  
    27    // Params queries all parameters.
    28    rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
    29      option (google.api.http).get = "/cosmos/auth/v1beta1/params";
    30    }
    31  
    32    // ModuleAccountByName returns the module account info by module name
    33    rpc ModuleAccountByName(QueryModuleAccountByNameRequest) returns (QueryModuleAccountByNameResponse) {
    34      option (google.api.http).get = "/cosmos/auth/v1beta1/module_accounts/{name}";
    35    }
    36  
    37    // NextAccountNumber queries the global account number.
    38    // Please be careful use this rpc. This rpc can be disappear whenever.
    39    // And backward compatibility is not guaranteed.
    40    rpc NextAccountNumber(QueryNextAccountNumberRequest) returns (QueryNextAccountNumberResponse) {
    41      option deprecated            = true;
    42      option (google.api.http).get = "/cosmos/auth/v1beta1/next_account_number";
    43    }
    44  }
    45  
    46  // QueryAccountsRequest is the request type for the Query/Accounts RPC method.
    47  //
    48  // Since: cosmos-sdk 0.43
    49  message QueryAccountsRequest {
    50    // pagination defines an optional pagination for the request.
    51    cosmos.base.query.v1beta1.PageRequest pagination = 1;
    52  }
    53  
    54  // QueryAccountsResponse is the response type for the Query/Accounts RPC method.
    55  //
    56  // Since: cosmos-sdk 0.43
    57  message QueryAccountsResponse {
    58    // accounts are the existing accounts
    59    repeated google.protobuf.Any accounts = 1 [(cosmos_proto.accepts_interface) = "AccountI"];
    60  
    61    // pagination defines the pagination in the response.
    62    cosmos.base.query.v1beta1.PageResponse pagination = 2;
    63  }
    64  
    65  // QueryAccountRequest is the request type for the Query/Account RPC method.
    66  message QueryAccountRequest {
    67    option (gogoproto.equal)           = false;
    68    option (gogoproto.goproto_getters) = false;
    69  
    70    // address defines the address to query for.
    71    string address = 1;
    72  }
    73  
    74  // QueryAccountResponse is the response type for the Query/Account RPC method.
    75  message QueryAccountResponse {
    76    // account defines the account of the corresponding address.
    77    google.protobuf.Any account = 1 [(cosmos_proto.accepts_interface) = "AccountI"];
    78  }
    79  
    80  // QueryParamsRequest is the request type for the Query/Params RPC method.
    81  message QueryParamsRequest {}
    82  
    83  // QueryParamsResponse is the response type for the Query/Params RPC method.
    84  message QueryParamsResponse {
    85    // params defines the parameters of the module.
    86    Params params = 1 [(gogoproto.nullable) = false];
    87  }
    88  
    89  // QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method.
    90  message QueryModuleAccountByNameRequest {
    91    string name = 1;
    92  }
    93  
    94  // QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method.
    95  message QueryModuleAccountByNameResponse {
    96    google.protobuf.Any account = 1 [(cosmos_proto.accepts_interface) = "ModuleAccountI"];
    97  }
    98  
    99  // QueryNextAccountNumberRequest is the request type for the Query/NextAccountNumber.
   100  message QueryNextAccountNumberRequest {
   101    option deprecated = true;
   102  }
   103  
   104  // QueryNextAccountNumberResponse is the response for the Query/NextAccountNumber.
   105  message QueryNextAccountNumberResponse {
   106    option deprecated = true;
   107  
   108    // The next account number is the next value of global account number.
   109    uint64 next_account_number = 1;
   110  }