Queries

Bet module CLI queries.

Queries of this module can be used to get the data of bets placed in the blockchain and params. The following queries have been exposed by the Bet module:

Queries of this module can be used to get the data of bets placed in the blockchain and params. The following queries have been exposed by the Bet module:

Query the bet module Params

sged q bet params

Query the list of all the bets

sged q bet bets

Query the list of all the bets of a bettor

sged q bet bets-by-creator [creator]

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

ParamsDescriptionTypeValidationExample

creator

creator account address

string

  1. Required

  2. Valid Address

sge1059gavv45jdp0l7c4kkskr0jae02j9cxmjr3f3

Query the list of all active bets of a market

sged q bet pending-bets [market-uid]

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

ParamsDescriptionTypeValidationExample

uid

UID of market

string

  1. Required

  2. Valid UUID

0435e5b6-635f-11ed-90a6-bb470175dfce

Query get specific bet

sged q bet bet [creator] [uid]

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

ParamsDescriptionTypeValidationExample

creator

creator account address

string

  1. Required

  2. Valid Address

sge1059gavv45jdp0l7c4kkskr0jae02j9cxmjr3f3

UID

UUID of the bet

string

  1. Required

  2. Valid UUID

0435e5b6-635f-11ed-90a6-bb470175dfce

Query bets by bettor and UID pair list

sged q bet bets-by-uids [creator:uid]

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

The creator:uid pair is separated by a colon : and each pair is separated by a comma , from other pairs.

ParamsDescriptionTypeValidationExample

creator:uid

creator account address and UID pair list

string

  1. Required

  2. Valid Address

sge1059gavv45jdp0l7c4kkskr0jae02j9cxmjr3f3:0435e5b6-635f-11ed-90a6-bb470175dfce

Last updated