Queries

Reward module CLI queries.

Query the Reward Params

sged q reward params

Query all campaigns

sged q reward campaigns

Query campaign by uid

sged q reward campaign [uid]

The below table explains the details of the argument required for the above query:

ParamsDescriptionTypeValidationExample

uid

uid of the campaign

string

  1. Required

  2. Valid uuid

8483cc8a-d4c8-44ef-9f06-971ec7afe059

Query all Rewards

sged q reward rewards

Query campaign by uid

sged q reward reward [uid]

The below table explains the details of the argument required for the above query:

ParamsDescriptionTypeValidationExample

uid

uid of the campaign

string

  1. Required

  2. Valid uuid

8483cc8a-d4c8-44ef-9f06-971ec7afe059

Query rewards by address

sged q reward rewards-by-address [address]

The below table explains the details of the argument required for the above query:

ParamsDescriptionTypeValidationExample

address

address of the receiver

string

  1. Required

  2. Valid address

sge1059gavv45jdp0l7c4kkskr0jae02j9cxmjr3f3

Query rewards by campaign

sged q reward rewards-by-user-category [address] [category]

The below table explains the details of the argument required for the above query:

ParamsDescriptionTypeValidationExample

address

address of the reward receiver

string

  1. Required

  2. Valid address

sge1059gavv45jdp0l7c4kkskr0jae02j9cxmjr3f3

category

category of the reward

int32

  • Required

  • Valid address

1

Query rewards by campaign

sged q reward rewards-by-campaign [campaign]

The below table explains the details of the argument required for the above query:

ParamsDescriptionTypeValidationExample

campaign

uid of the campaign

string

  1. Required

  2. Valid uid

8483cc8a-d4c8-44ef-9f06-971ec7afe059

Last updated