Transactions

Deposit

The below transaction can be used to deposit on the blockchain.

Command

sged tx house deposit [market_uid] [amount] [ticket] --flags

The below table specifies the details of the arguments used in the above transaction:

Argument
Description
Type
Validation
Example

market_uid

Unique Identifier of a market

string

  • Required

  • Valid UUID

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

amount

is the deposit amount (contains bet fee also)

Integer

  • Positive

  • Should be greater than the minimum deposit amount of the module

100000000

ticket

ticket data of deposit

string

  • Required

  • Valid Ticket

Withdraw

The below transaction can be used to withdraw on the blockchain.

Command

sged tx house withdraw [market_uid] [participation_index] [ticket] [mode] [amount] --flags

The below table specifies the details of the arguments used in the above transaction:

Argument
Description
Type
Validation
Example

market_uid

Unique Identifier of a market

string

  • Required

  • Valid UUID

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

participation_index

The index of the participation when creating deposit

uint64

  • Required

10

ticket

Ticket data of the withdraw

string

  • Required

  • Valid UUID

mode

Mode of the withdrawal (full or partial)

uint32

  • Required

1

amount

is the deposit amount (contains bet fee also)

Integer

  • Positive

  • Should be greater than the minimum deposit amount of the module

100000000

Last updated