Transactions
Create Campaign
The below transaction can be used to create a campaign on the blockchain.
Command
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 |
| 8483cc8a-d4c8-44ef-9f06-971ec7afe059 |
totalfunds | total funds of the campaign pool | uint64 |
| 100000 |
ticket | ticked payload for the campaign create | string |
|
Update Campaign
The below transaction can be used to update a campaign on the blockchain.
Command
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 |
| 8483cc8a-d4c8-44ef-9f06-971ec7afe059 |
topup funds | the funds to be topped up to the campaign pool | uint64 |
| 100000 |
ticket | ticked payload for the campaign update | string |
|
Withdraw Funds
The below transaction can be used to withdraw available funds from a campaign pool on the blockchain.
Command
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 |
| 8483cc8a-d4c8-44ef-9f06-971ec7afe059 |
ticket | ticked payload for the campaign funds withdrawal | string |
|
Grant
The below transaction can be used to grant a reward of a certain campaign to a reward receiver address on the blockchain.
Command
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 |
| 8483cc8a-d4c8-44ef-9f06-971ec7afe059 |
campaign_uid | uid of the corresponding campaign | string |
| 8483cc8a-d4c8-44ef-9f06-971ec7afe059 |
ticket | ticked payload for the grant reward | string |
|
Last updated