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.

blockxd query incentives incentives [flags]

incentive

Allows users to query an incentive for a given contract.

blockxd query incentives incentive [contract-address] [flags]

gas-meters

Allows users to query all gas meters for a given incentive.

blockxd query incentives gas-meters [contract-address] [flags]

gas-meter

Allows users to query a gas meter for a given incentive and user.

blockxd query incentives gas-meter [contract-address] [participant-address] [flags]

params

Allows users to query incentives params.

blockxd query incentives params [flags]

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.

blockxd tx gov submit-proposal register-incentive [contract-address] [allocation] [epochs] [flags]

cancel-incentive

Allows users to submit a CanelIncentiveProposal.

blockxd tx gov submit-proposal cancel-incentive [contract-address] [flags]

param-change

Allows users to submit a `ParameterChangeProposal``.

blockxd tx gov submit-proposal param-change [proposal-file] [flags]

gRPC

Queries

Last updated