Skip to content

SPS operations in transactions

Dariusz Kędzierski edited this page Mar 12, 2019 · 9 revisions

SPS operations in transactions that are signed and broadcast by the wallet.

create_proposal

This method allows to create new proposal. Method expects following json structure as parameter:

{
  "creator":"blocktrades", 
  "receiver":"treasury", 
  "start_date":"2019-03-01T00:00:00", 
  "end_date":"2019-04-01T00:00:00", 
  "daily_pay":"1500.000 SBD", 
  "subject":"this is subject", 
  "permlink":"mypermalink"
}

Data types for each field:

{
  "creator": string, 
  "receiver": string, 
  "start_date": date iso string, 
  "end_date": date iso string, 
  "daily_pay": asset, 
  "subject": string, 
  "permlink": string (permlink)
}

update_proposal_votes

This method allows to vote on working proposals. Argument of this method is a json structure as follows:

{
  "voter" : "blocktrades", 
  "proposal_ids" : [1,2,3], 
  "approve" : false
}

Data types:

{
  "voter" : string, 
  "proposal_ids" : [uint64_t, ...], 
  "approve" : bool
}

remove_proposal

This method allows the creator to remove created proposals. Argument of this method is a json structure as follows:

{
  "proposal_owner" : "blocktrades",
  "proposal_ids" : [1,2,3]
}

Data types:

{
  "proposal_owner" : string,
  "proposal_ids" : [uint64_t, ...]
}
You can’t perform that action at this time.