Query/Params
Params(ctx context.Context, in *QueryParamsRequest) (*QueryParamsResponse, error) Retrieves the current parameters of the okrw module. This includes the authorized minter address and the denomination of the token being minted. This is a read-only query and does not require a transaction.
Parameters
This method has no parameters.
Returns
Type:
QueryParamsResponse Returns a response object containing the Params of the module.
Examples
Query parameters using Go client
This example shows how to use a Go gRPC client to fetch the current parameters of the `okrw` module.
import (
"context"
okrwv1 "maroo/api/maroo/okrw/v1"
"google.golang.org/grpc"
)
func getOkrwParams(conn *grpc.ClientConn) (*okrwv1.QueryParamsResponse, error) {
queryClient := okrwv1.NewQueryClient(conn)
req := &okrwv1.QueryParamsRequest{}
return queryClient.Params(context.Background(), req)
} Query parameters using grpcurl
A simple `grpcurl` command to retrieve the `okrw` module parameters from the command line.
grpcurl -plaintext [maroo-node-ip]:9090 maroo.okrw.v1.Query.Params