Client
CLI
A user can query the fees
module using the CLI.
Query
The query
commands allow users to query the fees
state.
desmos query fees --help
parameters
The parameters
command allows users to get hte currently set parameters.
desmos query fees parameters [flags]
Example:
desmos query fees parameters
Example Output:
params:
min_fees:
- message_type: /desmos.profiles.v2.SaveProfile
amount:
- amount: "100"
denom: "stake"
gRPC
A user can query the fees
module gRPC endpoints.
Params
The Params
endpoint allows users to query the current params of the fees
module.
desmos.fees.v1.Query/Params
Example:
grpcurl localhost:9090 desmos.fees.v1.Query/Params
Example Output:
{
"params": {
"min_fees": [
{
"message_type": "/desmos.profiles.v2.SaveProfile",
"amount": [
{
"amount": "100",
"denom": "stake"
}
]
}
]
}
}
REST
A user can query the fees
module using REST endpoints.
Params
The params
endpoint allows users to query for the module parameters.
/desmos/fees/v1/params
Example:
curl localhost:1317/desmos/fees/v1/params
Example Output:
{
"params": {
"min_fees": [
{
"message_type": "/desmos.profiles.v2.SaveProfile",
"amount": [
{
"amount": "100",
"denom": "stake"
}
]
}
]
}
}