Skip to content

Commit 22a8bd1

Browse files
committed
Improve grpc query docs
1 parent dea1492 commit 22a8bd1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/std/src/query/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,14 @@ pub enum QueryRequest<C> {
7272
/// The drawback of this query is that you have to handle the protobuf encoding and decoding yourself.
7373
///
7474
/// The returned data is protobuf encoded. The protobuf type depends on the query.
75+
///
76+
/// To find the path, as well as the request and response types,
77+
/// you can query the chain's gRPC endpoint using a tool like
78+
/// [grpcurl](https://github.com/fullstorydev/grpcurl).
7579
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
7680
pub struct GrpcQuery {
77-
/// The fully qualified service path used for routing,
78-
/// eg. "custom/cosmos_sdk.x.bank.v1.Query/QueryBalance"
81+
/// The fully qualified endpoint path used for routing,
82+
/// eg. "cosmos.authz.v1beta1.Query.Grants"
7983
path: String,
8084
/// The expected protobuf message type (not [Any](https://protobuf.dev/programming-guides/proto3/#any)), binary encoded
8185
data: Binary,

0 commit comments

Comments
 (0)