Clients
A user can query the x/incentives
module using the CLI, JSON-RPC, gRPC or REST.
CLI
Find below a list of blockxd
commands added with the x/incentives
module. You can obtain the full list by using the blockxd -h
command.
Queries
The query
commands allow users to query incentives
state.
incentives
Allows users to query all registered incentives.
incentive
Allows users to query an incentive for a given contract.
gas-meters
Allows users to query all gas meters for a given incentive.
gas-meter
Allows users to query a gas meter for a given incentive and user.
params
Allows users to query incentives params.
Proposals
The tx gov submit-proposal
commands allow users to query create a proposal using the governance module CLI:
register-incentive
Allows users to submit a RegisterIncentiveProposal
.
cancel-incentive
Allows users to submit a CanelIncentiveProposal
.
param-change
Allows users to submit a `ParameterChangeProposal``.
gRPC
Queries
Verb | Method | Description |
---|---|---|
|
| Gets all registered incentives |
|
| Gets incentive for a given contract |
|
| Gets gas meters for a given incentive |
|
| Gets gas meter for a given incentive and user |
|
| Gets all allocation meters |
|
| Gets allocation meter for a denom |
|
| Gets incentives params |
|
| Gets all registered incentives |
|
| Gets incentive for a given contract |
|
| Gets gas meters for a given incentive |
|
| Gets gas meter for a given incentive and user |
|
| Gets all allocation meters |
|
| Gets allocation meter for a denom |
|
| Gets incentives params |
Last updated