MCPcopy Create free account
hub / github.com/FirmaChain/firmachain / RegisterGRPCGatewayRoutes

Method RegisterGRPCGatewayRoutes

x/nft/module.go:79–82  ·  view source on GitHub ↗

RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module.

(clientCtx client.Context, mux *runtime.ServeMux)

Source from the content-addressed store, hash-verified

77
78// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module.
79func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {
80 //nolint:errcheck
81 types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx))
82}
83
84func (b AppModuleBasic) GetTxCmd() *cobra.Command {
85 return cli.GetTxCmd()

Callers 1

RegisterAPIRoutesMethod · 0.45

Calls 2

NewQueryClientFunction · 0.92

Tested by

no test coverage detected