BitShares Forum

Main => General Discussion => Topic started by: mindphlux on October 19, 2015, 04:36:03 pm

Title: How do I create worker proposals?
Post by: mindphlux on October 19, 2015, 04:36:03 pm
Hi,

I looked in the CLI, but cannot find any commands that would allow me to create a worker proposal.

Thanks
Title: Re: How do I create worker proposals?
Post by: seraphim on October 22, 2015, 12:28:07 am
Can somebody point to the solution here please?
Title: Re: How do I create worker proposals?
Post by: maqifrnswa on October 22, 2015, 01:15:30 am
Can somebody point to the solution here please?

the newest cli_wallet has a command for it.

Code: [Select]
     /**
       * Create a worker object.
       *
       * @param owner_account The account which owns the worker and will be paid
       * @param work_begin_date When the work begins
       * @param work_end_date When the work ends
       * @param daily_pay Amount of pay per day (NOT per maint interval)
       * @param name Any text
       * @param url Any text
       * @param worker_settings {"type" : "burn"|"refund"|"vesting", "pay_vesting_period_days" : x}
       * @param broadcast true if you wish to broadcast the transaction.
       */
signed_transaction create_worker(
         string owner_account,
         time_point_sec work_begin_date,
         time_point_sec work_end_date,
         share_type daily_pay,
         string name,
         string url,
         variant worker_settings,
         bool broadcast = false
         );