Transactions

Create Campaign

The below transaction can be used to create a campaign on the blockchain.

Command

sged tx reward create-campaign [uid] [totalfunds] [ticket] --flags

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

Argument
Description
Type
Validation
Example

uid

uid of the camoaign

string

  • Required

  • Valid uid

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

totalfunds

total funds of the campaign pool

uint64

  • Required

  • Valid Number

100000

ticket

ticked payload for the campaign create

string

  • Required

  • Valid Ticket

Update Campaign

The below transaction can be used to update a campaign on the blockchain.

Command

sged tx reward update-campaign [uid] [topupfunds] [ticket] --flags

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

Argument
Description
Type
Validation
Example

uid

unique identifier of the campaign

string

  • Required

  • Valid uid

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

topup funds

the funds to be topped up to the campaign pool

uint64

  • Required

  • Valid Number

100000

ticket

ticked payload for the campaign update

string

  • Required

  • Valid Ticket

Withdraw Funds

The below transaction can be used to withdraw available funds from a campaign pool on the blockchain.

Command

sged tx reward withdraw-funds [uid] [ticket] --flags

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

Argument
Description
Type
Validation
Example

uid

unique identifier of the campaign

string

  • Required

  • Valid uid

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

ticket

ticked payload for the campaign funds withdrawal

string

  • Required

  • Valid Ticket

Grant

The below transaction can be used to grant a reward of a certain campaign to a reward receiver address on the blockchain.

Command

sged tx reward apply [uid] [campaign uid] [ticket] --flags

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

Argument
Description
Type
Validation
Example

uid

unique identifier of the reward

string

  • Required

  • Valid uid

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

campaign_uid

uid of the corresponding campaign

string

  • Required

  • Valid uid

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

ticket

ticked payload for the grant reward

string

  • Required

  • Valid Ticket

Last updated