@sigmike would have to answer the first question.
To run the command for the daemon you just run setvote as an RPC command with the vote JSON string as a parameter value. Remember to wrap the whole string in single quotes ’ '.
Like this:
./nud setvote '{
"custodians" : [
{
"address" : "bPwdoprYd3SRHqUCG5vCcEY68g8UfGC1d9",
"amount" : 100.00000000
},
{
"address" : "bxmgMJVaniUDbtiMVC7g5RuSy46LTVCLBT",
"amount" : 5.50000000
}
],
"parkrates" : [
],
"motions" : ["0000000000000000000000000000000000000000"]
}'
of course you wouldn’t have all those carriage returns. You would just use one one long string like this:
./nud setvote '{ "custodians" : [ { "address" : "bPwdoprYd3SRHqUCG5vCcEY68g8UfGC1d9", "amount" : 100.00000000 }, { "address" : "bxmgMJVaniUDbtiMVC7g5RuSy46LTVCLBT", "amount" : 5.50000000 } ], "parkrates" : [ ], "motions" : ["0000000000000000000000000000000000000000"] }'